Skip to content

Commit bea68c4

Browse files
committed
Update all 'master' branch references to 'main'
1 parent 317ca82 commit bea68c4

File tree

12 files changed

+25
-25
lines changed

12 files changed

+25
-25
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88

99
jobs:

.github/workflows/mkdocs-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: mkdocs
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
paths:
88
- docs/**
99
- docs_theme/**

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: pre-commit
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88

99
jobs:

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -179,25 +179,25 @@ Please see the [security policy][security-policy].
179179

180180
[build-status-image]: https://github.com/encode/django-rest-framework/actions/workflows/main.yml/badge.svg
181181
[build-status]: https://github.com/encode/django-rest-framework/actions/workflows/main.yml
182-
[coverage-status-image]: https://img.shields.io/codecov/c/github/encode/django-rest-framework/master.svg
183-
[codecov]: https://codecov.io/github/encode/django-rest-framework?branch=master
182+
[coverage-status-image]: https://img.shields.io/codecov/c/github/encode/django-rest-framework/main.svg
183+
[codecov]: https://codecov.io/github/encode/django-rest-framework?branch=main
184184
[pypi-version]: https://img.shields.io/pypi/v/djangorestframework.svg
185185
[pypi]: https://pypi.org/project/djangorestframework/
186186
[group]: https://groups.google.com/forum/?fromgroups#!forum/django-rest-framework
187187

188188
[funding]: https://fund.django-rest-framework.org/topics/funding/
189189
[sponsors]: https://fund.django-rest-framework.org/topics/funding/#our-sponsors
190190

191-
[sentry-img]: https://raw.githubusercontent.com/encode/django-rest-framework/master/docs/img/premium/sentry-readme.png
192-
[stream-img]: https://raw.githubusercontent.com/encode/django-rest-framework/master/docs/img/premium/stream-readme.png
193-
[spacinov-img]: https://raw.githubusercontent.com/encode/django-rest-framework/master/docs/img/premium/spacinov-readme.png
194-
[retool-img]: https://raw.githubusercontent.com/encode/django-rest-framework/master/docs/img/premium/retool-readme.png
195-
[bitio-img]: https://raw.githubusercontent.com/encode/django-rest-framework/master/docs/img/premium/bitio-readme.png
196-
[posthog-img]: https://raw.githubusercontent.com/encode/django-rest-framework/master/docs/img/premium/posthog-readme.png
197-
[cryptapi-img]: https://raw.githubusercontent.com/encode/django-rest-framework/master/docs/img/premium/cryptapi-readme.png
198-
[fezto-img]: https://raw.githubusercontent.com/encode/django-rest-framework/master/docs/img/premium/fezto-readme.png
199-
[svix-img]: https://raw.githubusercontent.com/encode/django-rest-framework/master/docs/img/premium/svix-premium.png
200-
[zuplo-img]: https://raw.githubusercontent.com/encode/django-rest-framework/master/docs/img/premium/zuplo-readme.png
191+
[sentry-img]: https://raw.githubusercontent.com/encode/django-rest-framework/main/docs/img/premium/sentry-readme.png
192+
[stream-img]: https://raw.githubusercontent.com/encode/django-rest-framework/main/docs/img/premium/stream-readme.png
193+
[spacinov-img]: https://raw.githubusercontent.com/encode/django-rest-framework/main/docs/img/premium/spacinov-readme.png
194+
[retool-img]: https://raw.githubusercontent.com/encode/django-rest-framework/main/docs/img/premium/retool-readme.png
195+
[bitio-img]: https://raw.githubusercontent.com/encode/django-rest-framework/main/docs/img/premium/bitio-readme.png
196+
[posthog-img]: https://raw.githubusercontent.com/encode/django-rest-framework/main/docs/img/premium/posthog-readme.png
197+
[cryptapi-img]: https://raw.githubusercontent.com/encode/django-rest-framework/main/docs/img/premium/cryptapi-readme.png
198+
[fezto-img]: https://raw.githubusercontent.com/encode/django-rest-framework/main/docs/img/premium/fezto-readme.png
199+
[svix-img]: https://raw.githubusercontent.com/encode/django-rest-framework/main/docs/img/premium/svix-premium.png
200+
[zuplo-img]: https://raw.githubusercontent.com/encode/django-rest-framework/main/docs/img/premium/zuplo-readme.png
201201

202202
[sentry-url]: https://getsentry.com/welcome/
203203
[stream-url]: https://getstream.io/?utm_source=DjangoRESTFramework&utm_medium=Webpage_Logo_Ad&utm_content=Developer&utm_campaign=DjangoRESTFramework_Jan2022_HomePage

docs/api-guide/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,5 +417,5 @@ For example, to add support for using `format='html'` in test requests, you migh
417417
[requestfactory]: https://docs.djangoproject.com/en/stable/topics/testing/advanced/#django.test.client.RequestFactory
418418
[configuration]: #configuration
419419
[refresh_from_db_docs]: https://docs.djangoproject.com/en/stable/ref/models/instances/#django.db.models.Model.refresh_from_db
420-
[session_objects]: https://requests.readthedocs.io/en/master/user/advanced/#session-objects
420+
[session_objects]: https://requests.readthedocs.io/en/latest/user/advanced/#session-objects
421421
[provided_test_case_classes]: https://docs.djangoproject.com/en/stable/topics/testing/tools/#provided-test-case-classes

docs/community/3.0-announcement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,5 +961,5 @@ You can follow development on the GitHub site, where we use [milestones to indic
961961

962962
[kickstarter]: https://www.kickstarter.com/projects/tomchristie/django-rest-framework-3
963963
[sponsors]: https://www.django-rest-framework.org/community/kickstarter-announcement/#sponsors
964-
[mixins.py]: https://github.com/encode/django-rest-framework/blob/master/rest_framework/mixins.py
964+
[mixins.py]: https://github.com/encode/django-rest-framework/blob/main/rest_framework/mixins.py
965965
[django-localization]: https://docs.djangoproject.com/en/stable/topics/i18n/translation/#localization-how-to-create-language-files

docs/community/contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ If you want to draw attention to a note or warning, use a pair of enclosing line
209209
[pull-requests]: https://help.github.com/articles/using-pull-requests
210210
[tox]: https://tox.readthedocs.io/en/latest/
211211
[markdown]: https://daringfireball.net/projects/markdown/basics
212-
[docs]: https://github.com/encode/django-rest-framework/tree/master/docs
212+
[docs]: https://github.com/encode/django-rest-framework/tree/main/docs
213213
[mou]: http://mouapp.com/
214214
[repo]: https://github.com/encode/django-rest-framework
215215
[how-to-fork]: https://help.github.com/articles/fork-a-repo/

docs/community/project-management.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Team members have the following responsibilities.
3131

3232
Further notes for maintainers:
3333

34-
* Code changes should come in the form of a pull request - do not push directly to master.
34+
* Code changes should come in the form of a pull request - do not push directly to main.
3535
* Maintainers should typically not merge their own pull requests.
3636
* Each issue/pull request should have exactly one label once triaged.
3737
* Search for un-triaged issues with [is:open no:label][un-triaged].
@@ -58,14 +58,14 @@ The following template should be used for the description of the issue, and serv
5858

5959
Checklist:
6060

61-
- [ ] Create pull request for [release notes](https://github.com/encode/django-rest-framework/blob/master/docs/topics/release-notes.md) based on the [*.*.* milestone](https://github.com/encode/django-rest-framework/milestones/***).
61+
- [ ] Create pull request for [release notes](https://github.com/encode/django-rest-framework/blob/mains/docs/topics/release-notes.md) based on the [*.*.* milestone](https://github.com/encode/django-rest-framework/milestones/***).
6262
- [ ] Update supported versions:
6363
- [ ] `setup.py` `python_requires` list
6464
- [ ] `setup.py` Python & Django version trove classifiers
6565
- [ ] `README` Python & Django versions
6666
- [ ] `docs` Python & Django versions
6767
- [ ] Update the translations from [transifex](https://www.django-rest-framework.org/topics/project-management/#translations).
68-
- [ ] Ensure the pull request increments the version to `*.*.*` in [`restframework/__init__.py`](https://github.com/encode/django-rest-framework/blob/master/rest_framework/__init__.py).
68+
- [ ] Ensure the pull request increments the version to `*.*.*` in [`restframework/__init__.py`](https://github.com/encode/django-rest-framework/blob/main/rest_framework/__init__.py).
6969
- [ ] Ensure documentation validates
7070
- Build and serve docs `mkdocs serve`
7171
- Validate links `pylinkvalidate.py -P http://127.0.0.1:8000`

docs/community/third-party-packages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ To submit new content, [create a pull request][drf-create-pr].
173173
[pypi-register]: https://pypi.org/account/register/
174174
[semver]: https://semver.org/
175175
[tox-docs]: https://tox.readthedocs.io/en/latest/
176-
[drf-compat]: https://github.com/encode/django-rest-framework/blob/master/rest_framework/compat.py
176+
[drf-compat]: https://github.com/encode/django-rest-framework/blob/main/rest_framework/compat.py
177177
[rest-framework-grid]: https://www.djangopackages.com/grids/g/django-rest-framework/
178178
[drf-create-pr]: https://github.com/encode/django-rest-framework/compare
179179
[authentication]: ../api-guide/authentication.md

docs/topics/internationalization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ For API clients the most appropriate of these will typically be to use the `Acce
106106
[django-translation]: https://docs.djangoproject.com/en/stable/topics/i18n/translation
107107
[custom-exception-handler]: ../api-guide/exceptions.md#custom-exception-handling
108108
[transifex-project]: https://explore.transifex.com/django-rest-framework-1/django-rest-framework/
109-
[django-po-source]: https://raw.githubusercontent.com/encode/django-rest-framework/master/rest_framework/locale/en_US/LC_MESSAGES/django.po
109+
[django-po-source]: https://raw.githubusercontent.com/encode/django-rest-framework/main/rest_framework/locale/en_US/LC_MESSAGES/django.po
110110
[django-language-preference]: https://docs.djangoproject.com/en/stable/topics/i18n/translation/#how-django-discovers-language-preference
111111
[django-locale-paths]: https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-LOCALE_PATHS
112112
[django-locale-name]: https://docs.djangoproject.com/en/stable/topics/i18n/#term-locale-name

0 commit comments

Comments
 (0)