1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-11-25 12:12:19 +03:00
Commit Graph

8 Commits

Author SHA1 Message Date
Paul Campbell
2e65a72bb0
test(git): find upstream remote when using ssh (#926)
* feat: find upstream remote when using ssh

The `upstream_remote` function was relying on `url::Url::parse` to extract the `owner` and `repo` from the `url`. But that only works when the repo is cloned using a URL, e.g. `https://github.com/orhun/git-cliff.git`. However, this would fail to parse when cloned using SSH, e.g. `git@github.com:orhun/git-cliff.git`.

If the url::URL::parser fails, we now try to parse an SSH remote in the format `git@hostname:owner/repo.git`.

The error from `upstream_remote` also notes that a posible reason for it failing would be that the `HEAD` is detached.

* Update git-cliff-core/src/repo.rs

* Update git-cliff-core/src/repo.rs

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-10-21 23:29:39 +03:00
Nejc Galof
a82dac3cb1
docs(contributing): mention fetching the tags for running tests successfully (#850)
* docs(contributing): mention the tags are necessary for running tests successfully

* docs(contributing): Update file based on the review

* Update CONTRIBUTING.md

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-09-14 21:58:24 +03:00
Marco Ieni
522bd536a4
feat(changelog): allow adding custom context (#613)
* feat: allow adding custom context

* chore: add test

* fix: lint

* fix: lint

* fix: lint

* docs: contributing

* chore: polish implementation

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-04-21 22:02:41 +03:00
Orhun Parmaksız
cd563444de
docs(license): re-license under the MIT + Apache 2.0 license (#303)
* docs(license): re-license under the MIT + Apache 2.0 license

* chore(rpm): install MIT license for RPM package

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-09-30 15:48:24 +02:00
Orhun Parmaksız
84f20f906f
chore(cargo): update MSRV to 1.64.0 2023-04-28 14:27:35 +03:00
Orhun Parmaksız
a5a78fc4c5
docs(contributing): mention the nightly requirement for rustfmt 2023-04-12 16:40:05 +03:00
Orhun Parmaksız
a824f48f12
docs(contributing): update MSRV 2023-04-04 17:28:46 +03:00
orhun
0fe28b322e
docs(contributing): add CONTRIBUTING.md 2021-06-28 18:06:37 +03:00