Hello, as part of story 3 task 11 I'd like to start the discussion on $topic.
There are a couple of things to achieve:
1/ Link in commit message of gerrit webui needs to point at the correct
issue tracker.
2/ Commit trigger needs to update issue tracker on patchset-created and
change-merged event.
Here are my proposals:
For the webui link, it seems trivial to use simple replacement rules
such as:
(Closes|Related)-(Story|Task): [0-9]+
=> resolves to internal link e.g. /storyboard/$number
(Closes|Related)-(Issue|Bug): TAG#[0-9]+ -> external
=> resolves to external link, e.g. LP: bugs.launchpad.net/$number
Then this is all user managed through config/gerrit/commentlinks.yaml
Then for the trigger part I recommend we keep it simple and do the
following:
When there is no TAG, managesf assumes it's pointing at the internal
storyboard and it does the task update automatically.
For external issue tracker, managesf would look up an issue trackers
configuration per tag such as endpoint address, username and password.
Ideally, issue tracker configuration and per project settings would be
defined in the resources yaml description, however I'm afraid gerrit
webui won't be able to easily produce the correct comment links.
Hence the trivial above proposals.
External issue tracker aren't addressed by this Story 3, and it shall be
implemented in a follow-up story.
TL;DR;
Closes-Task: 3 => Put the task in review on patchset-created,
Put the task in merged on patchset-merged
"Closes-" is optional
Related-Task: 3 => Put the task in review on patchset-created,
Doesn't update the task on patchset-merged
Bug: LP#3 => Web-ui link resolves to launchpad.net
Doesn't update the task (yet)
Regards,
-Tristan
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Softwarefactory-dev mailing list [email protected] https://www.redhat.com/mailman/listinfo/softwarefactory-dev
