Skip to content

Extend Discord notifications to push and issue events - #29

Merged
0x5t4l1n merged 1 commit into
mainfrom
copilot/check-discord-functionality
Aug 27, 2026
Merged

Extend Discord notifications to push and issue events#29
0x5t4l1n merged 1 commit into
mainfrom
copilot/check-discord-functionality

Conversation

Copilot AI commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

The Discord workflow only handled repository_advisory events and did not notify on normal repo activity. This update broadens event coverage so commits and newly raised issues also produce Discord alerts with event-specific payloads.

  • Scope expansion

    • Added workflow triggers for:
      • push (all branches)
      • issues (opened, reopened)
    • Retained existing repository_advisory triggers.
  • Event-aware notification payloads

    • Reworked the notification step to branch on github.event_name and build tailored embeds per event type:
      • Advisory: severity/state/CVE/description
      • Push: commit message, short SHA, branch, pusher
      • Issue: issue number/title/state/reporter/description
  • Runtime data extraction

    • Switched to reading event data from github.event_path with jq to safely handle differing payload schemas across event types.
    • Preserved webhook guard behavior and HTTP failure handling.
on:
  push:
    branches:
      - '**'
  issues:
    types: [opened, reopened]
  repository_advisory:
    types: [reported, created, published, submitted, reopened]

Co-authored-by: 0x5t4l1n <161853795+0x5t4l1n@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

@0x5t4l1n
0x5t4l1n merged commit 36ef431 into main Aug 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants