-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prettier only got a prettier formatting change :/
- Loading branch information
1 parent
a63114e
commit 21d92d7
Showing
4 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
name: Auto Label PRs, then add assignees and reviewers automatically. | ||
|
||
run-name: PR management | ||
run-name: PR management stuff | ||
|
||
on: | ||
pull_request_target: | ||
types: [opened, reopened, edited, synchronize] | ||
types: [opened, reopened, edited, synchronize, labeled] | ||
|
||
jobs: | ||
add_labels_reviewers_assignees: | ||
name: Add labels, then reviewers & assignees | ||
name: Add labels, reviewers & assignees | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Auto-assign PR author as assignee | ||
if: github.event.action == 'opened' | ||
if: github.event.action == 'opened' || github.event.action == 'reopened' | ||
id: author-assignee | ||
uses: itsOliverBott/assign-pr-author-as-assignee@release | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Label PR based on content | ||
if: github.event.action != 'labeled' | ||
id: label-pr | ||
uses: prulloac/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Assign/unassign reviewers | ||
if: github.event.action == 'ready_for_review' | ||
id: assign-reviewers | ||
uses: totallymoney/[email protected] | ||
with: | ||
|
@@ -56,7 +58,7 @@ jobs: | |
- name: Assigned/unassigned reviewers failure(?) debug log | ||
if: steps.assign-reviewers.outputs.assigned_status == 'info' && steps.assign_reviewers.outputs.unassigned_status == 'info' | ||
run: | | ||
echo "Uh-oh! I ran into an issue when assigning/unassigning reviewers! Here's some info: \n" | ||
echo "Uh-oh! I probably ran into an issue when assigning/unassigning reviewers! Here's some info: \n" | ||
echo "PR I attempted to assign reviewers to: ${{ steps.assign_reviewers.outputs.assigned_url }}" | ||
echo "Commit SHA: ${{ github.sha }}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters