Skip to content
Snippets Groups Projects
Unverified Commit 74e9d697 authored by Roman Abdulmanov's avatar Roman Abdulmanov Committed by GitHub
Browse files

Add notification about closed Epics (#47099)

parent 80813cb5
No related branches found
No related tags found
No related merge requests found
......@@ -9,9 +9,7 @@ jobs:
on-epic-closed:
runs-on: ubuntu-22.04
timeout-minutes: 5
if: |
${{ contains(github.event.issue.labels.*.name, '.Team') &&
( contains(github.event.issue.labels.*.name, '.Epic') || contains(github.event.issue.labels.*.name, 'Type:New Feature') ) }}
if: ${{ contains(github.event.issue.labels.*.name, '.Epic') || contains(github.event.issue.labels.*.name, 'Type:New Feature') }}
steps:
- name: Setting title
uses: actions/github-script@v6
......@@ -23,11 +21,14 @@ jobs:
id: team_name
run: |
team_label=$(echo "${{ join(github.event.issue.labels.*.name, ',') }}" | grep -o '\.Team/[^,]*' | head -n 1)
echo $team_label
echo "team_label=${team_label}" >> "$GITHUB_OUTPUT"
team_name=${team_label#*.Team/}
echo $team_name
echo "team_name=${team_name^^}_SLACK_EPIC_WEBHOOK_URL" >> "$GITHUB_OUTPUT"
- name: Send the issue ${{ github.event.issue.number }} to Slack
id: slack
if: ${{ steps.team_name.outputs.team_label }}
uses: slackapi/slack-github-action@v1.26.0
with:
payload: |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment