Skip to content

Commit

Permalink
Rename master branch to main (pytest-dev#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Oct 27, 2022
1 parent c2b4f58 commit 7da6a82
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
push: # only publishes pushes to the main branch to TestPyPI
branches: # any maintenance branch but not tag
# avoid generic ** as it duplicates builds from temporary branches
- "master"
- "main"
- "stable/**"
tags-ignore:
- >-
Expand All @@ -18,7 +18,7 @@ jobs:
name: Build Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v3
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
- main
- 'releases/**'
- 'stable/**'

jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
# Drafts your next Release notes as Pull Requests are merged into "main"
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pytest-html
pytest-html is a plugin for `pytest <http://pytest.org>`_ that generates a HTML report for test results.

.. image:: https://img.shields.io/badge/license-MPL%202.0-blue.svg
:target: https://github.com/pytest-dev/pytest-html/blob/master/LICENSE
:target: https://github.com/pytest-dev/pytest-html/blob/main/LICENSE
:alt: License
.. image:: https://img.shields.io/pypi/v/pytest-html.svg
:target: https://pypi.python.org/pypi/pytest-html/
Expand All @@ -16,9 +16,9 @@ pytest-html is a plugin for `pytest <http://pytest.org>`_ that generates a HTML
:target: https://github.com/pytest-dev/pytest-html/actions
:alt: CI
.. image:: https://img.shields.io/requires/github/pytest-dev/pytest-html.svg
:target: https://requires.io/github/pytest-dev/pytest-html/requirements/?branch=master
:target: https://requires.io/github/pytest-dev/pytest-html/requirements/?branch=main
:alt: Requirements
.. image:: https://codecov.io/gh/pytest-dev/pytest-html/branch/master/graph/badge.svg?token=Y0myNKkdbi
.. image:: https://codecov.io/gh/pytest-dev/pytest-html/branch/main/graph/badge.svg?token=Y0myNKkdbi
:target: https://codecov.io/gh/pytest-dev/pytest-html
:alt: Codecov

Expand Down
4 changes: 2 additions & 2 deletions docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ Releasing a new version

Follow these steps to release a new version of the project:

#. Update your local master with the upstream master (``git pull --rebase upstream master``)
#. Update your local main with the upstream main (``git pull --rebase upstream main``)
#. Create a new branch
#. Update `the changelog`_ with the new version, today's date, and all changes/new features
#. Commit and push the new branch and then create a new pull request
#. Wait for tests and reviews and then merge the branch
#. Once merged, update your local master again (``git pull --rebase upstream master``)
#. Once merged, update your local main again (``git pull --rebase upstream main``)
#. Tag the release with the new release version (``git tag v<new tag>``)
#. Push the tag (``git push upstream --tags``)
#. Done. Check `Github Actions`_ for release progress.
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. pytest-html documentation master file, created by
.. pytest-html documentation main file, created by
sphinx-quickstart on Sun Dec 6 20:48:43 2020.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ whitelist_externals =
max-line-length = 88
exclude = .eggs,.tox
# rationale here:
# https://github.com/psf/black/blob/master/docs/the_black_code_style.md#slices
# https://black.readthedocs.io/en/stable/the_black_code_style/index.html
extend-ignore = E203

[pytest]
Expand Down

0 comments on commit 7da6a82

Please sign in to comment.