7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2024-12-26 15:09:32 +00:00
kicad/tools/git/fixes_alias
Ian McInerney 20ec8ed303 Fix GitLab URLs to point to the correct project page
GitLab 16.0 removes support for URLs that don't contain /-/ after the
repository name, so the report bug feature and various links we had in
the source (including the git-fixes script) would lead to a 404 error.

See GitLab docs for deprecation/removal notice:
https://docs.gitlab.com/ee/update/deprecations.html?removal_milestone=16.0#legacy-urls-replaced-or-removed

Fixes: https://gitlab.com/kicad/code/kicad/-/issues/14759
2023-05-17 11:23:00 +01:00

16 lines
628 B
Plaintext

[alias]
# Alias to simplify marking commits as bug fixes
# Once the script is enabled, commit your changes and run 'git fixes 123456' to mark the last commit as a fix for issue #123456
# Enable by executing in the source root directory:
# git config --add include.path $(pwd)/tools/git/fixes_alias
fixes = "!f() { \
COMMIT_MSG=$(git log -n1 --format=%B); \
git commit --amend -m \"${COMMIT_MSG}\n\nFixes https://gitlab.com/kicad/code/kicad/-/issues/$1\"; \
}; f"
# Alias to extract the changelog using ADD/NEW/REMOVE/CHANGE tags from commit messages
changelog = log -E --grep="ADD:|NEW:|REMOVE[D]?:|CHANGE[D]?:"