Discussions » Greasy Fork镜像 Feedback

Webhooks for custom event like "Branch or tag creation"

woxxomMod
§
Posted: 02 Maret 2020
Edited: 02 Maret 2020

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: 02 Maret 2020

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.

长期地址
遇到问题?请前往 GitHub 提 Issues。