-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update workflows to be same as main repo (#37)
* Update labeler.yml * Delete .github/workflows/dummy-conflicts.yml * Update conflicts.yml * Update remove-outdated-labels.yml * Rename labeler.yml to pr-labeler.yml * Update label-pr.yml
- Loading branch information
1 parent
4194dc2
commit 6bdc903
Showing
6 changed files
with
35 additions
and
21 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
'PR: waiting for review': | ||
- changed-files: | ||
- any-glob-to-any-file: '**' |
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 was deleted.
Oops, something went wrong.
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,15 +1,17 @@ | ||
name: "Pull Request Labeler" | ||
on: | ||
pull_request_target: | ||
types: [opened, reopened] | ||
types: [opened, reopened, ready_for_review] | ||
|
||
jobs: | ||
triage: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
if: ${{ !github.event.pull_request.draft }} | ||
steps: | ||
- uses: actions/labeler@v4 | ||
- uses: actions/labeler@v5 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
configuration-path: .github/pr-labeler.yml |
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,9 +1,10 @@ | ||
name: Remove outdated labels | ||
on: | ||
# https://github.community/t/github-actions-are-severely-limited-on-prs/18179/15 | ||
pull_request_target: | ||
types: | ||
- closed | ||
- converted_to_draft | ||
- ready_for_review | ||
jobs: | ||
remove-merged-pr-labels: | ||
name: Remove merged pull request labels | ||
|
@@ -19,10 +20,11 @@ jobs: | |
PR: changes requested | ||
PR: merge conflicts / rebase needed | ||
PR/Issue: dependent | ||
PR: stale | ||
remove-closed-pr-labels: | ||
name: Remove closed pull request labels | ||
if: github.event_name == 'pull_request_target' && (! github.event.pull_request.merged) | ||
if: github.event_name == 'pull_request_target' && (! github.event.pull_request.merged) && (github.event.action != 'converted_to_draft') && (github.event.action != 'ready_for_review') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: mondeja/[email protected] | ||
|
@@ -33,4 +35,27 @@ jobs: | |
PR: WIP | ||
PR: changes requested | ||
PR: merge conflicts / rebase needed | ||
PR/Issue: dependent | ||
PR/Issue: dependent | ||
PR: stale | ||
remove-draft-pr-labels: | ||
name: Remove labels from draft pull requests | ||
if: github.event_name == 'pull_request_target' && github.event.action == 'converted_to_draft' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: mondeja/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
labels: | | ||
PR: waiting for review | ||
remove-ready-pr-labels: | ||
name: Remove labels when draft pr is marked ready for review | ||
if: github.event_name == 'pull_request_target' && github.event.action == 'ready_for_review' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: mondeja/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
labels: | | ||
PR: WIP |