Skip to content

Commit

Permalink
add kayma/ready-command
Browse files Browse the repository at this point in the history
  • Loading branch information
kayman-mk committed Jan 6, 2025
1 parent 9bd314f commit 5a3bf75
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Execute ChatOps command
name: Execute ChatOps help command

# yamllint disable-line rule:truthy
on:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ jobs:
reactions: true
commands: |
help
ready
25 changes: 25 additions & 0 deletions .github/workflows/default_welcome_message_callable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,31 @@ jobs:
with:
# yamllint disable rule:line-length
script: |
message = `Hey @${{ github.event.pull_request.user.login }}! 👋
Thank you for your contribution to the project. Please refer to the [contribution rules](../blob/main/.github/CONTRIBUTING.md)
for a quick overview of the process.
Make sure that this PR clearly explains:
- the problem being solved
- the best way a reviewer and you can test your changes
With submitting this PR you confirm that you hold the rights of the code added and agree that it will
published under this [LICENSE](../blob/main/LICENSE).
The following ChatOps commands are supported:
- `/help`: notifies a maintainer to help you out
- `/ready`: marks the PR as ready for review and removes the checklist
Simply add a comment with the command in the first line. If you need to pass more information, separate it
with a blank line from the command.
_This message was generated automatically. You are welcome to [improve it](https://github.com/Hapag-Lloyd/Workflow-Templates/blob/main/.github/workflows/default_welcome_message_callable.yml)._`
// dedent the message
message = message.replace(/^ +/gm, '')
// adds a comment to the PR (there is the issue API only which works work PRs too)
github.rest.issues.createComment({
issue_number: context.issue.number,
Expand Down

0 comments on commit 5a3bf75

Please sign in to comment.