Skip to content

Commit 5eb852b

Browse files
authored
Fix rst format in doc/changes.rst (#2776)
1 parent 001c085 commit 5eb852b

File tree

2 files changed

+31
-27
lines changed

2 files changed

+31
-27
lines changed

doc/changes.rst

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Use a ``github.Auth.Netrc`` instance to use Netrc credentials:
6767
6868
**Repository.create_pull**
6969

70-
Merged overloaded `create_pull` methods
70+
Merged overloaded ``create_pull`` methods
7171

7272
.. code-block:: python
7373
@@ -80,7 +80,7 @@ into
8080
8181
def create_pull(self, base, head, *, title=NotSet, body=NotSet, maintainer_can_modify=NotSet, draft=NotSet, issue=NotSet)
8282
83-
Please update your usage of `Repository.create_pull` accordingly.
83+
Please update your usage of ``Repository.create_pull`` accordingly.
8484

8585
New features
8686
^^^^^^^^^^^^
@@ -93,61 +93,61 @@ Improvements
9393
^^^^^^^^^^^^
9494

9595
* Make datetime objects timezone-aware (#2565) (0177f7c5)
96-
* Make `Branch.edit_*` functions return objects (#2748) (8dee53a8)
97-
* Add `license` attribute to `Repository` (#2721) (26d353e7)
98-
* Add missing attributes to `Repository` (#2742) (65cfeb1b)
99-
* Add `is_alphanumeric` attribute to `Autolink` and `Repository.create_autolink` (#2630) (b6a28a26)
100-
* Suppress `requests` fallback to netrc, provide `github.Auth.Netrc` (#2739) (ac36f6a9)
101-
* Pass Requester arguments to `AppInstallationAuth.__integration` (#2695) (8bf542ae)
96+
* Make ``Branch.edit_*`` functions return objects (#2748) (8dee53a8)
97+
* Add ``license`` attribute to ``Repository`` (#2721) (26d353e7)
98+
* Add missing attributes to ``Repository`` (#2742) (65cfeb1b)
99+
* Add ``is_alphanumeric`` attribute to ``Autolink`` and ``Repository.create_autolink`` (#2630) (b6a28a26)
100+
* Suppress ``requests`` fallback to netrc, provide ``github.Auth.Netrc`` (#2739) (ac36f6a9)
101+
* Pass Requester arguments to ``AppInstallationAuth.__integration`` (#2695) (8bf542ae)
102102
* Adding feature for enterprise consumed license (#2626) (a7bfdf2d)
103103
* Search Workflows by Name (#2711) (eadc241e)
104-
* Add `Secret` and `Variable` classes (#2623) (bcca758d)
104+
* Add ``Secret`` and ``Variable`` classes (#2623) (bcca758d)
105105
* Add Autolink API link (#2632) (aedfa0b9)
106-
* Add `required_linear_history` attribute to `BranchProtection` (#2643) (7a80fad9)
107-
* Add retry issue to `GithubException`, don't log it (#2611) (de80ff4b)
108-
* Add `message` property to `GithubException` (#2591) (f087cad3)
106+
* Add ``required_linear_history`` attribute to ``BranchProtection`` (#2643) (7a80fad9)
107+
* Add retry issue to ``GithubException``, don't log it (#2611) (de80ff4b)
108+
* Add ``message`` property to ``GithubException`` (#2591) (f087cad3)
109109
* Add support for repo and org level actions variables (#2580) (91b3f40f)
110-
* Add missing arguments to `Workflow.get_runs()` (#2346) (766df993)
111-
* Add `github.Rate.used` field (#2531) (c4c2e527)
110+
* Add missing arguments to ``Workflow.get_runs()`` (#2346) (766df993)
111+
* Add ``github.Rate.used`` field (#2531) (c4c2e527)
112112

113113
Bug Fixes
114114
^^^^^^^^^
115115

116-
* Fix `Branch.bypass_pull_request_allowances` failing with "nil is not an object" (#2535) (c5542a6a)
117-
* Fix `required_conversation_resolution` assertion (#2715) (54f22267)
116+
* Fix ``Branch.bypass_pull_request_allowances`` failing with "nil is not an object" (#2535) (c5542a6a)
117+
* Fix ``required_conversation_resolution`` assertion (#2715) (54f22267)
118118
* Fix assertion creating pull request review comment (#2641) (2fa568b6)
119-
* Safely coerce `responseHeaders` to `int` (#2697) (adbfce92)
120-
* Fix assertion for `subject_type` in creating pull request review comment (#2642) (4933459e)
121-
* Use timezone-aware reset datetime in `GithubRetry.py` (#2610) (950a6949)
122-
* Fix `Branch.bypass_pull_request_allowances` failing with "nil is not an object" (#2535) (c5542a6a)
119+
* Safely coerce ``responseHeaders`` to ``int`` (#2697) (adbfce92)
120+
* Fix assertion for ``subject_type`` in creating pull request review comment (#2642) (4933459e)
121+
* Use timezone-aware reset datetime in ``GithubRetry.py`` (#2610) (950a6949)
122+
* Fix ``Branch.bypass_pull_request_allowances`` failing with "nil is not an object" (#2535) (c5542a6a)
123123

124124
Maintenance
125125
^^^^^^^^^^^
126126

127-
* Epic mass-merge `.pyi` type stubs back to `.py` sources (#2636)
127+
* Epic mass-merge ``.pyi`` type stubs back to ``.py`` sources (#2636)
128128
* Move to main default branch (#2566) (e66c163a)
129129
* Force Unix EOL (#2573) (094538e1)
130130
* Close replay test data file silently when test is failing already (#2747) (6d871d56)
131131
* CI: Make CI support merge queue (#2644) (a91debf1)
132132
* CI: Run CI on release branches (#2708) (9a88b6b1)
133133
* CI: remove conflict label workflow (#2669) (95d8b83c)
134134
* Fix pip install command in README.md (#2731) (2cc1ba2c)
135-
* Update `add_attribute.py` to latest conding style (#2631) (e735972e)
135+
* Update ``add_attribute.py`` to latest conding style (#2631) (e735972e)
136136
* CI: Improve ruff DX (#2667) (48d2009c)
137137
* CI: Increase wait and retries of labels action (#2670) (ff0f31c2)
138-
* Replace `flake8` with `ruff` (#2617) (42c3b47c)
138+
* Replace ``flake8`` with ``ruff`` (#2617) (42c3b47c)
139139
* CI: update labels action name and version (#2654) (c5c83eb5)
140140
* CI: label PRs that have conflicts (#2622) (1d637e4b)
141141
* Unify requirements files location & source in setup.py (#2598) (2edc0f8f)
142-
* Enable mypy `disallow_untyped_defs` (#2609) (294c0cc9)
143-
* Enable mypy `check_untyped_defs` (#2607) (8816889a)
142+
* Enable mypy ``disallow_untyped_defs`` (#2609) (294c0cc9)
143+
* Enable mypy ``check_untyped_defs`` (#2607) (8816889a)
144144
* Set line length to 120 characters (#2599) (13e178a3)
145145
* CI: Build and check package before release (#2593) (3c880e76)
146-
* Use `typing_extensions` for `TypedDict` (#2592) (5fcb0c7d)
146+
* Use ``typing_extensions`` for ``TypedDict`` (#2592) (5fcb0c7d)
147147
* CI: Update action actions/setup-python (#2382) (2e5cd31e)
148148
* Add more methods and attributes to Repository.pyi (#2581) (72840de4)
149149
* CI: Make pytest color logs (#2597) (73241102)
150-
* precommit: move `flake8` as last (#2595) (11bb6bd7)
150+
* precommit: move ``flake8`` as last (#2595) (11bb6bd7)
151151
* Test on Windows and macOS, don't fail fast (#2590) (5c600894)
152152
* Remove symlinks from test data (#2588) (8d3b9057)
153153

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ def _load_requirements(path_dir: str = _PATH_ROOT, file_name: str = "requirement
9797
# to see all the available attributes and methods
9898
print(dir(repo))
9999
100+
To close connections after use::
101+
102+
g.close()
103+
100104
Reference documentation
101105
=======================
102106

0 commit comments

Comments
 (0)