Skip to content

Commit e431182

Browse files
authored
ci: update global workflows (#73)
1 parent 32b1743 commit e431182

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/add-good-first-issue-labels.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111

1212
jobs:
1313
add-labels:
14-
if: github.event.issue && github.event.issue.state != 'closed'
14+
if: ${{!github.event.issue.pull_request && github.event.issue.state != 'closed' && github.actor != 'asyncapi-bot'}}
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: Add label
@@ -32,7 +32,7 @@ jobs:
3232
values[1] = 'docs';
3333
}
3434
if(values.length != 2 || !areas.includes(values[1])){
35-
const message = `Hey @${context.payload.sender.login}, something is wrong with your command please use \`/help\` for help.`
35+
const message = `Hey @${context.payload.sender.login}, your message doesn't follow the requirements, you can try \`/help\`.`
3636
3737
await github.rest.issues.createComment({
3838
issue_number: context.issue.number,

.github/workflows/help-command.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
create_help_comment_pr:
13-
if: github.event.issue.pull_request && contains(github.event.comment.body, '/help')
13+
if: github.event.issue.pull_request && contains(github.event.comment.body, '/help' && github.actor != 'asyncapi-bot')
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions-ecosystem/action-create-comment@v1
@@ -26,7 +26,7 @@ jobs:
2626
- `/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
2727
- `/do-not-merge` or `/dnm` - This comment will block automerging even if all conditions are met and ready-to-merge label is added
2828
create_help_comment_issue:
29-
if: ${{ !github.event.issue.pull_request && contains(github.event.comment.body, '/help') }}
29+
if: ${{ !github.event.issue.pull_request && contains(github.event.comment.body, '/help') && github.actor != 'asyncapi-bot'}}
3030
runs-on: ubuntu-latest
3131
steps:
3232
- uses: actions-ecosystem/action-create-comment@v1

0 commit comments

Comments
 (0)