Skip to content

Commit 20e68a1

Browse files
authored
feat: Initial version (#1)
1 parent ea990b7 commit 20e68a1

18 files changed

+17916
-11
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- next
7+
- beta
8+
- "*.x" # maintenance release branches, e.g. v1.x
9+
10+
jobs:
11+
release:
12+
name: release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v2
17+
with:
18+
node-version: "12.x"
19+
- uses: actions/cache@v1
20+
with:
21+
path: ~/.npm
22+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
23+
restore-keys: |
24+
${{ runner.os }}-node-
25+
- run: npm ci
26+
- run: npm run build
27+
- run: npx semantic-release
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
NPM_TOKEN: ${{ secrets.OCTOKITBOT_NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
types: [opened, synchronize]
8+
9+
jobs:
10+
test_matrix:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
node_version: ["12", "14"]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Use Node.js ${{ matrix.node_version }}
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: ${{ matrix.node_version }}
22+
- uses: actions/cache@v1
23+
with:
24+
path: ~/.npm
25+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+
restore-keys: |
27+
${{ runner.os }}-node-
28+
- run: npm ci
29+
- run: npm test
30+
31+
test:
32+
runs-on: ubuntu-latest
33+
needs: test_matrix
34+
steps:
35+
- run: echo ok
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Update Prettier
2+
on:
3+
push:
4+
branches:
5+
- "dependabot/npm_and_yarn/prettier-*"
6+
workflow_dispatch: {}
7+
jobs:
8+
update_prettier:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
version: 12
15+
- uses: actions/cache@v1
16+
with:
17+
path: ~/.npm
18+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
19+
restore-keys: |
20+
${{ runner.os }}-node-
21+
- run: npm ci
22+
- run: npm run lint:fix
23+
- uses: gr2m/[email protected]
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
26+
with:
27+
title: "Prettier updated"
28+
body: "An update to prettier required updates to your code."
29+
branch: ${{ github.ref }}
30+
commit-message: "style: prettier"

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage/
2+
node_modules/
3+
pkg/

CONTRIBUTING.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md).
44
By participating in this project you agree to abide by its terms.
55

6-
We appreciate you taking the time to contribute to `@octokit/auth-oauth-client`. Especially as a new contributor, you have a valuable perspective that we lost a long time ago: you will find things confusing and run into problems that no longer occur to us. Please share them with us, so we can make the experience for future contributors the best it could be.
6+
We appreciate you taking the time to contribute to `@octokit/auth-oauth-user`. Especially as a new contributor, you have a valuable perspective that we lost a long time ago: you will find things confusing and run into problems that no longer occur to us. Please share them with us, so we can make the experience for future contributors the best it could be.
77

88
Thank you 💖
99

1010
## Creating an Issue
1111

1212
Before you create a new Issue:
1313

14-
1. Please make sure there is no [open issue](https://github.com/octokit/auth-oauth-client.js/issues?utf8=%E2%9C%93&q=is%3Aissue) yet.
14+
1. Please make sure there is no [open issue](https://github.com/octokit/auth-oauth-user.js/issues?utf8=%E2%9C%93&q=is%3Aissue) yet.
1515
2. If it is a bug report, include the steps to reproduce the issue and please create a reproducible test case on [runkit.com](https://runkit.com/). Example: https://runkit.com/gr2m/octokit-rest-js-1808
1616
3. If it is a feature request, please share the motivation for the new feature, what alternatives you tried, and how you would implement it.
1717
4. Please include links to the corresponding github documentation.
@@ -23,8 +23,8 @@ First, fork the repository.
2323
Setup the repository locally. Replace `<your account name>` with the name of the account you forked to.
2424

2525
```shell
26-
git clone https://github.com/<your account name>/auth-oauth-client.js.git
27-
cd auth-oauth-client.js
26+
git clone https://github.com/<your account name>/auth-oauth-user.js.git
27+
cd auth-oauth-user.js
2828
npm install
2929
```
3030

@@ -38,18 +38,18 @@ npm test
3838

3939
- Create a new branch locally.
4040
- Make your changes in that branch and push them to your fork
41-
- Submit a pull request from your topic branch to the main branch on the `octokit/auth-oauth-client.js` repository.
41+
- Submit a pull request from your topic branch to the main branch on the `octokit/auth-oauth-user.js` repository.
4242
- Be sure to tag any issues your pull request is taking care of / contributing to. Adding "Closes #123" to a pull request description will automatically close the issue once the pull request is merged in.
4343

4444
## Testing a pull request from github repo locally:
4545

46-
You can install `@octokit/auth-oauth-client` from each pull request. Replace `[PULL REQUEST NUMBER]`:
46+
You can install `@octokit/auth-oauth-user` from each pull request. Replace `[PULL REQUEST NUMBER]`:
4747

4848
```
49-
npm install https://github.pika.dev/octokit/auth-oauth-client.js/pr/[PULL REQUEST NUMBER]
49+
npm install https://github.pika.dev/octokit/auth-oauth-user.js/pr/[PULL REQUEST NUMBER]
5050
```
5151

52-
Once you are done testing, you can revert back to the default module `@octokit/auth-oauth-client` from npm with `npm install @octokit/auth-oauth-client`
52+
Once you are done testing, you can revert back to the default module `@octokit/auth-oauth-user` from npm with `npm install @octokit/auth-oauth-user`
5353

5454
## Maintainers only
5555

0 commit comments

Comments
 (0)