Skip to content

Commit cbe85ec

Browse files
authored
Migrate references from master to main (#411)
1 parent 99fb644 commit cbe85ec

File tree

13 files changed

+25
-25
lines changed

13 files changed

+25
-25
lines changed

.github/workflows/coverage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CodeCov
22
on:
33
push:
44
branches:
5-
- master
5+
- main
66
pull_request:
77
schedule:
88
- cron: 0 0 * * *

.github/workflows/documentation.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Update Documentation
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77

88
jobs:
99
npm:

.github/workflows/spec_update.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
title: 'Automated Spec Update'
7474
body: |
7575
${{ steps.git-diff.outputs.commit}}
76-
base: 'master'
76+
base: 'main'
7777
team-reviewers: |
7878
owners
7979
maintainers

CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ Note: If you do not have all of these tokens available, we run integration tests
5757

5858
[issues]: https://github.com/dropbox/dropbox-sdk-js/issues
5959
[pr]: https://github.com/dropbox/dropbox-sdk-js/pulls
60-
[coc]: https://github.com/dropbox/dropbox-sdk-js/blob/master/CODE_OF_CONDUCT.md
61-
[license]: https://github.com/dropbox/dropbox-sdk-js/blob/master/LICENSE
60+
[coc]: https://github.com/dropbox/dropbox-sdk-js/blob/main/CODE_OF_CONDUCT.md
61+
[license]: https://github.com/dropbox/dropbox-sdk-js/blob/main/LICENSE
6262
[cla]: https://opensource.dropbox.com/cla/

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![node-current](https://img.shields.io/node/v/dropbox)](https://www.npmjs.com/package/dropbox)
44
[![npm](https://img.shields.io/npm/v/dropbox)](https://www.npmjs.com/package/dropbox)
5-
[![codecov](https://codecov.io/gh/dropbox/dropbox-sdk-js/branch/master/graph/badge.svg)](https://codecov.io/gh/dropbox/dropbox-sdk-js)
5+
[![codecov](https://codecov.io/gh/dropbox/dropbox-sdk-js/branch/main/graph/badge.svg)](https://codecov.io/gh/dropbox/dropbox-sdk-js)
66

77
The offical Dropbox SDK for Javascript.
88

@@ -35,16 +35,16 @@ You can also view our [OAuth guide][oauthguide].
3535
We provide [Examples][examples] to help get you started with a lot of the basic functionality in the SDK. We provide most examples in both Javascript and Typescript with some having a Node equivalent.
3636

3737
- **OAuth**
38-
- Auth - [ [JS](https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript/auth) ] - A simple auth example to get an access token and list the files in the root of your Dropbox account.
39-
- Simple Backend [ [JS](https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript/simple-backend) ] - A simple example of a node backend doing a multi-step auth flow for Short Lived Tokens.
40-
- PKCE Backend [ [JS](https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript/PKCE-backend) ] - A simple example of a node backend doing a multi-step auth flow using PKCE and Short Lived Tokens.
38+
- Auth - [ [JS](https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript/auth) ] - A simple auth example to get an access token and list the files in the root of your Dropbox account.
39+
- Simple Backend [ [JS](https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript/simple-backend) ] - A simple example of a node backend doing a multi-step auth flow for Short Lived Tokens.
40+
- PKCE Backend [ [JS](https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript/PKCE-backend) ] - A simple example of a node backend doing a multi-step auth flow using PKCE and Short Lived Tokens.
4141

4242
- **Other Examples**
43-
- Basic - [ [TS](https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/typescript/node), [JS](https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript/basic) ] - A simple example that takes in a token and fetches files from your Dropbox account.
44-
- Download - [ [TS](https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/typescript/node), [JS](https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript/download) ] - An example showing how to download a shared file.
45-
- Team As User - [ [TS](https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/typescript/node), [JS](https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript/team-as-user) ] - An example showing how to act as a user.
46-
- Team - [ [TS](https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/typescript/node), [JS](https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript/team) ] - An example showing how to use the team functionality and list team devices.
47-
- Upload [ [TS](https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/typescript/node), [JS](https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript/upload) ] - An example showing how to upload a file to Dropbox.
43+
- Basic - [ [TS](https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/typescript/node), [JS](https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript/basic) ] - A simple example that takes in a token and fetches files from your Dropbox account.
44+
- Download - [ [TS](https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/typescript/node), [JS](https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript/download) ] - An example showing how to download a shared file.
45+
- Team As User - [ [TS](https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/typescript/node), [JS](https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript/team-as-user) ] - An example showing how to act as a user.
46+
- Team - [ [TS](https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/typescript/node), [JS](https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript/team) ] - An example showing how to use the team functionality and list team devices.
47+
- Upload [ [TS](https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/typescript/node), [JS](https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript/upload) ] - An example showing how to upload a file to Dropbox.
4848

4949
## Getting Help
5050

@@ -59,9 +59,9 @@ This SDK is distributed under the MIT license, please see [LICENSE][license] for
5959
[logo]: https://cfl.dropboxstatic.com/static/images/sdk/javascript_banner.png
6060
[repo]: https://github.com/dropbox/dropbox-sdk-js
6161
[documentation]: https://dropbox.github.io/dropbox-sdk-js/
62-
[examples]: https://github.com/dropbox/dropbox-sdk-js/tree/master/examples
63-
[license]: https://github.com/dropbox/dropbox-sdk-js/blob/master/LICENSE
64-
[contributing]: https://github.com/dropbox/dropbox-sdk-js/blob/master/CONTRIBUTING.md
62+
[examples]: https://github.com/dropbox/dropbox-sdk-js/tree/main/examples
63+
[license]: https://github.com/dropbox/dropbox-sdk-js/blob/main/LICENSE
64+
[contributing]: https://github.com/dropbox/dropbox-sdk-js/blob/main/CONTRIBUTING.md
6565
[devconsole]: https://dropbox.com/developers/apps
6666
[oauthguide]: https://www.dropbox.com/lp/developers/reference/oauth-guide
6767
[support]: https://www.dropbox.com/developers/contact

UPGRADING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,4 @@ Previously we have provided guidance to SDK users that they should not rely on t
122122

123123
As a result, you should not pass in your own `fetch` to the Dropbox constructor unless you have a specific reason to do so (mocking, etc). Note that if you opt to pass in fetch to support your use case, you may need to bind your fetch to the appropriate context e.g. `fetch.bind(your_context)`.
124124

125-
[contributing]: https://github.com/dropbox/dropbox-sdk-js/blob/master/CONTRIBUTING.md
125+
[contributing]: https://github.com/dropbox/dropbox-sdk-js/blob/main/CONTRIBUTING.md

examples/javascript/auth/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h1>
1919
JavaScript SDK Examples
2020
</h1>
2121
</a>
22-
<a href="https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript" class="view-source">View Source</a>
22+
<a href="https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript" class="view-source">View Source</a>
2323
</nav>
2424
<h2 class="code">
2525
<a href="/">examples</a> / authentication

examples/javascript/basic/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h1>
1818
JavaScript SDK Examples
1919
</h1>
2020
</a>
21-
<a href="https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript" class="view-source">View Source</a>
21+
<a href="https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript" class="view-source">View Source</a>
2222
</nav>
2323
<h2 class="code">
2424
<a href="/">examples</a> / basic

examples/javascript/download/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h1>
1818
JavaScript SDK Examples
1919
</h1>
2020
</a>
21-
<a href="https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript" class="view-source">View Source</a>
21+
<a href="https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript" class="view-source">View Source</a>
2222
</nav>
2323
<h2 class="code">
2424
<a href="/">examples</a> / download file

examples/javascript/team-as-user/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h1>
1818
JavaScript SDK Examples
1919
</h1>
2020
</a>
21-
<a href="https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript" class="view-source">View Source</a>
21+
<a href="https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript" class="view-source">View Source</a>
2222
</nav>
2323
<h2 class="code">
2424
<a href="/">examples</a> / team as user

examples/javascript/team/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h1>
1818
JavaScript SDK Examples
1919
</h1>
2020
</a>
21-
<a href="https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript" class="view-source">View Source</a>
21+
<a href="https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript" class="view-source">View Source</a>
2222
</nav>
2323
<h2 class="code">
2424
<a href="/">examples</a> / team

examples/javascript/upload/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h1>
1616
JavaScript SDK Examples
1717
</h1>
1818
</a>
19-
<a href="https://github.com/dropbox/dropbox-sdk-js/tree/master/examples/javascript" class="view-source">View Source</a>
19+
<a href="https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript" class="view-source">View Source</a>
2020
</nav>
2121
<h2 class="code">
2222
<a href="/">examples</a> / upload file

scripts/update_version.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ else
77
set -ex
88
NEW_VERSION=$1
99

10-
git checkout master
10+
git checkout main
1111
git reset --hard HEAD
1212

1313
git tag "v${NEW_VERSION}" -m "${NEW_VERSION} release"

0 commit comments

Comments
 (0)