Skip to content

Commit

Permalink
Merge pull request #11922 from vkWeb/fix/notify-contributor
Browse files Browse the repository at this point in the history
Fixes the broken slack contributor notification gh action
  • Loading branch information
MisRob authored Feb 27, 2024
2 parents 78d136c + ea922d3 commit 645c5dd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/notify_team_new_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Escape title double quotes
id: escape_title
run: |
echo "ISSUE_TITLE=${{ toJSON(github.event.issue.title) }}" >> "$GITHUB_OUTPUT"
- name: Send message to Slack channel
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
ISSUE_TITLE: ${{ toJSON(github.event.issue.title) }}
uses: slackapi/slack-github-action@v1.25.0
with:
payload: |
{
"text": "*[Kolibri] 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 }}>*"
"text": "*[Kolibri] New comment on issue: <${{ github.event.issue.html_url }}#issuecomment-${{ github.event.comment.id }}|$ISSUE_TITLE by ${{ github.event.comment.user.login }}>*"
}

0 comments on commit 645c5dd

Please sign in to comment.