Bug 255107 (handle-aliases) - Bugzilla-Commit 'PR'-handler should understand aliases
Summary: Bugzilla-Commit 'PR'-handler should understand aliases
Status: Open
Alias: handle-aliases
Product: Services
Classification: Unclassified
Component: Bug Tracker (show other bugs)
Version: unspecified
Hardware: Any Any
: --- Affects Only Me
Assignee: Bugmeister
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2021-04-16 04:37 UTC by Tobias C. Berner
Modified: 2022-12-19 07:47 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.