Skip to content

Commit

Permalink
Use gh CLI to get the PR diff
Browse files Browse the repository at this point in the history
This enables the workflow to get the changed file list when run on
`pull_request_target` event
  • Loading branch information
cbbayburt committed Nov 24, 2024
1 parent 27be874 commit 7f628d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/changelogs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ jobs:
run: |
pip install python-bugzilla~=3.2.0
CHANGED_FILES=$(git diff --name-only \
${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }})
CHANGED_FILES=$(gh pr diff -R ${{ github.event.pull_request.base.repo.full_name }} \
${{ github.event.pull_request.number }} --name-only)
echo $CHANGED_FILES
# Tracker file can be retrieved from the OBS/IBS API
# by calling 'osc api /issue_trackers/' (with authentication)
Expand Down

0 comments on commit 7f628d6

Please sign in to comment.