Skip to content

Commit bff091f

Browse files
committed
Add issue-open Slack notification and retire unreleased-changes digest
Add notify-issue.yml posting to #oss-alerts when an issue is opened or reopened, mirroring the existing notify-pr.yml house style. Delete unreleased-check.yml — the daily "Unreleased changes on main" digest was noise. This closes the gap where PR notifications existed but issue notifications did not.
1 parent 45dfc6b commit bff091f

2 files changed

Lines changed: 27 additions & 72 deletions

File tree

.github/workflows/notify-issue.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Issue Notification
2+
on:
3+
issues:
4+
types: [opened, reopened]
5+
permissions: {}
6+
jobs:
7+
notify:
8+
runs-on: ubuntu-latest
9+
timeout-minutes: 5
10+
steps:
11+
- name: Notify Slack
12+
if: github.actor != 'github-actions[bot]'
13+
env:
14+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_OSS_ALERTS }}
15+
ISSUE_TITLE: ${{ github.event.issue.title }}
16+
ISSUE_URL: ${{ github.event.issue.html_url }}
17+
ISSUE_NUMBER: ${{ github.event.issue.number }}
18+
ISSUE_AUTHOR: ${{ github.actor }}
19+
run: |
20+
if [ -n "$SLACK_WEBHOOK" ]; then
21+
payload=$(jq -nc --arg title "$ISSUE_TITLE" --arg author "$ISSUE_AUTHOR" \
22+
--arg url "$ISSUE_URL" --arg num "$ISSUE_NUMBER" \
23+
'{text: "🐛 New issue on pathfinder: *\($title)* by \($author)\n<\($url)|View issue #\($num)>"}')
24+
curl -sf -X POST "$SLACK_WEBHOOK" \
25+
-H 'Content-Type: application/json' \
26+
-d "$payload" || true
27+
fi

.github/workflows/unreleased-check.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

0 commit comments

Comments
 (0)