* 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>
* 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>
* 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>