brigadecore / brigadecore/brigade-github-gateway

Add branch label to applicable types

Open
#114 0 comments 0 reactions 1 assignee Claimed by @krancour View on GitHub
enhancement
Dominant language
Go
Stars
4
Forks
3
PR merge metrics
No merged PRs in 30d

Description

It would be nice if subscribers could optionally narrow their subscriptions to applicable event type using a "branch" label. In this way, one could, for instance, express an interest only in events related to branch `foo`.

Great care needs to be taken in implementing this. The indicator that something is related in some way to a given branch will vary from one webhook type to the next. A pull request webhook illustrates this point. A pull request references both a source and target branch. While the _source_ branch may be the right thing to put in the `Git.Ref` field (the thing to be "built"), the _target_ branch is the right thing to put in the label.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.