Gitea webhook to trigger OBS services
This repository has been archived on 2024-12-24. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Přemysl Janouch 14be8d3d8e
Relicense to 0BSD, update mail address
I've come to the conclusion that copyright mostly just stands in the way
of software development.  In my jurisdiction I cannot give up my own
copyright and 0BSD seems to be the closest thing to public domain.

The updated mail address, also used in my author/committer lines,
is shorter and looks nicer.  People rarely interact anyway.
2018-06-24 03:53:02 +02:00
.gitignore Initial commit 2017-12-02 22:17:51 +01:00
LICENSE Relicense to 0BSD, update mail address 2018-06-24 03:53:02 +02:00
main.go Initial commit 2017-12-02 22:17:51 +01:00
README.adoc Relicense to 0BSD, update mail address 2018-06-24 03:53:02 +02:00

gitea-obs

gitea-obs is a webhook endpoint to trigger the services in Open Build Service, meant as a replacement for the Obs service on GitHub.

Unfortunately someone thought I wasnt being funny with my project names and blocked my OBS account before I could test it. Therefore it comes as is.

Usage

$ go build
$ mkdir gitea-obs-workdir
$ cd gitea-obs-workdir
$ ../gitea-obs :3000 secret

Then, in Gitea, assuming its running on the same machine as the program, use a 'Payload URL' like the following:

Optional arguments:

  • project is the OBS project name (when not implied by the token itself)

  • package is the OBS package name (when not implied by the token itself)

  • refs is a colon-separated list of Go filepath patterns to filter branches, for example 'refs/heads/*'; defaults to 'refs/heads/master'

  • obs specifies a different URL for the OBS instance

The program uses the current working directory as a dispatch queue, and it must be run in a dedicated directory.

Contributing and Support

Use https://git.janouch.name/p/gitea-obs to report any bugs, request features, or submit pull requests. If you want to discuss this project, or maybe just hang out with the developer, feel free to join me at irc://irc.janouch.name, channel #dev.

License

This software is released under the terms of the 0BSD license, the text of which is included within the package along with the list of authors.