NiklasRosenstein / flux-ci

Flux is your own private & lightweight CI server.
MIT License
26 stars 10 forks source link

Added new hook for payload from bare repository #69

Closed tvrzna closed 5 years ago

tvrzna commented 5 years ago

Since Flux-CI is lightweight CI server, there should be also ability to accept also payload, that could be easy to create in bare repository instead of sending duplication of some more complex webhook payload.

This is sample of simplified JSON payload, that does not contain unused values.

{
  "owner": "owner",
  "name": "name",
  "ref": "refs/tags/1.0",
  "commit": "0000000000000000000000000000000000000000",
  "secret": "custom-project-secret-in-plain-text"
}

Because not many users familiar with git hooks, there is also sample in Integration page, that is shown only by clicking on the link of Bare repository.

That new api is available as ?api=bare.

NiklasRosenstein commented 5 years ago

Thanks!

tvrzna commented 5 years ago

Thank you for additional changes :)

I've created new branch with extended fontello, that contains also icon for external links, but since I'm not currently on computer, where I have my GPG key, it must wait until evening to keep signed commits policy.