Discussions » Greasy Fork Feedback

Webhooks for custom event like "Branch or tag creation"

wOxxOmMod
§
Posted: 2020-03-02
Edited: 2020-03-02

Webhooks for custom event like "Branch or tag creation"

Trying to use Branch or tag creation event in the webhook options on github fails to deliver the payload with a 406 Not Acceptable status from GF.

I don't want to use the default Push event because it becomes a big problem if you publish on github or a similar site to provide a way to collaborate and test the master branch. For small-time fish like a userscript this is the easiest method as opposed to the more mature PR approach. However, a single commit may easily break something, which is why the master branch is considered a "trunk", "bleeding edge", "nightly". Then a tag is used to mark a point in the master branch where the code was tested enough to be released.

It'd be helpful if GF could use webhooks for a custom event like Branch or tag creation. Its JSON request looks like this:

{
  "ref": "1.2.3",
  "ref_type": "tag",
  "master_branch": "master",
  "description": ".......",
  "pusher_type": "user",
  "repository": { more or less same as push },
  "sender": { more or less same as push }
}
wOxxOmMod
§
Posted: 2020-03-02

Huh I guess I can make dev the default public branch for collaboration as suggested in the topic you've linked.

Post reply

Sign in to post a reply.