File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed
Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Send a slack notification when a contributor comments on issue
2+
3+ on :
4+ issue_comment :
5+ types : [created]
6+
7+ jobs :
8+ contributor_issue_comment :
9+ name : Contributor issue comment
10+
11+ if : >-
12+ ${{
13+ !github.event.issue.pull_request &&
14+ github.event.comment.author_association != 'MEMBER' &&
15+ github.event.comment.author_association != 'OWNER'
16+ }}
17+
18+ runs-on : ubuntu-latest
19+ steps :
20+ - name : Escape title double quotes
21+ id : escape_title
22+ run : |
23+ title='${{ github.event.issue.title }}'
24+ echo "ISSUE_TITLE=${title//\"/\\\"}" >> "$GITHUB_OUTPUT"
25+
26+ - name : Send message to Slack channel
27+ env :
28+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK_URL }}
29+ SLACK_WEBHOOK_TYPE : INCOMING_WEBHOOK
30+ uses : slackapi/slack-github-action@v1.25.0
31+ with :
32+ payload : |
33+ {
34+ "text": "*[KDS] New comment on issue: <${{ github.event.issue.html_url }}#issuecomment-${{ github.event.comment.id }}|${{ steps.escape_title.outputs.ISSUE_TITLE }} by ${{ github.event.comment.user.login }}>*"
35+ }
Original file line number Diff line number Diff line change @@ -4,6 +4,17 @@ Changelog is rather internal in nature. See release notes for the public overvie
44
55## Version 4.x.x (` release-v4 ` branch)
66
7+ - [ #555 ]
8+ - ** Description:** Add action to notify us on Slack about GH issues comments from contributors community
9+ - ** Products impact:** none
10+ - ** Addresses:** -
11+ - ** Components:** -
12+ - ** Breaking:** -
13+ - ** Impacts a11y:** -
14+ - ** Guidance:** -
15+
16+ [ #555 ] : https://github.com/learningequality/kolibri-design-system/pull/555
17+
718- [ #565 ]
819 - ** Description:** Revert adding engines
920 - ** Products impact:** Dependencies
You can’t perform that action at this time.
0 commit comments