Repository: Kinto/kinto-attachment (language: python)

Issue:
Update main branch from master to main
`main` is now the default usual main branch. Can we take this opportunity to rename the main branch from `master` to `main` in kinto related projects?


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index dbb3e74..94e205c 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -1,7 +1,7 @@
 on:
   push:
     branches:
-      - master
+      - main
   pull_request:
 
 name: Code Lint
diff --git a/README.rst b/README.rst
index 1d581e2..5e899a4 100644
--- a/README.rst
+++ b/README.rst
@@ -8,7 +8,7 @@ Kinto Attachment
 .. image:: https://img.shields.io/pypi/v/kinto-attachment.svg
         :target: https://pypi.python.org/pypi/kinto-attachment
 
-.. image:: https://coveralls.io/repos/Kinto/kinto-attachment/badge.svg?branch=master
+.. image:: https://coveralls.io/repos/Kinto/kinto-attachment/badge.svg?branch=main
         :target: https://coveralls.io/r/Kinto/kinto-attachment
 
 Attach files to `Kinto records <http://kinto.readthedocs.io>`_.
diff --git a/tox.ini b/tox.ini
index 209b6d6..8394590 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
 [tox]
-envlist = py38,kinto-master,upload-download-scripts,flake8
+envlist = py38,kinto-main,upload-download-scripts,flake8
 skip_missing_interpreters = True
 
 [testenv]
@@ -9,7 +9,7 @@ commands =
 deps = -rdev-requirements.txt
 install_command = pip install {opts} {packages}
 
-[testenv:kinto-master]
+[testenv:kinto-main]
 commands =
     python --version
     py.test kinto_attachment/tests --cov-report term-missing --cov-fail-under 100 --cov kinto_attachment {posargs}


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 5841a21..d0422e8 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,7 +1,7 @@
 on:
   push:
     branches:
-      - master
+      - main
   pull_request:
 
 name: Unit Testing
@@ -25,13 +25,13 @@ jobs:
 
     strategy:
       matrix:
-        toxenv: [py38, kinto-master, upload-download-scripts]
+        toxenv: [py38, kinto-main, upload-download-scripts]
         include:
           - toxenv: py38
             python-version: "3.8"
           - toxenv: upload-download-scripts
             python-version: "3.8"
-          - toxenv: kinto-master
+          - toxenv: kinto-main
             python-version: "3.8"
 
     steps: