Skip to content
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

gh-91888: add a :gh: role to the documentation #91889

Merged
merged 4 commits into from
Apr 25, 2022

Conversation

ezio-melotti
Copy link
Member

This PR adds the :gh:`...` role proposed in GH-91888.

Some comments about the PR:

  • A :pr:`...` (or :gh-pr:) role could be added too
  • To be more explicit, we could also use :gh-issue:`...` instead of :gh:`...`
  • A :bpo:`...` alias to the :issue: role could be added, and :issue: deprecated

Copy link
Member

@serhiy-storchaka serhiy-storchaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few little suggestions.

Doc/tools/extensions/pyspecific.py Outdated Show resolved Hide resolved
Doc/tools/extensions/pyspecific.py Outdated Show resolved Hide resolved
Doc/tools/extensions/pyspecific.py Outdated Show resolved Hide resolved
Doc/tools/extensions/pyspecific.py Outdated Show resolved Hide resolved
@hugovk
Copy link
Member

hugovk commented Apr 25, 2022

  • A :pr:`...` (or :gh-pr:) role could be added too
  • To be more explicit, we could also use :gh-issue:`...` instead of :gh:`...`
  • A :bpo:`...` alias to the :issue: role could be added, and :issue: deprecated

People may end up using :gh:`...` for PRs as well, but it's not the end of the world: GitHub redirects
https://github.com/python/cpython/issues/91889 to
https://github.com/python/cpython/pull/91889

(And similarly redirects:
https://github.com/python/cpython/pull/91888 to
https://github.com/python/cpython/issues/91888)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
@ezio-melotti ezio-melotti merged commit f7641a2 into python:main Apr 25, 2022
@miss-islington
Copy link
Contributor

Thanks @ezio-melotti for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8, 3.9, 3.10.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

@miss-islington
Copy link
Contributor

Sorry, @ezio-melotti, I could not cleanly backport this to 3.10 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker f7641a2ffec243e5f600028a84debe9028a9ee44 3.10

@miss-islington
Copy link
Contributor

Sorry @ezio-melotti, I had trouble checking out the 3.9 backport branch.
Please backport using cherry_picker on command line.
cherry_picker f7641a2ffec243e5f600028a84debe9028a9ee44 3.9

@miss-islington
Copy link
Contributor

Sorry, @ezio-melotti, I could not cleanly backport this to 3.8 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker f7641a2ffec243e5f600028a84debe9028a9ee44 3.8

@miss-islington
Copy link
Contributor

Sorry @ezio-melotti, I had trouble checking out the 3.7 backport branch.
Please backport using cherry_picker on command line.
cherry_picker f7641a2ffec243e5f600028a84debe9028a9ee44 3.7

ezio-melotti added a commit to ezio-melotti/cpython that referenced this pull request Apr 26, 2022
ezio-melotti added a commit to ezio-melotti/cpython that referenced this pull request Apr 26, 2022
…GH-91889)

* Add a new :gh:`...` role for GitHub issues.

* Fix a GitHub id to use the :gh: role.

* Add Misc/NEWS entry.

* Refactoring and rephrasing.

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>.
(cherry picked from commit f7641a2)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
@bedevere-bot
Copy link

bedevere-bot commented Apr 26, 2022

GH-91934 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Apr 26, 2022
ezio-melotti added a commit to ezio-melotti/cpython that referenced this pull request Apr 26, 2022
ezio-melotti added a commit to ezio-melotti/cpython that referenced this pull request Apr 26, 2022
…GH-91889)

* Add a new :gh:`...` role for GitHub issues.

* Fix a GitHub id to use the :gh: role.

* Add Misc/NEWS entry.

* Refactoring and rephrasing.

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>.
(cherry picked from commit f7641a2)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
@bedevere-bot
Copy link

GH-91935 is a backport of this pull request to the 3.9 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Apr 26, 2022
ezio-melotti added a commit to ezio-melotti/cpython that referenced this pull request Apr 26, 2022
ezio-melotti added a commit to ezio-melotti/cpython that referenced this pull request Apr 26, 2022
…H-91889)

* Add a new :gh:`...` role for GitHub issues.

* Fix a GitHub id to use the :gh: role.

* Add Misc/NEWS entry.

* Refactoring and rephrasing.

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>.
(cherry picked from commit f7641a2)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
@bedevere-bot
Copy link

GH-91936 is a backport of this pull request to the 3.8 branch.

ezio-melotti added a commit to ezio-melotti/cpython that referenced this pull request Apr 26, 2022
ezio-melotti added a commit to ezio-melotti/cpython that referenced this pull request Apr 26, 2022
…H-91889)

* Add a new :gh:`...` role for GitHub issues.

* Fix a GitHub id to use the :gh: role.

* Add Misc/NEWS entry.

* Refactoring and rephrasing.

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>.
(cherry picked from commit f7641a2)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
@bedevere-bot
Copy link

GH-91937 is a backport of this pull request to the 3.7 branch.

@ezio-melotti ezio-melotti deleted the new-role-gh branch April 26, 2022 00:43
ezio-melotti added a commit that referenced this pull request Apr 26, 2022
)

* gh-91888: Add a :gh: role to the documentation (GH-91889).

* [3.10] gh-91888: add a `:gh:` role to the documentation (GH-91889)

* Add a new :gh:`...` role for GitHub issues.

* Fix a GitHub id to use the :gh: role.

* Add Misc/NEWS entry.

* Refactoring and rephrasing.

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>.
(cherry picked from commit f7641a2)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
ezio-melotti added a commit that referenced this pull request Apr 26, 2022
…1935)

* gh-91888: Add a :gh: role to the documentation (GH-91889).

* [3.9] gh-91888: add a `:gh:` role to the documentation (GH-91889)

* Add a new :gh:`...` role for GitHub issues.

* Fix a GitHub id to use the :gh: role.

* Add Misc/NEWS entry.

* Refactoring and rephrasing.

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>.
(cherry picked from commit f7641a2)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
ned-deily pushed a commit that referenced this pull request May 10, 2022
…-91937)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>.
Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
(cherry picked from commit f7641a2)
ezio-melotti added a commit that referenced this pull request May 10, 2022
…1936)

* gh-91888: Add a :gh: role to the documentation (GH-91889).

* [3.8] gh-91888: add a `:gh:` role to the documentation (GH-91889)

* Add a new :gh:`...` role for GitHub issues.

* Fix a GitHub id to use the :gh: role.

* Add Misc/NEWS entry.

* Refactoring and rephrasing.

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>.
(cherry picked from commit f7641a2)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>

* Fix use of the default role in NEWS entry
hello-adam pushed a commit to hello-adam/cpython that referenced this pull request Jun 2, 2022
…H-91889) (python#91935)

* pythongh-91888: Add a :gh: role to the documentation (pythonGH-91889).

* [3.9] pythongh-91888: add a `:gh:` role to the documentation (pythonGH-91889)

* Add a new :gh:`...` role for GitHub issues.

* Fix a GitHub id to use the :gh: role.

* Add Misc/NEWS entry.

* Refactoring and rephrasing.

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>.
(cherry picked from commit f7641a2)

Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants