Closed helloworld12321 closed 2 years ago
Thanks very much! :)
Do we want to add the
?event=
component?TBH, I'm not sure I fully get what they're saying there. Do badges automatically reflect the state of the branch you're looking at? Or does adding this cause that to happen? If so, it might be nice to have it reflect the state of the branch you're looking at?
I just checked—It looks like badges show the state of the main
branch, not the current branch:
If you want to show the state of some other branch—for example, if you have a staging
branch that's important to you—you can ask for that using a ?branch=staging
query parameter. From quickly looking at the docs, I don't think there's a way to specify "always show the state of the current branch", unfortunately. 🤷🏻♂️
The ?event=
query parameter, by contrast, deals with what sort of event triggered the CI.
For example, maybe you run the CI on pushes and releases, but you only want the releases to be reflected in the badge. Then you could say something like ?event=release
, I think.
Thanks for figuring all that out! I think the default will do just fine for now. 😄
Closes #81.