Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tambahkan GitHub Action untuk merge #235

Merged
merged 32 commits into from
Nov 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
825b32b
Create wf_comment.yml
juragankos Nov 11, 2022
4a69568
Update wf_comment.yml
juragankos Nov 11, 2022
7144df1
Merge pull request #2 from juragankos/devi
juragankos Nov 11, 2022
bae0e06
Update wf_comment.yml
juragankos Nov 11, 2022
2d1fa50
Update and rename wf_comment.yml to automerge.yml
juragankos Nov 11, 2022
1d42674
Update automerge.yml
juragankos Nov 11, 2022
5c08de8
Update automerge.yml
juragankos Nov 11, 2022
371d99f
Update automerge.yml
juragankos Nov 11, 2022
510d0ef
Update automerge.yml
juragankos Nov 11, 2022
c761500
(#1) Update CONTRIBUTING.md
juragankos Nov 11, 2022
1b1e3c9
Update automerge.yml
juragankos Nov 11, 2022
d28a19e
Update automerge.yml
juragankos Nov 11, 2022
39b4381
Update automerge.yml
juragankos Nov 11, 2022
01315e2
Update automerge.yml
juragankos Nov 11, 2022
fef7385
(#3) Perbaikan berkas `readme.md`
juragankos Nov 11, 2022
12e023d
Update automerge.yml
juragankos Nov 11, 2022
f76df22
Update automerge.yml
juragankos Nov 11, 2022
5f570e1
(#4) Update readme.md
juragankos Nov 11, 2022
7eb838d
Update automerge.yml
juragankos Nov 11, 2022
31df6e1
(#5) revert readme
juragankos Nov 11, 2022
58d03bd
Update automerge.yml
juragankos Nov 11, 2022
a1da8fe
(#6) revert contrib....
juragankos Nov 11, 2022
09b007d
Update automerge.yml
juragankos Nov 11, 2022
c59e43e
Update automerge.yml
juragankos Nov 11, 2022
c3b97bb
Update automerge.yml
juragankos Nov 11, 2022
5329319
(#7) Update CONTRIBUTING.md
juragankos Nov 11, 2022
257dede
Update automerge.yml
juragankos Nov 11, 2022
66af256
Update automerge.yml
juragankos Nov 11, 2022
8202cf1
(#8) Revert "Update CONTRIBUTING.md"
juragankos Nov 11, 2022
a29ed36
Create add_label.yml
juragankos Nov 11, 2022
52ef334
(#9) Update automerge.yml
juragankos Nov 11, 2022
f2a51d0
Update automerge.yml
juragankos Nov 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/add_label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Add Label "automerge"'

on:
pull_request:
types: opened

jobs:
add_label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-ecosystem/action-add-labels@v1
with:
labels: automerge
32 changes: 32 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Squash, Merge & Lock

on: issue_comment

jobs:
squash_merge:
if: ${{ github.event.issue.pull_request && github.event.comment.author_association == 'OWNER' }}
runs-on: ubuntu-latest
outputs:
merged: ${{ steps.squashmerge.outputs.mergeResult == 'merged' }}
steps:
- name: Squash & Merge
id: squashmerge
if: startsWith(github.event.comment.body, '/merge')
uses: "pascalgn/automerge-action@v0.15.5"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MERGE_METHOD: "squash"
MERGE_COMMIT_MESSAGE: "(#${{ github.event.issue.number }}) ${{ github.event.issue.title }}"
MERGE_REMOVE_LABELS: "automerge"

lock_PR:
needs: squash_merge
runs-on: ubuntu-latest
steps:
- if: ${{ needs.squash_merge.outputs.merged }}
name: lock PR
uses: sudo-bot/action-pull-request-lock@v1.1.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
number: ${{ github.event.issue.number }}