about summary refs log tree commit diff
diff options
context:
space:
mode:
authory21 <30553356+y21@users.noreply.github.com>2025-03-29 17:45:21 +0100
committery21 <30553356+y21@users.noreply.github.com>2025-03-30 00:51:13 +0100
commit8f3a0db64fa599238969502ea4991a4be31aec93 (patch)
tree2a8019e69f44fcf76db61118bf6d222f05c8b4aa
parent4c610e32adcfeaf0586897bdb3b1c83bc922e18a (diff)
downloadrust-8f3a0db64fa599238969502ea4991a4be31aec93.tar.gz
rust-8f3a0db64fa599238969502ea4991a4be31aec93.zip
don't hardcode repository owner in changelog CI
-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