Skip to content

Commit 7a3fd83

Browse files
Add PR Template (python-telegram-bot#2299)
* Add PR template * Apply suggestions from code review Co-authored-by: Poolitzer <[email protected]> * Some more * reformulate * Apply suggestions from code review Co-authored-by: Poolitzer <[email protected]> Co-authored-by: Poolitzer <[email protected]>
1 parent 9ada2a7 commit 7a3fd83

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

.github/CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Here's how to make a one-off code change.
9191
9292
Once the process terminates, you can view the built documentation by opening ``docs/build/html/index.html`` with a browser.
9393

94-
- Add ``.. versionadded:: version``, ``.. versionchanged:: version`` or ``.. deprecated:: version`` to the associated documentation of your changes, depending on what kind of change you made. This only applies if the change you made is visible to an end user.
94+
- Add ``.. versionadded:: version``, ``.. versionchanged:: version`` or ``.. deprecated:: version`` to the associated documentation of your changes, depending on what kind of change you made. This only applies if the change you made is visible to an end user. The directives should be added to class/method descriptions if their general behaviour changed and to the description of all arguments & attributes that changed.
9595

9696
- For consistency, please conform to `Google Python Style Guide`_ and `Google Python Style Docstrings`_.
9797

.github/pull_request_template.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!--
2+
Hey! You're PRing? Cool! Please have a look at the below checklist. It's here to help both you and the maintainers to remember some aspects. Make sure to check out our contribution guide (https://github.com/python-telegram-bot/python-telegram-bot/blob/master/.github/CONTRIBUTING.rst).
3+
-->
4+
5+
### Checklist for PRs
6+
7+
- [ ] Added `.. versionadded:: version`, `.. versionchanged:: version` or `.. deprecated:: version` to the docstrings for user facing changes (for methods/class descriptions, arguments and attributes)
8+
- [ ] Created new or adapted existing unit tests
9+
- [ ] Added myself alphabetically to `AUTHORS.rst` (optional)
10+
11+
12+
### If the PR contains API changes (otherwise, you can delete this passage)
13+
14+
* New classes:
15+
- [ ] Added `self._id_attrs` and corresponding documentation
16+
- [ ] `__init__` accepts `**_kwargs`
17+
18+
* Added new shortcuts:
19+
- [ ] In `Chat` & `User` for all methods that accept `chat/user_id`
20+
- [ ] In `Message` for all methods that accept `chat_id` and `message_id`
21+
- [ ] For new `Message` shortcuts: Added `quote` argument if methods accepts `reply_to_message_id`
22+
- [ ] In `CallbackQuery` for all methods that accept either `chat_id` and `message_id` or `inline_message_id`
23+
24+
* If relevant:
25+
26+
- [ ] Added new constants at `telegram.constants` and shortcuts to them as class variables
27+
- [ ] Added new handlers for new update types
28+
- [ ] Added new filters for new message (sub)types
29+
- [ ] Added or updated documentation for the changed class(es) and/or method(s)

0 commit comments

Comments
 (0)