mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
chore: rename default branch to main (#9503)
This commit is contained in:
parent
e3fe4be83b
commit
4f80587d26
10 changed files with 22 additions and 23 deletions
3
.github/PULL_REQUEST_TEMPLATE.md
vendored
3
.github/PULL_REQUEST_TEMPLATE.md
vendored
|
@ -1,6 +1,5 @@
|
|||
<!--
|
||||
Before submitting a PR, please read
|
||||
https://github.com/denoland/deno/blob/master/docs/contributing.md
|
||||
Before submitting a PR, please read http://deno.land/manual/contributing
|
||||
|
||||
1. Give the PR a descriptive title.
|
||||
|
||||
|
|
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
@ -35,13 +35,13 @@ jobs:
|
|||
- os: ubuntu-18.04
|
||||
kind: test_release
|
||||
|
||||
# Always run master branch builds to completion. This allows the cache to
|
||||
# Always run main branch builds to completion. This allows the cache to
|
||||
# stay mostly up-to-date in situations where a single job fails due to
|
||||
# e.g. a flaky test.
|
||||
# Don't fast-fail on tag build because publishing binaries shouldn't be
|
||||
# prevented if if any of the stages fails (which can be a false negative).
|
||||
fail-fast: ${{ github.event_name == 'pull_request' || (github.ref !=
|
||||
'refs/heads/master' && !startsWith(github.ref, 'refs/tags/')) }}
|
||||
'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')) }}
|
||||
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
|
@ -55,7 +55,7 @@ jobs:
|
|||
- name: Clone repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
# Use depth > 1, because sometimes we need to rebuild master and if
|
||||
# Use depth > 1, because sometimes we need to rebuild main and if
|
||||
# other commits have landed it will become impossible to rebuild if
|
||||
# the checkout is too shallow.
|
||||
fetch-depth: 5
|
||||
|
@ -120,7 +120,7 @@ jobs:
|
|||
runner.os != 'Windows' &&
|
||||
matrix.kind == 'test_release' &&
|
||||
github.repository == 'denoland/deno' &&
|
||||
(github.ref == 'refs/heads/master' ||
|
||||
(github.ref == 'refs/heads/main' ||
|
||||
startsWith(github.ref, 'refs/tags/'))
|
||||
uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
|
@ -133,7 +133,7 @@ jobs:
|
|||
runner.os == 'Windows' &&
|
||||
matrix.kind == 'test_release' &&
|
||||
github.repository == 'denoland/deno' &&
|
||||
(github.ref == 'refs/heads/master' ||
|
||||
(github.ref == 'refs/heads/main' ||
|
||||
startsWith(github.ref, 'refs/tags/'))
|
||||
uses: google-github-actions/setup-gcloud@master
|
||||
env:
|
||||
|
@ -147,7 +147,7 @@ jobs:
|
|||
if: |
|
||||
matrix.kind == 'test_release' &&
|
||||
github.repository == 'denoland/deno' &&
|
||||
github.ref == 'refs/heads/master'
|
||||
github.ref == 'refs/heads/main'
|
||||
shell: bash
|
||||
run: |
|
||||
echo "DENO_CANARY=true" >> $GITHUB_ENV
|
||||
|
@ -210,7 +210,7 @@ jobs:
|
|||
runner.os != 'Windows' &&
|
||||
matrix.kind == 'test_release' &&
|
||||
github.repository == 'denoland/deno' &&
|
||||
github.ref == 'refs/heads/master'
|
||||
github.ref == 'refs/heads/main'
|
||||
run: |
|
||||
gsutil cp ./target/release/*.zip gs://dl.deno.land/canary/$(git rev-parse HEAD)/
|
||||
echo $(git rev-parse HEAD) > canary-latest.txt
|
||||
|
@ -221,7 +221,7 @@ jobs:
|
|||
runner.os == 'Windows' &&
|
||||
matrix.kind == 'test_release' &&
|
||||
github.repository == 'denoland/deno' &&
|
||||
github.ref == 'refs/heads/master'
|
||||
github.ref == 'refs/heads/main'
|
||||
env:
|
||||
CLOUDSDK_PYTHON: ${{env.pythonLocation}}\python.exe
|
||||
shell: bash
|
||||
|
@ -270,7 +270,7 @@ jobs:
|
|||
if: |
|
||||
matrix.kind == 'bench' &&
|
||||
github.repository == 'denoland/deno' &&
|
||||
github.ref == 'refs/heads/master'
|
||||
github.ref == 'refs/heads/main'
|
||||
env:
|
||||
DENOBOT_PAT: ${{ secrets.DENOBOT_PAT }}
|
||||
run: |
|
||||
|
|
|
@ -84,9 +84,9 @@ More in-depth info can be found in the runtime
|
|||
We appreciate your help!
|
||||
|
||||
To contribute, please read our
|
||||
[guidelines](https://github.com/denoland/deno/blob/master/docs/contributing/style_guide.md).
|
||||
[guidelines](https://github.com/denoland/deno/blob/main/docs/contributing/style_guide.md).
|
||||
|
||||
[Build Status - Cirrus]: https://github.com/denoland/deno/workflows/ci/badge.svg?branch=master&event=push
|
||||
[Build Status - Cirrus]: https://github.com/denoland/deno/workflows/ci/badge.svg?branch=main&event=push
|
||||
[Build status]: https://github.com/denoland/deno/actions
|
||||
[Twitter badge]: https://twitter.com/intent/follow?screen_name=deno_land
|
||||
[Twitter handle]: https://img.shields.io/twitter/follow/deno_land.svg?style=social&label=Follow
|
||||
|
|
|
@ -21,10 +21,10 @@ function to trigger the "dispatch" callback in Rust. The user is responsible for
|
|||
encoding both the request and response into a Uint8Array.
|
||||
|
||||
Documentation for this crate is thin at the moment. Please see
|
||||
[http_bench_bin_ops.rs](https://github.com/denoland/deno/blob/master/core/examples/http_bench_bin_ops.rs)
|
||||
[http_bench_bin_ops.rs](https://github.com/denoland/deno/blob/main/core/examples/http_bench_bin_ops.rs)
|
||||
and
|
||||
[http_bench_json_ops.rs](https://github.com/denoland/deno/blob/master/core/examples/http_bench_json_ops.rs)
|
||||
[http_bench_json_ops.rs](https://github.com/denoland/deno/blob/main/core/examples/http_bench_json_ops.rs)
|
||||
as a simple example of usage.
|
||||
|
||||
TypeScript support and a lot of other functionality is not available at this
|
||||
layer. See the [CLI](https://github.com/denoland/deno/tree/master/cli) for that.
|
||||
layer. See the [CLI](https://github.com/denoland/deno/tree/main/cli) for that.
|
||||
|
|
|
@ -103,7 +103,7 @@ Build with Cargo:
|
|||
# Build:
|
||||
cargo build -vv
|
||||
|
||||
# Build errors? Ensure you have latest master and try building again, or if that doesn't work try:
|
||||
# Build errors? Ensure you have latest main and try building again, or if that doesn't work try:
|
||||
cargo clean && cargo build -vv
|
||||
|
||||
# Run:
|
||||
|
|
|
@ -14,7 +14,7 @@ Stable releases can be found on the
|
|||
### Canary channel
|
||||
|
||||
In addition to the stable channel described above, canaries are released
|
||||
multiple times daily (for each commit on master). You can upgrade to the latest
|
||||
multiple times daily (for each commit on main). You can upgrade to the latest
|
||||
canary release by running:
|
||||
|
||||
```
|
||||
|
|
|
@ -23,4 +23,4 @@ The TypeScript definitions for the Deno namespaces can be found in the
|
|||
file.
|
||||
|
||||
The documentation for all of the Deno specific APIs can be found on
|
||||
[doc.deno.land](https://doc.deno.land/https/raw.githubusercontent.com/denoland/deno/master/cli/dts/lib.deno.ns.d.ts).
|
||||
[doc.deno.land](https://doc.deno.land/https/raw.githubusercontent.com/denoland/deno/main/cli/dts/lib.deno.ns.d.ts).
|
||||
|
|
|
@ -15,7 +15,7 @@ Passing this flag does a few things:
|
|||
|
||||
- It enables the use of unstable APIs during runtime.
|
||||
- It adds the
|
||||
[`lib.deno.unstable.d.ts`](https://doc.deno.land/https/raw.githubusercontent.com/denoland/deno/master/cli/dts/lib.deno.unstable.d.ts)
|
||||
[`lib.deno.unstable.d.ts`](https://doc.deno.land/https/raw.githubusercontent.com/denoland/deno/main/cli/dts/lib.deno.unstable.d.ts)
|
||||
file to the list of TypeScript definitions that are used for type checking.
|
||||
This includes the output of `deno types`.
|
||||
|
||||
|
|
|
@ -14,11 +14,11 @@ Deno is released.
|
|||
|
||||
We strongly suggest to always use imports with pinned version of standard
|
||||
library to avoid unintended changes. For example, rather than linking to the
|
||||
master branch of code, which may change at any time, potentially causing
|
||||
default branch of code, which may change at any time, potentially causing
|
||||
compilation errors or unexpected behavior:
|
||||
|
||||
```typescript
|
||||
// imports from master, this should be avoided
|
||||
// import the latest release, this should be avoided
|
||||
import { copy } from "https://deno.land/std/fs/copy.ts";
|
||||
```
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ switch (command) {
|
|||
update
|
||||
Update the \`expectation.json\` to match the current reality.
|
||||
|
||||
More details at https://deno.land/manual@master/contributing/web_platform_tests
|
||||
More details at https://deno.land/manual@main/contributing/web_platform_tests
|
||||
|
||||
`);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue