Commit 22263b7
Add support for
## 1. Describe the problem the Pull Request attempts to solve
This pull request adds support for the [`type` query
parameter](https://docs.github.com/en/rest/issues/issues?apiVersion=2022-11-28#list-repository-issues).
a feature recently added to the GitHub Issues. Currenty PyGithub's
`get_issues` method does not have a way to filter issues by their type.
## 2. Explain how the you went about solving the problem
I have updated the `get_issues` method in `github/Repository.py` to
accept a new optional `type` parameter. When this parameter is provided,
it is included in the URL parameter for API request.
## 3. Provide a test that exemplifies the expected behaviour
I have added two test methods, `testGetIssuesWithTypeArgument` and
`testGetIssuesWithTypeWildcard`.
---
*As my native language is not English, I apologize for any errors in my
writing.*
---------
Co-authored-by: Enrico Minack <github@enrico.minack.dev>type parameter to get_issues (#3381)1 parent 47478b0 commit 22263b7
4 files changed
Lines changed: 67 additions & 0 deletions
File tree
- github
- tests
- ReplayData
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3172 | 3172 | | |
3173 | 3173 | | |
3174 | 3174 | | |
| 3175 | + | |
3175 | 3176 | | |
3176 | 3177 | | |
3177 | 3178 | | |
| |||
3184 | 3185 | | |
3185 | 3186 | | |
3186 | 3187 | | |
| 3188 | + | |
3187 | 3189 | | |
3188 | 3190 | | |
3189 | 3191 | | |
3190 | 3192 | | |
3191 | 3193 | | |
| 3194 | + | |
3192 | 3195 | | |
3193 | 3196 | | |
3194 | 3197 | | |
| |||
3208 | 3211 | | |
3209 | 3212 | | |
3210 | 3213 | | |
| 3214 | + | |
| 3215 | + | |
3211 | 3216 | | |
3212 | 3217 | | |
3213 | 3218 | | |
| |||
0 commit comments