Skip to content

Commit 8676160

Browse files
authored
Updating skip-changelog label (#14661)
1 parent 20d2a01 commit 8676160

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ updates:
77
interval: monthly
88
commit-message:
99
prefix: ci
10-
labels: [dependencies]
10+
labels: [dependencies, skip-changelog]
1111

1212
# python dependencies in /dev-tools/scripts
1313
- package-ecosystem: pip
@@ -17,7 +17,7 @@ updates:
1717
interval: monthly
1818
commit-message:
1919
prefix: build(deps)
20-
labels: [dependencies]
20+
labels: [dependencies, skip-changelog]
2121

2222
- package-ecosystem: gradle
2323
directory: /
@@ -27,4 +27,4 @@ updates:
2727
day: tuesday
2828
commit-message:
2929
prefix: deps(java)
30-
labels: [dependencies]
30+
labels: [dependencies, skip-changelog]

.github/workflows/verify-changelog-and-set-milestone.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ env:
77
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88
ISSUE: ${{ github.event.issue.html_url }}
99
BASE_REPO: ${{ github.repository }}
10-
SKIP_CHANGELOG_CHECK_LABEL: ${{ '"skip-changelog-check"' }}
10+
SKIP_CHANGELOG_LABEL: ${{ '"skip-changelog"' }}
1111
CHANGE_LOG_FILE: ${{ 'lucene/CHANGES.txt' }}
1212

1313
jobs:
@@ -31,12 +31,12 @@ jobs:
3131
mapfile -t labels < <(gh pr view ${{ github.event.number }} --repo "$BASE_REPO" --json labels -q '.labels[].name')
3232
IFS=','; echo "${labels[*]}"
3333
for label in "${labels[@]}"; do
34-
if [[ $label == ${{ env.SKIP_CHANGELOG_CHECK_LABEL }} ]]; then
35-
echo "Skipping github action workflow as label: ${SKIP_CHANGELOG_CHECK_LABEL} is found in the PR."
34+
if [[ $label == ${{ env.SKIP_CHANGELOG_LABEL }} ]]; then
35+
echo "Skipping github action workflow as label: ${SKIP_CHANGELOG_LABEL} is found in the PR."
3636
exit 0
3737
fi
3838
done
39-
echo "${{ env.SKIP_CHANGELOG_CHECK_LABEL }} not found in the PR. Proceeding with next steps."
39+
echo "${{ env.SKIP_CHANGELOG_LABEL }} not found in the PR. Proceeding with next steps."
4040
4141
echo -e "\n"
4242
echo "################## STEP 2 ##################"
@@ -59,7 +59,7 @@ jobs:
5959
echo "Diff:"
6060
if git diff --exit-code --name-only $BASE_COMMIT HEAD -- ${{ env.CHANGE_LOG_FILE }}; then
6161
echo "Change log file:${{ env.CHANGE_LOG_FILE }} does not contains an entry corresponding to changes introduced in PR. Please add a changelog entry."
62-
gh pr comment ${{ github.event.number }} --body "This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog-check label to it and you will stop receiving this reminder on future updates to the PR."
62+
gh pr comment ${{ github.event.number }} --body "This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog label to it and you will stop receiving this reminder on future updates to the PR."
6363
exit 0
6464
else
6565
echo "${{ env.CHANGE_LOG_FILE }} contains change log entry. Proceeding with next steps."

0 commit comments

Comments
 (0)