~edwargix/git.sr.ht

567aee14957749d76f09190a8f7aa9c26f31d9d3 — Simon Ser 5 years ago 3bb19d0
gitsrht-update-hook: add "commits" build tag

This is consistent with what dispatch.sr.ht does and allows users to
have a badge for commits only (and not for patches sent on the mailing
list).
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht-update-hook/submitter.go
M gitsrht-update-hook/submitter.go => gitsrht-update-hook/submitter.go +1 -1
@@ 271,7 271,7 @@ func SubmitBuild(submitter BuildSubmitter) ([]BuildSubmission, error) {
			Tags     []string `json:"tags"`
		}{
			Manifest: yaml,
			Tags:     []string{submitter.GetRepoName(), name},
			Tags:     []string{submitter.GetRepoName(), "commits", name},
			Note:     submitter.GetCommitNote(),
		}
		bodyBytes, err := json.Marshal(&submission)