mirror of https://git.sr.ht/~sircmpwn/hub.sr.ht
be5d50d8d8
Allow referencing tracker tickets in git commit messages via specific trailer words: Fixes: <ticket url> Implements: <ticket url> References: <ticket url> These must follow standard git trailer syntax. The trailers are extracted from commit messages with the function added in previous commit. The ticket url must point to a valid ticket. A comment will be inserted in the ticket with a back reference to the git commit and its original author. The comment will be made by the user who pushed the commit. E.g.: ~arkanoid REPORTED -> FIXED 9 seconds ago John Doe referenced this ticket in commit b4dc4c40. Open tickets referenced by a Fixes trailer will be resolved with the FIXED resolution. Open tickets referenced by an Implements trailer will be resolved with the IMPLEMENTED resolution. Caveats: * Only the 25 most recent commit messages will be considered when pushing long series. This should be a fairly sane limitation. * If the user pushing commits does not have triage/comment permissions on the bug tracker, nothing will happen. * Invalid/non-existent ticket urls are ignored. * When a git repository is part of more than one project, the webhook will run once per project and update the same ticket(s) once per project as well. * If an already resolved ticket is referenced by a Fixes or Implements trailer, only a comment will be added. Link: https://git-scm.com/docs/git-interpret-trailers Implements: https://todo.sr.ht/~sircmpwn/hub.sr.ht/55 Signed-off-by: Robin Jarry <robin@jarry.cc> |
||
---|---|---|
.builds | ||
hubsrht | ||
scss | ||
.gitignore | ||
LICENSE | ||
Makefile | ||
README.md | ||
config.example.ini | ||
hubsrht-initdb | ||
hubsrht-migrate | ||
run.py | ||
setup.py | ||
static |
README.md
This repository contains the code for the sr.ht project hub. For instructions on deploying or contributing to this project, visit the manual here: