From f69da648f0ce4894b265d709761a93b9c4b94b01 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 5 Jun 2024 04:53:37 +0000 Subject: [PATCH 01/21] Bump pytest from 8.2.1 to 8.2.2 Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.2.1 to 8.2.2. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/8.2.1...8.2.2) --- updated-dependencies: - dependency-name: pytest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index d423dceb..9d94350b 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -78,7 +78,7 @@ pylint==3.2.2 pyproject-hooks==1.1.0 ; python_version >= '3.7' -pytest==8.2.1 +pytest==8.2.2 pytest-cov==4.1.0 From 6543855a4c2f529c74e0852eb66c5f2989798bff Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 5 Jun 2024 04:53:46 +0000 Subject: [PATCH 02/21] Bump cryptography from 42.0.7 to 42.0.8 Bumps [cryptography](https://github.com/pyca/cryptography) from 42.0.7 to 42.0.8. - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pyca/cryptography/compare/42.0.7...42.0.8) --- updated-dependencies: - dependency-name: cryptography dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index d423dceb..18e1f16d 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -26,7 +26,7 @@ colorama==0.4.6 ; os_name == 'nt' coverage[toml]==7.5.3 ; python_version >= '3.7' -cryptography==42.0.7 ; python_version >= '3.7' +cryptography==42.0.8 ; python_version >= '3.7' dill==0.3.6 ; python_version < '3.11' From 0170508da246b77da17cec591dc851fb573aba5b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 5 Jun 2024 04:53:59 +0000 Subject: [PATCH 03/21] Bump zipp from 3.19.1 to 3.19.2 Bumps [zipp](https://github.com/jaraco/zipp) from 3.19.1 to 3.19.2. - [Release notes](https://github.com/jaraco/zipp/releases) - [Changelog](https://github.com/jaraco/zipp/blob/main/NEWS.rst) - [Commits](https://github.com/jaraco/zipp/compare/v3.19.1...v3.19.2) --- updated-dependencies: - dependency-name: zipp dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index d423dceb..7a741f2b 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -119,7 +119,7 @@ wrapt==1.15.0 ; python_version < '3.11' yapf==0.40.2 -zipp==3.19.1 ; python_version >= '3.7' +zipp==3.19.2 ; python_version >= '3.7' aiohttp==3.9.5 ; python_version >= '3.6' From 27b94e6dd523cb06bcbc79e0b792aa3b1e8e19de Mon Sep 17 00:00:00 2001 From: Faith Kangai Date: Thu, 6 Jun 2024 11:32:41 +0300 Subject: [PATCH 04/21] Add condition to auto add to project only for non-forks PRs (#591) --- .github/workflows/project-auto-add.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/project-auto-add.yml b/.github/workflows/project-auto-add.yml index 7d2a2603..dd5f93a9 100644 --- a/.github/workflows/project-auto-add.yml +++ b/.github/workflows/project-auto-add.yml @@ -9,11 +9,11 @@ on: types: - opened branches: - - 'main' + - "main" jobs: track_issue: - if: github.actor != 'dependabot[bot]' + if: github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.fork == false runs-on: ubuntu-latest steps: - name: Generate token From 3e50fd70d688270f68414240ae9329c3a018d4d7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 7 Jun 2024 04:47:36 +0000 Subject: [PATCH 05/21] Bump pylint from 3.2.2 to 3.2.3 Bumps [pylint](https://github.com/pylint-dev/pylint) from 3.2.2 to 3.2.3. - [Release notes](https://github.com/pylint-dev/pylint/releases) - [Commits](https://github.com/pylint-dev/pylint/compare/v3.2.2...v3.2.3) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 5a0ae9b8..85cf3856 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -74,7 +74,7 @@ pycparser==2.22 pyjwt[crypto]==2.8.0 ; python_version >= '3.7' -pylint==3.2.2 +pylint==3.2.3 pyproject-hooks==1.1.0 ; python_version >= '3.7' From a48c82187c77faa9ff8a8dc012b0606c6a995e6c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 7 Jun 2024 04:47:58 +0000 Subject: [PATCH 06/21] Bump azure-core from 1.30.1 to 1.30.2 Bumps [azure-core](https://github.com/Azure/azure-sdk-for-python) from 1.30.1 to 1.30.2. - [Release notes](https://github.com/Azure/azure-sdk-for-python/releases) - [Changelog](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/esrp_release.md) - [Commits](https://github.com/Azure/azure-sdk-for-python/compare/azure-core_1.30.1...azure-core_1.30.2) --- updated-dependencies: - dependency-name: azure-core dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 5a0ae9b8..562c3305 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -6,7 +6,7 @@ asyncmock==0.4.2 attrs==23.2.0 ; python_version >= '3.7' -azure-core==1.30.1 ; python_version >= '3.7' +azure-core==1.30.2 ; python_version >= '3.7' azure-identity==1.16.0 From e372196dd4eed8f07be6dc4021ba46c4753f9e61 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 04:52:51 +0000 Subject: [PATCH 07/21] Bump packaging from 24.0 to 24.1 Bumps [packaging](https://github.com/pypa/packaging) from 24.0 to 24.1. - [Release notes](https://github.com/pypa/packaging/releases) - [Changelog](https://github.com/pypa/packaging/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/packaging/compare/24.0...24.1) --- updated-dependencies: - dependency-name: packaging dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index b7c75f83..6d752bb4 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -60,7 +60,7 @@ mypy-extensions==1.0.0 ; python_version >= '3.5' outcome==1.3.0.post0 ; python_version >= '3.7' -packaging==24.0 ; python_version >= '3.7' +packaging==24.1 ; python_version >= '3.7' pathlib2==2.3.7.post1 From 433800e0936d1ae35ef4dde1f7aab31a8269a84b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Jun 2024 04:53:03 +0000 Subject: [PATCH 08/21] Bump typing-extensions from 4.12.1 to 4.12.2 Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.12.1 to 4.12.2. - [Release notes](https://github.com/python/typing_extensions/releases) - [Changelog](https://github.com/python/typing_extensions/blob/main/CHANGELOG.md) - [Commits](https://github.com/python/typing_extensions/compare/4.12.1...4.12.2) --- updated-dependencies: - dependency-name: typing-extensions dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index b7c75f83..ddc9b5ad 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -112,7 +112,7 @@ types-python-dateutil==2.9.0.20240316 types-requests==2.32.0.20240602; python_version >= '3.7' urllib3==2.2.1 ; python_version >= '3.7' -typing-extensions==4.12.1 ; python_version >= '3.7' +typing-extensions==4.12.2 ; python_version >= '3.7' wrapt==1.15.0 ; python_version < '3.11' From 48a980a8f8e5fe0b6dc53d22af8bd97b09e5b38e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 11 Jun 2024 05:00:00 +0000 Subject: [PATCH 09/21] Bump azure-identity from 1.16.0 to 1.16.1 Bumps [azure-identity](https://github.com/Azure/azure-sdk-for-python) from 1.16.0 to 1.16.1. - [Release notes](https://github.com/Azure/azure-sdk-for-python/releases) - [Changelog](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/esrp_release.md) - [Commits](https://github.com/Azure/azure-sdk-for-python/compare/azure-identity_1.16.0...azure-identity_1.16.1) --- updated-dependencies: - dependency-name: azure-identity dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index c2d8ffeb..f0fe55a9 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -8,7 +8,7 @@ attrs==23.2.0 ; python_version >= '3.7' azure-core==1.30.2 ; python_version >= '3.7' -azure-identity==1.16.0 +azure-identity==1.16.1 build==1.2.1 From 19662879ad6415359c6946cf7991982a45ca2136 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 12 Jun 2024 04:53:38 +0000 Subject: [PATCH 10/21] Bump msal from 1.28.0 to 1.28.1 Bumps [msal](https://github.com/AzureAD/microsoft-authentication-library-for-python) from 1.28.0 to 1.28.1. - [Release notes](https://github.com/AzureAD/microsoft-authentication-library-for-python/releases) - [Commits](https://github.com/AzureAD/microsoft-authentication-library-for-python/compare/1.28.0...1.28.1) --- updated-dependencies: - dependency-name: msal dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index f0fe55a9..111be25e 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -50,7 +50,7 @@ mccabe==0.7.0 ; python_version >= '3.6' mock==5.1.0 ; python_version >= '3.6' -msal==1.28.0 +msal==1.28.1 msal-extensions==1.1.0 From fa80bfeb5e10e4f4ad8a884582ec368c73cc9e08 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 04:44:22 +0000 Subject: [PATCH 11/21] Bump pypa/gh-action-pypi-publish from 1.8.14 to 1.9.0 Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.8.14 to 1.9.0. - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/81e9d935c883d0b210363ab89cf05f3894778450...ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0) --- updated-dependencies: - dependency-name: pypa/gh-action-pypi-publish dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 07d501ce..1796451b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -32,7 +32,7 @@ jobs: - name: Build package run: python -m build - name: Publish package - uses: pypa/gh-action-pypi-publish@81e9d935c883d0b210363ab89cf05f3894778450 + uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} From 6a9897892585930ae28625327e01444aad032551 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 22:52:54 +0000 Subject: [PATCH 12/21] Bump urllib3 from 2.2.1 to 2.2.2 Bumps [urllib3](https://github.com/urllib3/urllib3) from 2.2.1 to 2.2.2. - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst) - [Commits](https://github.com/urllib3/urllib3/compare/2.2.1...2.2.2) --- updated-dependencies: - dependency-name: urllib3 dependency-type: direct:development ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 111be25e..7236f6a9 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -111,7 +111,7 @@ trio==0.25.1 types-python-dateutil==2.9.0.20240316 types-requests==2.32.0.20240602; python_version >= '3.7' -urllib3==2.2.1 ; python_version >= '3.7' +urllib3==2.2.2 ; python_version >= '3.7' typing-extensions==4.12.2 ; python_version >= '3.7' From a499a357657ed69e85526c6885dd58207f214fd3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 04:35:31 +0000 Subject: [PATCH 13/21] Bump azure-identity from 1.16.1 to 1.17.0 Bumps [azure-identity](https://github.com/Azure/azure-sdk-for-python) from 1.16.1 to 1.17.0. - [Release notes](https://github.com/Azure/azure-sdk-for-python/releases) - [Changelog](https://github.com/Azure/azure-sdk-for-python/blob/main/doc/esrp_release.md) - [Commits](https://github.com/Azure/azure-sdk-for-python/compare/azure-identity_1.16.1...azure-identity_1.17.0) --- updated-dependencies: - dependency-name: azure-identity dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 7236f6a9..5c661453 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -8,7 +8,7 @@ attrs==23.2.0 ; python_version >= '3.7' azure-core==1.30.2 ; python_version >= '3.7' -azure-identity==1.16.1 +azure-identity==1.17.0 build==1.2.1 From 7bcd73a3bba92b027f5a813523613b665708119d Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 19 Jun 2024 07:32:58 -0400 Subject: [PATCH 14/21] chore!: replaces project bot token task by official one --- .github/workflows/project-auto-add.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/project-auto-add.yml b/.github/workflows/project-auto-add.yml index dd5f93a9..b04122e6 100644 --- a/.github/workflows/project-auto-add.yml +++ b/.github/workflows/project-auto-add.yml @@ -18,10 +18,10 @@ jobs: steps: - name: Generate token id: generate_token - uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a + uses: actions/create-github-app-token@v1 with: - app_id: ${{ secrets.GRAPHBOT_APP_ID }} - private_key: ${{ secrets.GRAPHBOT_APP_PEM }} + app-id: ${{ secrets.GRAPHBOT_APP_ID }} + private-key: ${{ secrets.GRAPHBOT_APP_PEM }} - name: Get project data env: From 8ac09f7fc90544dce66260212fe31e7ce1fd092d Mon Sep 17 00:00:00 2001 From: Raphael Jacob Date: Wed, 19 Jun 2024 14:01:58 +0200 Subject: [PATCH 15/21] Remove unnecessary printout (#577) fix: Remove unnecessary printout fix: fixes potentially unassigned variable in page iterator --- src/msgraph_core/tasks/page_iterator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/msgraph_core/tasks/page_iterator.py b/src/msgraph_core/tasks/page_iterator.py index 0b2571e8..c9b729db 100644 --- a/src/msgraph_core/tasks/page_iterator.py +++ b/src/msgraph_core/tasks/page_iterator.py @@ -67,6 +67,10 @@ def __init__( parsable_factory = type(response) elif constructor_callable is None: parsable_factory = PageResult + else: + raise ValueError( + 'One of the constructor_callable or the PageResult type parameter is required.' + ) self.parsable_factory = parsable_factory self.pause_index = 0 self.headers: HeadersCollection = HeadersCollection() @@ -141,7 +145,6 @@ async def next(self) -> Optional[PageResult]: if self.current_page is not None and not self.current_page.odata_next_link: return None response = await self.fetch_next_page() - print(f"Response - {type(response)}") page: PageResult = PageResult(response.odata_next_link, response.value) # type: ignore return page From e228dba8d04debbc872cb63393205574f83e974c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 12:04:13 +0000 Subject: [PATCH 16/21] chore(deps): bump dependabot/fetch-metadata from 1.6.0 to 2.1.0 Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 1.6.0 to 2.1.0. - [Release notes](https://github.com/dependabot/fetch-metadata/releases) - [Commits](https://github.com/dependabot/fetch-metadata/compare/v1.6.0...v2.1.0) --- updated-dependencies: - dependency-name: dependabot/fetch-metadata dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/auto-merge-dependabot.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-merge-dependabot.yml b/.github/workflows/auto-merge-dependabot.yml index 3e225b2e..e1b2d6b3 100644 --- a/.github/workflows/auto-merge-dependabot.yml +++ b/.github/workflows/auto-merge-dependabot.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Dependabot metadata id: metadata - uses: dependabot/fetch-metadata@v1.6.0 + uses: dependabot/fetch-metadata@v2.1.0 with: github-token: "${{ secrets.GITHUB_TOKEN }}" From ec3f32650d45f658a3701c96cd181c79ef4cb2e5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 12:04:30 +0000 Subject: [PATCH 17/21] chore(deps-dev): bump pytest-cov from 4.1.0 to 5.0.0 Bumps [pytest-cov](https://github.com/pytest-dev/pytest-cov) from 4.1.0 to 5.0.0. - [Changelog](https://github.com/pytest-dev/pytest-cov/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest-cov/compare/v4.1.0...v5.0.0) --- updated-dependencies: - dependency-name: pytest-cov dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 5c661453..471b1249 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -80,7 +80,7 @@ pyproject-hooks==1.1.0 ; python_version >= '3.7' pytest==8.2.2 -pytest-cov==4.1.0 +pytest-cov==5.0.0 pytest-mock==3.14.0 From d324e4c2f071bcbcdaa552e65e7a6ea0d0992d19 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 12:04:47 +0000 Subject: [PATCH 18/21] --- updated-dependencies: - dependency-name: setuptools dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 5c661453..41d88c97 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -92,7 +92,7 @@ pywin32==306 ; platform_system == 'Windows' requests==2.32.3 ; python_version >= '3.7' -setuptools==69.5.1 +setuptools==70.0.0 six==1.16.0 ; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3' From 1d3114e3a92c883f45e5c92f3060984afc94ce93 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 19 Jun 2024 12:08:58 +0000 Subject: [PATCH 19/21] chore(deps-dev): bump importlib-metadata from 6.8.0 to 7.1.0 Bumps [importlib-metadata](https://github.com/python/importlib_metadata) from 6.8.0 to 7.1.0. - [Release notes](https://github.com/python/importlib_metadata/releases) - [Changelog](https://github.com/python/importlib_metadata/blob/main/NEWS.rst) - [Commits](https://github.com/python/importlib_metadata/compare/v6.8.0...v7.1.0) --- updated-dependencies: - dependency-name: importlib-metadata dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- requirements-dev.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 3034eefa..06ee8ffe 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -34,7 +34,7 @@ exceptiongroup==1.1.1 ; python_version < '3.11' idna==3.7 ; python_version >= '3.5' -importlib-metadata==6.8.0 ; python_version >= '3.7' +importlib-metadata==7.1.0 ; python_version >= '3.7' iniconfig==2.0.0 ; python_version >= '3.7' From 90ef20b7f50a6730dee90ad05faa4bd44f8371ed Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 19 Jun 2024 08:09:39 -0400 Subject: [PATCH 20/21] chore: fixes code owners definition file Signed-off-by: Vincent Biret --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index efc14b01..9381b803 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -@microsoftgraph/msgraph-devx-python-write +* @microsoftgraph/msgraph-devx-python-write From 1dd4b639a7456b9c736cbc0438ea770e42d1fcf1 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Wed, 19 Jun 2024 08:12:26 -0400 Subject: [PATCH 21/21] chore: fixes branch protection definition Signed-off-by: Vincent Biret --- ... msgraph-sdk-python-core-branch-protection.yml} | 4 ++-- .github/workflows/build.yml | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) rename .github/policies/{msgraph-sdk-python-core.yml => msgraph-sdk-python-core-branch-protection.yml} (97%) diff --git a/.github/policies/msgraph-sdk-python-core.yml b/.github/policies/msgraph-sdk-python-core-branch-protection.yml similarity index 97% rename from .github/policies/msgraph-sdk-python-core.yml rename to .github/policies/msgraph-sdk-python-core-branch-protection.yml index a42b9b64..35be14b3 100644 --- a/.github/policies/msgraph-sdk-python-core.yml +++ b/.github/policies/msgraph-sdk-python-core-branch-protection.yml @@ -1,8 +1,6 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. -# File initially created using https://github.com/MIchaelMainer/policyservicetoolkit/blob/main/branch_protection_export.ps1. - name: msgraph-sdk-python-core-branch-protection description: Branch protection policy for the msgraph-sdk-python-core repository resource: repository @@ -37,6 +35,7 @@ configuration: # existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status requiredStatusChecks: - CodeQL + - check-build-matrix # Require branches to be up to date before merging. Requires requiredStatusChecks. boolean requiresStrictStatusChecks: true # Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush. @@ -72,6 +71,7 @@ configuration: # existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status requiredStatusChecks: - CodeQL + - check-build-matrix # Require branches to be up to date before merging. Requires requiredStatusChecks. boolean requiresStrictStatusChecks: true # Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush. diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e8bdfd4b..31b659d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,3 +48,17 @@ jobs: AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }} + + # The check-build-matrix returns success if all matrix jobs in build are successful; otherwise, it returns a failure. + # Use this as a PR status check for GitHub Policy Service instead of individual matrix entry checks. + check-build-matrix: + runs-on: ubuntu-latest + needs: build + if: always() + steps: + - name: All build matrix options are successful + if: ${{ !(contains(needs.*.result, 'failure')) }} + run: exit 0 + - name: One or more build matrix options failed + if: ${{ contains(needs.*.result, 'failure') }} + run: exit 1