From 8fc9a223e272d8ee9b30140fb4ea4547430d7ff3 Mon Sep 17 00:00:00 2001 From: Jeffrey 'Alex' Clark Date: Wed, 22 Jul 2026 13:17:29 -0400 Subject: [PATCH 1/2] PYTHON-5952 Update contributor docs and CI triggers to use main branch --- .github/workflows/codeql.yml | 2 +- .github/workflows/sbom.yml | 2 +- .github/workflows/test-python.yml | 2 +- .github/workflows/zizmor.yml | 2 +- CONTRIBUTING.md | 2 +- README.md | 4 ++-- doc/index.rst | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 4d667ec893..45bca03c14 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,7 +2,7 @@ name: "CodeQL" on: push: - branches: [ "master", "v*"] + branches: [ "main", "v*"] tags: ['*'] pull_request: workflow_call: diff --git a/.github/workflows/sbom.yml b/.github/workflows/sbom.yml index 0b9160569f..5f3ea8e197 100644 --- a/.github/workflows/sbom.yml +++ b/.github/workflows/sbom.yml @@ -8,7 +8,7 @@ name: Generate SBOM on: workflow_dispatch: {} push: - branches: ['master'] + branches: ['main'] paths: - 'requirements.txt' - 'requirements/**.txt' diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index b224cce15d..b05ebb80d5 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -2,7 +2,7 @@ name: Python Tests on: push: - branches: ["master", "v**"] + branches: ["main", "v**"] pull_request: workflow_dispatch: diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml index 57b1d3a93f..0d4b5d49a9 100644 --- a/.github/workflows/zizmor.yml +++ b/.github/workflows/zizmor.yml @@ -2,7 +2,7 @@ name: GitHub Actions Security Analysis with zizmor 🌈 on: push: - branches: ["master"] + branches: ["main"] pull_request: branches: ["**"] diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6ee3a06e5a..4db374df66 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -171,7 +171,7 @@ just run lint-manual To contribute to the [API documentation](https://pymongo.readthedocs.io/en/stable/) just make your changes to the inline documentation of the appropriate [source code](https://github.com/mongodb/mongo-python-driver) or -[rst file](https://github.com/mongodb/mongo-python-driver/tree/master/doc) in +[rst file](https://github.com/mongodb/mongo-python-driver/tree/main/doc) in a branch and submit a [pull request](https://help.github.com/articles/using-pull-requests). You might also use the GitHub [Edit](https://github.com/blog/844-forking-with-the-edit-button) button. diff --git a/README.md b/README.md index 703e000dc5..6e029dc164 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ [![Python Versions](https://img.shields.io/pypi/pyversions/pymongo)](https://pypi.org/project/pymongo) [![Monthly Downloads](https://static.pepy.tech/badge/pymongo/month)](https://pepy.tech/project/pymongo) [![API Documentation Status](https://readthedocs.org/projects/pymongo/badge/?version=stable)](http://pymongo.readthedocs.io/en/stable/api?badge=stable) -[![codecov](https://codecov.io/gh/mongodb/mongo-python-driver/graph/badge.svg?branch=master)](https://codecov.io/gh/mongodb/mongo-python-driver) +[![codecov](https://codecov.io/gh/mongodb/mongo-python-driver/graph/badge.svg?branch=main)](https://codecov.io/gh/mongodb/mongo-python-driver) ## About @@ -216,4 +216,4 @@ pip install -e ".[test]" pytest ``` -For more advanced testing scenarios, see the [contributing guide](https://github.com/mongodb/mongo-python-driver/blob/master/CONTRIBUTING.md#running-tests-locally). +For more advanced testing scenarios, see the [contributing guide](https://github.com/mongodb/mongo-python-driver/blob/main/CONTRIBUTING.md#running-tests-locally). diff --git a/doc/index.rst b/doc/index.rst index 17b12e51a8..c21ce4118e 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -53,7 +53,7 @@ About This Documentation This documentation is generated using the `Sphinx `_ documentation generator. The source files for the documentation are located in the *doc/* directory of the -**PyMongo** distribution. See the PyMongo `contributing guide `_ +**PyMongo** distribution. See the PyMongo `contributing guide `_ for instructions on the building the docs from source. Indices and tables From 0e276bc61a3ea18be54ee2a05bb3060d4d7c6693 Mon Sep 17 00:00:00 2001 From: Jeffrey 'Alex' Clark Date: Wed, 22 Jul 2026 13:41:56 -0400 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- doc/index.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/index.rst b/doc/index.rst index c21ce4118e..385cd6ec16 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -53,8 +53,8 @@ About This Documentation This documentation is generated using the `Sphinx `_ documentation generator. The source files for the documentation are located in the *doc/* directory of the -**PyMongo** distribution. See the PyMongo `contributing guide `_ -for instructions on the building the docs from source. +**PyMongo** distribution. See the PyMongo `contributing guide `_ +for instructions on building the docs from source. Indices and tables ------------------