-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set up GitHub Autolink feature for this repo #2255
Comments
BCPs? (e.g. BCP 47) |
I think this is also something we should just enable and add to later if anyone has any new ideas (this would be a great place to suggest them) |
Nice idea, these are a good start. https://github.com/python/cpython already does at least (These need to be defined at the repo level, give this ticket a +1 for org-level suport.) |
If you can't as a triager, it might only be repo admins -- pinging @Mariatta @brettcannon |
On the CPython repo, we only set up the |
It has to be a repo admin. Since the PEP editors' Admin permissions were just dropped to Maintain, I am not able to do this anymore; it will have to be @gvanrossum , @warsaw or @brettcannon . |
What do people want specifically? Mapping for |
|
"RFC" seems to have been used in 16 issues or PRs 1 (~0.7% of the total), and sometimes as a synonym to PEP. BCP has been used in two issues other than this one, both times by me. So really A Footnotes |
If we start autolinking RFC to the IETF RFCs, people will start using it for the correct thing more often. I'm one who has mentioned RFCs in issues and CLs in the past; it's annoying to have to paste the link to them in instead. I'd keep RFC on the list. |
I know RFC, BCP and ID (internet draft), but what is CL? |
I believe it's changelist, Googlespeak for PR. |
I've never heard of |
i couldn't for the life of me figure out why you were talking about CLs here until I reread my above comment. ;) yes it just means changelist or commit or PR. I believe it originates from Perforce. Ignore that I used that acronym. |
You got |
This is a test PEP 8 bpo-12345 RFC 3339 |
Did I pass the test? 😉 |
The ones with spaces didn't autolink, but other than that, they are links both here in the web UI, and in the email that GitHub sent me. 👍 |
I assume this is a limitation of the autolink feature :( Thanks Brett! |
@brettcannon Thanks, but not quite—PEP and RFC contain a spurious dash instead of a space (it should be |
Unfortunately the PEP-8 link 404s. |
Yeah, that's because of the lack of zero padding—the PEP-0008 link works fine. If we had a redirect rule from non-zero-padded to zero-padded versions of the non-4-digit PEP URLs, that would fix the issue (since there's no way I know of to do so through GitHub). Otherwise, might not be worth doing since it won't work in most cases unless users know and remember the trick. |
I'd be wary of adding this. The zero padded form has been around basically forever and people are used to it -- and in the future it would be another set of redirect rules (when peps-but-even-better.python.org gets made!) A |
It's not spurious but required. The autolinking feature will not work without the dash.
Once again, nothing to be done here on the GitHub side.
Since you have to include the dash there's nothing to worry about. Either you get the linking or you don't, and you simply need to know about the zero padding.
I agree. People will just to live with the imperfection of this or there won't be any autolinking. This is way too much of an edge case to set up redirects for. |
Got it, thanks.
I guess that makes sense, avoiding frustration while allowing those "in the know" to use them. My only concern though is that it might confuse some people into thinking PEP-NNNN is the canonical form instead of PEP nnn, but the impact will probably be pretty minor.
Yeah; I run into it a lot when manually typing/modifying PEP links, but that's very much an edge case too. |
@brettcannon could you update the autolink config to use the new canonical URLs? |
I have permissions for that now, let me do it. |
Done PEP-0526 |
PEP-526 404s though, did we not end up creating redirects for that? |
Thanks @JelleZijlstra !
Not yet; see #2420 . Since it appears the |
I noticed the GitHub Autolink references feature and thought it might be a great fit for the PEPs repo—references to PEPs in GitHub issues, PRs, etc could automatically turn into links to the PEPs; same for BPOs, RFCs, and any others we want.
Any objections? Any other ideas beyond PEPs, BPOs and RFCs (@hugovk ?)
The text was updated successfully, but these errors were encountered: