Bug 255107 (handle-aliases)

Summary: Bugzilla-Commit 'PR'-handler should understand aliases
Product: Services Reporter: Tobias C. Berner <tcberner>
Component: Bug TrackerAssignee: Bugmeister <bugmeister>
Status: Open ---    
Severity: Affects Only Me CC: grahamperrin
Priority: --- Keywords: needs-qa
Version: unspecified   
Hardware: Any   
OS: Any   

Description Tobias C. Berner freebsd_committer freebsd_triage 2021-04-16 04:37:36 UTC
Moin moin 

I tend to use aliases to get the PRs a sensible id.

E.g. 'poppler-21.04'.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=poppler-21.04.0

which can be found easily by knowing the scheme, opposed to the lookup via id

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254008


I tried to use the alias in this commit here (to see whether it works :D):
https://cgit.freebsd.org/ports/commit/?id=2f973a2955686494aff30a15f18be3fa0492d9de

Unfortunately, the PR was not updated.


Would it be possible to extend the PR-handler to accept aliases?

So that 
   PR: poppler-21.04.0
leads to the same as 
   PR: 265008
would have?


mfg Tobias
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2022-12-19 07:47:02 UTC
For what it's worth

With (at least) <https://docs.freebsd.org/en/articles/committers-guide/#_include_appropriate_metadata_in_a_footer> in mind, I suspect that: 

* use of any string that omits the bug number will be discouraged 

– partly because: 

* aliases may be mutable
* the bug id number is (to the best of my knowledge) immutable. 

----

Seeking logged PR values that begin with alphabetic characters: 

git -C /usr/doc log --no-expand-tabs --extended-regexp --grep='^PR:[[:cntrl:] ]{1,}[A-Za-z]{1,}'

git -C /usr/ports log --no-expand-tabs --extended-regexp --grep='^PR:[[:cntrl:] ]{1,}[A-Za-z]{1,}'

git -C /usr/src log --no-expand-tabs --extended-regexp --grep='^PR:[[:cntrl:] ]{1,}[A-Za-z]{1,}'

----

Side note: bug 46272 comment 3 mismatched through misplaced use of a GitHub URL.