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
This commit is contained in:
commit
cd67b3b771
1 changed files with 1 additions and 1 deletions
2
.github/workflows/clippy_changelog.yml
vendored
2
.github/workflows/clippy_changelog.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue