We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c50983 commit 65f7bb8Copy full SHA for 65f7bb8
.github/workflows/clippy_bors.yml
@@ -20,12 +20,17 @@ jobs:
20
runs-on: ubuntu-latest
21
22
steps:
23
+ - name: Checkout
24
+ uses: actions/[email protected]
25
+ with:
26
+ ref: ${{ github.ref }}
27
- name: Check Changelog
28
run: |
- MESSAGE=$(git log --format=%B -n 1 ${{ github.sha }})
29
+ MESSAGE=$(git log --format=%B -n 1)
30
+ PR=$(echo "$MESSAGE" | grep -o "#[0-9]*" | sed -e 's/#//')
31
echo $MESSAGE
32
+ echo $PR
33
exit 1
- PR=$(echo "${{ github.ref }}" | grep -o "[0-9]*")
34
output=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -s "https://api.github.com/repos/rust-lang/rust-clippy/pulls/$PR" | \
35
python -c "import sys, json; print(json.load(sys.stdin)['body'])" | \
36
grep "^changelog: " | \
0 commit comments