-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6095d6e
commit 08b5ea5
Showing
4 changed files
with
100 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Ping triage | ||
|
||
on: | ||
workflow_call: | ||
|
||
env: | ||
ISSUE_URL: ${{ github.event.issue.url }} | ||
GH_TOKEN_SECRET: ${{ github.token }} | ||
|
||
jobs: | ||
notify: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: | | ||
export GITHUB_TOKEN="$GH_TOKEN_SECRET" | ||
gh issue edit "$ISSUE_URL" --add-project 'Triage/bugs' && | ||
gh issue comment "$ISSUE_URL" --body '@MithrilJS/triage Please take a look.' |
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,21 @@ | ||
name: Reject PR | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
correct_branch: | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
post: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: | | ||
export GITHUB_TOKEN="$GH_TOKEN_SECRET" | ||
gh pr close "$PR_URL" --comment "$MESSAGE" --reason 'not planned' && | ||
gh pr lock "$PR_URL" --reason 'resolved' | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
PR_URL: ${{ github.event.issue.url }} | ||
MESSAGE: Hey @${{ github.actor }}, this pull request should be directed towards `${{ inputs.correct_branch }}`. Please file a new pull request targeting that branch instead. |
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