Skip to content

Commit 9c23df7

Browse files
wip: added command to merge pr (#11)
* wip: added command to merge pr * Update .github/workflows/lgtm.yml Co-authored-by: Copilot <[email protected]> * Update .github/workflows/lgtm.yml Co-authored-by: Copilot <[email protected]> --------- Co-authored-by: Copilot <[email protected]>
1 parent a901941 commit 9c23df7

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/lgtm.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Handle /lgtm
2+
on:
3+
repository_dispatch:
4+
types: [lgtm]
5+
6+
jobs:
7+
approve-and-merge:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Add 'lgtm' label
11+
uses: actions-ecosystem/action-add-labels@v1
12+
with:
13+
github_token: '${{ secrets.GITHUB_TOKEN }}'
14+
labels: lgtm
15+
16+
- name: Merge the PR
17+
uses: actions-ecosystem/action-pull-request-merge@v1
18+
with:
19+
github_token: ${{ secrets.GITHUB_TOKEN }}
20+
merge_method: squash

.github/workflows/slash-command.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Slash Command Handler
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
slash-command:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: peter-evans/slash-command-dispatch@v3
12+
with:
13+
token: ${{ secrets.GITHUB_TOKEN }}
14+
commands: |
15+
lgtm
16+
# assign

0 commit comments

Comments
 (0)