slack icon indicating copy to clipboard operation
slack copied to clipboard

Subscribing to workflow updates for branches using a wildcard

Open JoshMcCullough opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. I may be confusing something, but I want to subscribe to workflow notifications for any branch that looks like f/*. I've tried to do so via:

/github subscribe <org> workflows:{event: "push", "workflow_dispatch" branch: "master", "f/*"}

But I do not get notifications for any f/* branches (example: f/ABC-123).

Describe the solution you'd like To be able to subscribe to workflow updates for branches using a wildcard (or, preferably, to be told what I'm doing wrong).

JoshMcCullough avatar Sep 30 '23 04:09 JoshMcCullough

Our team is also waiting for this feature. Our use case is below.

There are two Slack channels and multiple patterns of branches. In production release channel.

/github subscribe owner/repo workflows:{branch:"production"}

In development release channel.

/github subscribe owner/repo workflows:{branch:"master"}
/github subscribe owner/repo workflows:{branch:"stg/*"}
/github subscribe owner/repo workflows:{branch:"feature/*"}

uplus avatar Nov 28 '23 10:11 uplus

How can we only subscribe workflows?

xihajun avatar Mar 28 '24 11:03 xihajun

Bump!

I found something that works for every branch, as long as the branch is not specified, workflows on all branches will trigger the notification. /github subscribe owner/repo workflows:{event:"workflow_run","workflow_dispatch","push","pull_request"}

But it'll still be useful to filter out branches with a wildcard.

gajabuja-george avatar Aug 16 '24 09:08 gajabuja-george