-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- https://gist.github.com/unicornware/1ecc41e7407de9d8c9e90e088cd88d6d Signed-off-by: Lexus Drumgold <[email protected]>
- Loading branch information
1 parent
89711c5
commit 4cdfca8
Showing
37 changed files
with
870 additions
and
735 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
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
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 |
---|---|---|
|
@@ -4,8 +4,12 @@ | |
# | ||
# References: | ||
# | ||
# - https://docs.github.com/actions/learn-github-actions/contexts | ||
# - https://docs.github.com/actions/learn-github-actions/expressions | ||
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#issues | ||
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#pull_request | ||
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#issues | ||
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request | ||
# - https://github.com/actions/add-to-project | ||
|
||
--- | ||
|
@@ -22,8 +26,8 @@ jobs: | |
add-to-project: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- id: add | ||
name: Add ${{ format('#{0}', github.event.number || github.event.issue.number) }} to project | ||
- id: add-item | ||
name: Add ${{ format('#{0}', github.event.number) }} to project | ||
uses: actions/[email protected] | ||
with: | ||
github-token: ${{ secrets.PAT_REPO }} | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,9 @@ | |
# References: | ||
# | ||
# - https://cli.github.com/manual/gh_pr_merge | ||
# - https://docs.github.com/actions/learn-github-actions/contexts | ||
# - https://docs.github.com/actions/using-workflows/events-that-trigger-workflows#pull_request | ||
# - https://docs.github.com/actions/using-workflows/using-github-cli-in-workflows | ||
# - https://docs.github.com/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-auto-merge-for-pull-requests-in-your-repository | ||
# - https://docs.github.com/webhooks-and-events/webhooks/webhook-events-and-payloads#pull_request | ||
# - https://github.com/actions/checkout | ||
|
@@ -18,6 +20,8 @@ on: | |
types: | ||
- opened | ||
- synchronize | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT_REPO }} | ||
jobs: | ||
auto-merge: | ||
if: github.event.pull_request.auto_merge == null && github.event.pull_request.draft == false | ||
|
@@ -30,9 +34,8 @@ jobs: | |
name: Checkout ${{ github.head_ref }} | ||
uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
ref: ${{ github.head_ref }} | ||
- id: auto-merge | ||
- id: enable | ||
name: Enable auto-merge | ||
run: gh pr merge ${{ github.event.pull_request.number }} --auto --squash | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PAT_REPO }} | ||
run: gh pr merge ${{ github.event.number }} --auto --squash |
Oops, something went wrong.