about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Krones <hello@philkrones.com>2025-03-30 14:51:30 +0000
committerGitHub <noreply@github.com>2025-03-30 14:51:30 +0000
commitcd67b3b77129dcc99ee18f6a16737b8b7452cf18 (patch)
tree2a8019e69f44fcf76db61118bf6d222f05c8b4aa
parent4c610e32adcfeaf0586897bdb3b1c83bc922e18a (diff)
parent8f3a0db64fa599238969502ea4991a4be31aec93 (diff)
downloadrust-cd67b3b77129dcc99ee18f6a16737b8b7452cf18.tar.gz
rust-cd67b3b77129dcc99ee18f6a16737b8b7452cf18.zip
Don't hardcode repository in changelog CI (#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
-rw-r--r--.github/workflows/clippy_changelog.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/clippy_changelog.yml b/.github/workflows/clippy_changelog.yml
index a2657bfea49..1e97154bf8a 100644
--- a/.github/workflows/clippy_changelog.yml
+++ b/.github/workflows/clippy_changelog.yml
@@ -24,7 +24,7 @@ jobs:
     - name: Check Changelog
       if: ${{ github.event_name == 'pull_request' }}
       run: |
-        body=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -s "https://api.github.com/repos/rust-lang/rust-clippy/pulls/$PR_NUMBER" | \
+        body=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -s "https://api.github.com/repos/${{ github.repository }}/pulls/$PR_NUMBER" | \
           python -c "import sys, json; print(json.load(sys.stdin)['body'])")
         output=$(awk '/^changelog:\s*\S/ && !/changelog: \[.*\]: your change/' <<< "$body" | sed "s/changelog:\s*//g")
         if [ -z "$output" ]; then