#11622 closed enhancement (fixed)
Allow full ticket ref syntax in the CommitTicketUpdater
Reported by: | Lele Gaifax | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Milestone: | 1.1.2 |
Component: | ticket system | Version: | |
Severity: | normal | Keywords: | CommitTicketUpdater |
Cc: | Branch: | ||
Release Notes: |
CommitTicketUpdater recognizes long-form ticket references with a trailing |
||
API Changes: | |||
Internal Changes: |
Description
Currently it does not handle the full TracLinks syntax: ticket:10#comment:2
.
Could something like this patch be applied?
Attachments (0)
Change History (5)
comment:1 by , 11 years ago
Keywords: | CommitTicketUpdater added |
---|---|
Milestone: | → 1.1.2 |
Owner: | set to |
Status: | new → assigned |
follow-up: 3 comment:2 by , 11 years ago
I see, and find it reasonable: I did not even know about the alternative ordered syntax.
Looking at your patch, what does ticket:10#comment:description
do? Trying it out in the SandBox, it seems it addresses the description field of the ticket… and I fail to see a concrete use case for it (in the CommitTicketUpdater context, I mean): I needed support for ticket:10#comment:2
in cases when a previous commit closed the ticket, then the QA people reopened it because the fix was not enough, annotating the reason, and one more commit was needed.
comment:3 by , 11 years ago
Replying to lelit:
I see, and find it reasonable: I did not even know about the alternative ordered syntax.
The syntaxes can be found at TracLinks#comment:links. It seems useful to align the syntaxes as much as possible.
comment:4 by , 11 years ago
Release Notes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
Committed to trunk in [12825].
comment:5 by , 10 years ago
Release Notes: | modified (diff) |
---|
I don't think it is intended that all forms of the ticket TracLinks be allowed as ticket reference tokens. Supporting the
comment:2:ticket:10
TracLink form would appear to require difficult changes. However I think we can add support for theticket:10#comment:2
form.The
ticket:10#comment:2
form works when referencing only a single ticket, which I don't think was intentional, but rather just a consequence of how the matching is implemented. The comment TracLink doesn't work correctly when multiple tickets are referenced, for example:ticket:10#comment:2 and ticket:11#comment2
- a reference to only the first ticket is inserted.Proposed changes in log:rjollos.git:t11622.