forgejo: Support deletion of branches when a pull request is closed.
This commit is contained in:
parent
8e7da32f55
commit
254998a561
3 changed files with 29 additions and 3 deletions
|
|
@ -127,7 +127,13 @@
|
|||
(enqueue-job-for-pull-request conn pull)))
|
||||
|
||||
(test-assert "git-commit-exists?, new commit"
|
||||
(git-commit-exists? conn pull-request-new-commit)))
|
||||
(git-commit-exists? conn pull-request-new-commit))
|
||||
|
||||
(test-assert "mark-pull-request-branch-for-deletion"
|
||||
(let* ((event (json->forgejo-pull-request-event
|
||||
pull-request-event-json))
|
||||
(pull (forgejo-pull-request-event-pull-request event)))
|
||||
(mark-pull-request-branch-for-deletion conn pull))))
|
||||
|
||||
#:always-rollback? #t)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue