You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: .github/workflows/automerge.yml
+3-3
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,12 @@ jobs:
19
19
runs-on: ubuntu-latest
20
20
steps:
21
21
- name: Autoapproving
22
-
uses: hmarr/auto-approve-action@v2
22
+
uses: hmarr/auto-approve-action@44888193675f29a83e04faf4002fa8c0b537b1e4 # v3.2.1 is used https://github.com/hmarr/auto-approve-action/releases/tag/v3.2.1
//Yes to add comment to PR the same endpoint is use that we use to create a comment in issue
22
+
//For more details http://developer.github.com/v3/issues/comments/
23
+
//Also proved by this action https://github.com/actions-ecosystem/action-create-comment/blob/main/src/main.ts
24
+
github.rest.issues.createComment({
25
+
issue_number: context.issue.number,
26
+
owner: context.repo.owner,
27
+
repo: context.repo.repo,
28
+
body: `Hello, @${{ github.actor }}! 👋🏼
29
+
30
+
I'm Genie from the magic lamp. Looks like somebody needs a hand! 🆘
31
+
32
+
At the moment the following comments are supported in pull requests:
33
+
34
+
- `/ready-to-merge`or `/rtm` - This comment will trigger automerge of PR in case all required checks are green, approvals in place and do-not-merge label is not added
35
+
- `/do-not-merge`or `/dnm` - This comment will block automerging even if all conditions are met and ready-to-merge label is added
36
+
- `/autoupdate`or `/au` - This comment will add `autoupdate` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict or it is a draft PR.`
37
+
})
21
38
22
-
I'm Genie from the magic lamp. Looks like somebody needs a hand! 🆘
23
-
24
-
At the moment the following comments are supported in pull requests:
25
-
26
-
- `/ready-to-merge` or `/rtm` - This comment will trigger automerge of PR in case all required checks are green, approvals in place and do-not-merge label is not added
27
-
- `/do-not-merge` or `/dnm` - This comment will block automerging even if all conditions are met and ready-to-merge label is added
28
-
- `/autoupdate` or `/au` - This comment will add `autoupdate` label to the PR and keeps your PR up-to-date to the target branch's future changes. Unless there is a merge conflict or it is a draft PR.
0 commit comments