Skip to content

Commit b8653d9

Browse files
authored
Merge branch 'main' into ci-openapi-fix-workflow
2 parents dcea4c4 + 22263b7 commit b8653d9

9 files changed

Lines changed: 75 additions & 8 deletions

File tree

.github/workflows/_build-pkg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Check 📦 package
2727
run: twine check dist/*
2828

29-
- uses: actions/upload-artifact@v4
29+
- uses: actions/upload-artifact@v5
3030
with:
3131
name: ${{ inputs.artifact-name }}
3232
path: dist

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: tox
4545
- name: Upload Test Results
4646
if: always()
47-
uses: actions/upload-artifact@v4
47+
uses: actions/upload-artifact@v5
4848
with:
4949
name: Test Results (Python ${{ matrix.python-version }} on ${{ matrix.os-label }})
5050
path: pytest.xml
@@ -291,7 +291,7 @@ jobs:
291291
runs-on: ubuntu-latest
292292
steps:
293293
- name: Upload
294-
uses: actions/upload-artifact@v4
294+
uses: actions/upload-artifact@v5
295295
with:
296296
name: Event File
297297
path: ${{ github.event_path }}

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767

6868
# Initializes the CodeQL tools for scanning.
6969
- name: Initialize CodeQL
70-
uses: github/codeql-action/init@v3
70+
uses: github/codeql-action/init@v4
7171
with:
7272
languages: ${{ matrix.language }}
7373
build-mode: ${{ matrix.build-mode }}
@@ -95,6 +95,6 @@ jobs:
9595
exit 1
9696
9797
- name: Perform CodeQL Analysis
98-
uses: github/codeql-action/analyze@v3
98+
uses: github/codeql-action/analyze@v4
9999
with:
100100
category: "/language:${{matrix.language}}"

.github/workflows/openapi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
cat openapi-update-classes.log
7676
- name: Upload logs
7777
if: always()
78-
uses: actions/upload-artifact@v4
78+
uses: actions/upload-artifact@v5
7979
with:
8080
name: Sync logs
8181
path: |
@@ -127,7 +127,7 @@ jobs:
127127
cat openapi-update-classes.log
128128
- name: Upload logs
129129
if: always()
130-
uses: actions/upload-artifact@v4
130+
uses: actions/upload-artifact@v5
131131
with:
132132
name: Create new classes logs
133133
path: |

.github/workflows/pypi-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
needs: [build]
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/download-artifact@v5
17+
- uses: actions/download-artifact@v6
1818
with:
1919
name: package
2020
path: dist

github/Repository.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3172,6 +3172,7 @@ def get_issues(
31723172
direction: Opt[str] = NotSet,
31733173
since: Opt[datetime] = NotSet,
31743174
creator: Opt[NamedUser] = NotSet,
3175+
type: Opt[str] = NotSet,
31753176
) -> PaginatedList[Issue]:
31763177
"""
31773178
:calls: `GET /repos/{owner}/{repo}/issues <https://docs.github.com/en/rest/reference/issues>`_
@@ -3184,11 +3185,13 @@ def get_issues(
31843185
:param direction: string
31853186
:param since: datetime
31863187
:param creator: string or :class:`github.NamedUser.NamedUser`
3188+
:param type: string
31873189
:rtype: :class:`PaginatedList` of :class:`github.Issue.Issue`
31883190
"""
31893191
assert milestone in ["*", "none", NotSet] or isinstance(milestone, github.Milestone.Milestone), milestone
31903192
assert is_optional(state, str), state
31913193
assert is_optional(assignee, (str, github.NamedUser.NamedUser)), assignee
3194+
assert is_optional(type, str), type
31923195
assert is_optional(mentioned, github.NamedUser.NamedUser), mentioned
31933196
assert is_optional_list(labels, (github.Label.Label, str)), labels
31943197
assert is_optional(sort, str), sort
@@ -3208,6 +3211,8 @@ def get_issues(
32083211
url_parameters["assignee"] = assignee._identity
32093212
else:
32103213
url_parameters["assignee"] = assignee
3214+
if is_defined(type):
3215+
url_parameters["type"] = type
32113216
if is_defined(mentioned):
32123217
url_parameters["mentioned"] = mentioned._identity
32133218
if is_defined(labels):

tests/ReplayData/Repository.testGetIssuesWithTypeArgument.txt

Lines changed: 21 additions & 0 deletions
Large diffs are not rendered by default.

tests/ReplayData/Repository.testGetIssuesWithTypeWildcard.txt

Lines changed: 21 additions & 0 deletions
Large diffs are not rendered by default.

tests/Repository.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,6 +1285,26 @@ def testGetIssuesWithWildcards(self):
12851285
)
12861286
self.assertListKeyEqual(self.repo.get_issues(assignee="none"), lambda i: i.id, [3619973])
12871287

1288+
def testGetIssuesWithTypeArgument(self):
1289+
self.assertListKeyEqual(
1290+
self.repo.get_issues(type="bug"),
1291+
lambda i: i.id,
1292+
[3425963739, 3399666591, 3398817538],
1293+
)
1294+
self.assertListKeyEqual(self.repo.get_issues(type="feature", state="closed"), lambda i: i.id, [3326107606])
1295+
1296+
def testGetIssuesWithTypeWildcard(self):
1297+
self.assertListKeyEqual(
1298+
self.repo.get_issues(type="*"),
1299+
lambda i: i.id,
1300+
[3425963739, 3399666591, 3398817538],
1301+
)
1302+
self.assertListKeyEqual(
1303+
self.repo.get_issues(type="*", state="closed"),
1304+
lambda i: i.id,
1305+
[3375750938, 3326109475, 3326109065, 3326107606, 4653757],
1306+
)
1307+
12881308
def testGetKeys(self):
12891309
self.assertListKeyEqual(self.repo.get_keys(), lambda k: k.title, ["Key added through PyGithub"])
12901310

0 commit comments

Comments
 (0)