Skip to content

Remove conditions for testing #2

Remove conditions for testing

Remove conditions for testing #2

name: Send a slack notification when a contributor comments on issue
on:
issue_comment:
types: [created]
jobs:
contributor_issue_comment:

Check failure on line 8 in .github/workflows/notify_team_new_comment.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/notify_team_new_comment.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
name: Contributor issue comment
if: >-
# ${{
# !github.event.issue.pull_request &&
# github.event.comment.author_association != 'MEMBER' &&
# github.event.comment.author_association != 'OWNER'
# }}
${{
!github.event.issue.pull_request
}}
runs-on: ubuntu-latest
steps:
- name: Escape title double quotes
id: escape_title
env:
ISSUE_TITLE: ${{ github.event.issue.title }}
run: echo "ISSUE_TITLE=${ISSUE_TITLE//\"/\\\"}" >> "$GITHUB_OUTPUT"
- name: Send message to Slack channel
env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_URL: "https://hooks.slack.com/triggers/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"
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
uses: slackapi/[email protected]
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 }}>*"
}