Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow granular selection of GitHub notification method via destination #304

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

tonglil
Copy link

@tonglil tonglil commented Jun 8, 2024

Right now if someone has all of the GH notification types configured, subscribing to it will update all of them without a way to choose which one.

This is useful when you want to use commit status for one type of trigger, and deployments for another.

The change retains the existing behavior: if no recipient is specified in the subscription annotation, all notification types will be updated.

@tonglil tonglil force-pushed the granular-github-notifications branch from fb88628 to a7a1cee Compare June 8, 2024 01:57
sendComment bool
)

switch dest.Recipient {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i would suggest instead create variables, split them into different functions and execute inside switch

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated. Couldn't use switch without making it very complex.

Signed-off-by: Tony Li <[email protected]>
@tonglil tonglil force-pushed the granular-github-notifications branch from d34faba to 56a3811 Compare June 11, 2024 21:35
@tonglil tonglil changed the title Allow granular selection of GitHub notification method via destination feat: allow granular selection of GitHub notification method via destination Jun 14, 2024
@tonglil tonglil changed the title feat: allow granular selection of GitHub notification method via destination feat: allow granular selection of GitHub notification method via destination Jun 14, 2024
@tonglil
Copy link
Author

tonglil commented Jun 17, 2024

Ping @pasha-codefresh or any other owner?

@pasha-codefresh
Copy link
Member

Will review. Sorry for delay

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