Skip to content

Commit db153f7

Browse files
fixes
1 parent 109fff3 commit db153f7

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

.github/workflows/conference.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,19 @@ jobs:
5555
automated pr
5656
add_comment:
5757
runs-on: ubuntu-latest
58-
58+
5959
steps:
60-
- name: Add comment to the issue
61-
uses: actions/github-script@v6
62-
if: ${{ github.event.issue.user.type != 'User' }} #adds comment only if the issue is created by a bot
63-
with:
64-
github-token: ${{ secrets.GITHUB_TOKEN }}
65-
script: |
66-
const issueNumber = context.payload.issue.number;
67-
const comment = "Automated issue, no action is required."
68-
69-
github.issues.createComment({
70-
...context.repo,
71-
issue_number: issueNumber,
72-
body: comment
73-
});
60+
- name: Add comment to the issue
61+
uses: actions/github-script@v6
62+
if: ${{ github.event.issue.user.type == 'User' && startsWith(github.event.issue.title, '[CONFERENCE]') && contains(github.event.issue.labels.*.name, 'conference') }} #adds comment only if the issue is created by a user
63+
with:
64+
github-token: ${{ secrets.GITHUB_TOKEN }}
65+
script: |
66+
const issueNumber = context.payload.issue.number;
67+
const comment = "Automated issue, no action is required."
68+
69+
github.issues.createComment({
70+
...context.repo,
71+
issue_number: issueNumber,
72+
body: comment
73+
});

0 commit comments

Comments
 (0)