Skip to content

chore: skip own PR Discord notifications#2

Merged
ccarvalho-eng merged 1 commit into
mainfrom
codex/skip-own-discord-pr-notifications
May 22, 2026
Merged

chore: skip own PR Discord notifications#2
ccarvalho-eng merged 1 commit into
mainfrom
codex/skip-own-discord-pr-notifications

Conversation

@ccarvalho-eng

Copy link
Copy Markdown
Contributor

Why

Self-authored pull request notifications add noise to the Discord channel when the useful signal is activity from other users.

What Changed

The Discord notification workflow now defines IGNORED_PR_ACTOR and exits early for pull request events when either the PR author or event sender matches that actor.

Issue, release, star, and default-branch workflow failure notifications are unchanged.

Flow

flowchart LR
    PREvent[Pull request event] --> ReadActor[Read PR author and sender]
    ReadActor --> Own{Matches ignored actor?}
    Own -- yes --> Skip[Skip Discord notification]
    Own -- no --> Notify[Post Discord notification]
Loading

Test Plan

  • git diff origin/main...HEAD --check
  • ruby -e 'require "yaml"; YAML.load_file(ARGV[0])' .github/workflows/discord-notifications.yml

ShellCheck was not available in the local environment.

Skip Discord notifications for pull request events when the PR author or sender is the configured ignored GitHub actor. This keeps PR notifications focused on activity from other users.
@ccarvalho-eng ccarvalho-eng merged commit 4b86e8d into main May 22, 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.

1 participant