Skip to content

Commit cd67b3b

Browse files
authored
Don't hardcode repository in changelog CI (rust-lang#14500)
I sometimes run lintcheck/CI experiments by opening a PR on my own clippy fork. This has recently "stopped" working (as in, fails CI) when the changelog CI was added because the repository is hardcoded as "rust-lang/rust-clippy", where the PR number won't match with the one on my repo. changelog: none r? flip1995
2 parents 4c610e3 + 8f3a0db commit cd67b3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/clippy_changelog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Check Changelog
2525
if: ${{ github.event_name == 'pull_request' }}
2626
run: |
27-
body=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -s "https://api.github.com/repos/rust-lang/rust-clippy/pulls/$PR_NUMBER" | \
27+
body=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -s "https://api.github.com/repos/${{ github.repository }}/pulls/$PR_NUMBER" | \
2828
python -c "import sys, json; print(json.load(sys.stdin)['body'])")
2929
output=$(awk '/^changelog:\s*\S/ && !/changelog: \[.*\]: your change/' <<< "$body" | sed "s/changelog:\s*//g")
3030
if [ -z "$output" ]; then

0 commit comments

Comments
 (0)