Skip to content

Commit

Permalink
Format change
Browse files Browse the repository at this point in the history
Signed-off-by: Michael D Kinney <[email protected]>
  • Loading branch information
mdkinney committed Jul 15, 2022
1 parent dfec939 commit df7ac00
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/AssignReviewers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ jobs:
from github import Github
reviewers = CodeOwners(open('.github/REVIEWERS').read())
local = Git('.')
local.fetch('origin', '+refs/pull/${{ github.event.pull_request.number }}/*:refs/remotes/origin/pr/${{ github.event.pull_request.number }}/*', depth=${{ github.event.pull_request.commits }} + 1)
local.fetch(
'origin',
'+refs/pull/${{ github.event.pull_request.number }}/*:refs/remotes/origin/pr/${{ github.event.pull_request.number }}/*',
depth=${{ github.event.pull_request.commits }} + 1
)
print ('Files in PR')
for File in local.diff('${{github.event.pull_request.head.sha}}~${{ github.event.pull_request.commits }}..${{github.event.pull_request.head.sha}}','--name-only').split():
print (' ', File, reviewers.of(File))
Expand Down

0 comments on commit df7ac00

Please sign in to comment.