diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:04:41 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-13 12:04:41 +0000 |
commit | 975f66f2eebe9dadba04f275774d4ab83f74cf25 (patch) | |
tree | 89bd26a93aaae6a25749145b7e4bca4a1e75b2be /ansible_collections/community/grafana/hacking/check_fragment.sh | |
parent | Initial commit. (diff) | |
download | ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.tar.xz ansible-975f66f2eebe9dadba04f275774d4ab83f74cf25.zip |
Adding upstream version 7.7.0+dfsg.upstream/7.7.0+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ansible_collections/community/grafana/hacking/check_fragment.sh')
-rwxr-xr-x | ansible_collections/community/grafana/hacking/check_fragment.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ansible_collections/community/grafana/hacking/check_fragment.sh b/ansible_collections/community/grafana/hacking/check_fragment.sh new file mode 100755 index 000000000..bf90cae65 --- /dev/null +++ b/ansible_collections/community/grafana/hacking/check_fragment.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +function fail() { + cat << EOF + Dear contributor, + + Thank you for you Pull Request ! + To ease the work of maintainers you need to add a [changelog fragment](https://docs.ansible.com/ansible/latest/community/development_process.html#creating-a-changelog-fragment) in you PR. + + It will help your change be released faster ! + Thank you ! +EOF + exit 1 +} + +FRAGMENTS=$(git fetch && git diff --name-only --diff-filter=ACMRT origin/main..HEAD | grep "changelogs") +[ -z "$FRAGMENTS" ] && fail +exit 0 |