Skip to content

Commit 406db31

Browse files
authored
Merge pull request #577 from MisRob/merge-develop-to-release-v4
Merge develop to release v4
2 parents e0b447c + 718ac8b commit 406db31

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)