@octokit/types 2.1.0 β 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +4 -1
- package/src/VERSION.ts +1 -1
- package/.github/ISSUE_TEMPLATE/01_help.md +0 -5
- package/.github/ISSUE_TEMPLATE/02_bug.md +0 -19
- package/.github/ISSUE_TEMPLATE/03_feature_request.md +0 -19
- package/.github/ISSUE_TEMPLATE/04_thanks.md +0 -19
- package/.github/workflows/release.yml +0 -28
- package/.github/workflows/routes-update.yml +0 -39
- package/.github/workflows/test.yml +0 -19
- package/CODE_OF_CONDUCT.md +0 -75
- package/CONTRIBUTING.md +0 -59
- package/scripts/update-endpoints/fetch-json.js +0 -46
- package/scripts/update-endpoints/generated/README.md +0 -3
- package/scripts/update-endpoints/generated/endpoints.json +0 -28879
- package/scripts/update-endpoints/templates/endpoints.ts.template +0 -33
- package/scripts/update-endpoints/typescript.js +0 -179
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octokit/types",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"description": "Shared TypeScript definitions for Octokit projects",
|
|
8
8
|
"main": "src/index.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"src/"
|
|
11
|
+
],
|
|
9
12
|
"scripts": {
|
|
10
13
|
"docs": "typedoc --module commonjs --readme none --out docs src/",
|
|
11
14
|
"lint": "prettier --check '{src,test}/**/*' README.md package.json !src/generated/*",
|
package/src/VERSION.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "2.1.
|
|
1
|
+
export const VERSION = "2.1.1";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "π Bug Report"
|
|
3
|
-
about: "If something isn't working as expected π€"
|
|
4
|
-
labels: bug
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<!-- Please replace all placeholders such as this below -->
|
|
8
|
-
|
|
9
|
-
**What happened?**
|
|
10
|
-
|
|
11
|
-
<!-- Describe the problem and how to reproduce it. Add screenshots or a link to your repository if possible and helpful -->
|
|
12
|
-
|
|
13
|
-
**What did you expect to happen?**
|
|
14
|
-
|
|
15
|
-
<!-- Describe what you expected to happen instead -->
|
|
16
|
-
|
|
17
|
-
**What the problem might be**
|
|
18
|
-
|
|
19
|
-
<!-- If you have an idea where the bug might lie, please share here. Otherwise remove the whole section -->
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "π§ββοΈ Feature Request"
|
|
3
|
-
about: "Wouldnβt it be nice if π"
|
|
4
|
-
labels: feature
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<!-- Please replace all placeholders such as this below -->
|
|
8
|
-
|
|
9
|
-
**Whatβs missing?**
|
|
10
|
-
|
|
11
|
-
<!-- Describe your feature idea -->
|
|
12
|
-
|
|
13
|
-
**Why?**
|
|
14
|
-
|
|
15
|
-
<!-- Describe the problem you are facing -->
|
|
16
|
-
|
|
17
|
-
**Alternatives you tried**
|
|
18
|
-
|
|
19
|
-
<!-- Describe the workarounds you tried so far and how they worked for you -->
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: "π Thank you"
|
|
3
|
-
about: "@octokit/types is awesome π"
|
|
4
|
-
labels: thanks
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
<!-- Please replace all placeholders such as this below -->
|
|
8
|
-
|
|
9
|
-
**How do you use @octokit/types?**
|
|
10
|
-
|
|
11
|
-
<!-- Iβd love to know how you use @octokit/types, to better understand peopleβs use cases -->
|
|
12
|
-
|
|
13
|
-
**What do you love about it?**
|
|
14
|
-
|
|
15
|
-
<!-- Thanks for the kind words π€ -->
|
|
16
|
-
|
|
17
|
-
**How did you learn about it?**
|
|
18
|
-
|
|
19
|
-
<!-- Just curious -->
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
name: Release
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches:
|
|
5
|
-
- master
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
release:
|
|
9
|
-
name: release
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@master
|
|
13
|
-
- uses: actions/setup-node@v1
|
|
14
|
-
with:
|
|
15
|
-
node-version: "12.x"
|
|
16
|
-
- run: npm ci
|
|
17
|
-
- run: npx semantic-release
|
|
18
|
-
env:
|
|
19
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
20
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
21
|
-
- run: npm run docs
|
|
22
|
-
env:
|
|
23
|
-
# workaround "Failed to replace env in config: ${NPM_TOKEN}" error
|
|
24
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
25
|
-
- uses: maxheld83/ghpages@master
|
|
26
|
-
env:
|
|
27
|
-
BUILD_DIR: docs/
|
|
28
|
-
GH_PAT: ${{ secrets.OCTOKIT_PAT }}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
name: octokit/routes update
|
|
2
|
-
on:
|
|
3
|
-
repository_dispatch:
|
|
4
|
-
types: [octokit-routes-release]
|
|
5
|
-
|
|
6
|
-
jobs:
|
|
7
|
-
update_routes:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- uses: actions/checkout@master
|
|
11
|
-
- uses: actions/setup-node@v1
|
|
12
|
-
with:
|
|
13
|
-
node-version: "12.x"
|
|
14
|
-
# try checking out routes-update branch. Ignore error if it does not exist
|
|
15
|
-
- run: git checkout routes-update || true
|
|
16
|
-
- run: npm ci
|
|
17
|
-
- run: npm run update-endpoints
|
|
18
|
-
env:
|
|
19
|
-
VERSION: ${{ github.event.client_payload.version }}
|
|
20
|
-
- name: Create Pull Request
|
|
21
|
-
uses: gr2m/create-or-update-pull-request-action@v1.x
|
|
22
|
-
env:
|
|
23
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
24
|
-
with:
|
|
25
|
-
title: "π§ GitHub REST Endpoints changed"
|
|
26
|
-
body: |
|
|
27
|
-
See what changed at https://github.com/octokit/routes/releases/latest.
|
|
28
|
-
|
|
29
|
-
Make sure to update the commits so that the merge results in helpful release notes, see [Merging the Pull Request & releasing a new version](https://github.com/octokit/rest.js/blob/master/CONTRIBUTING.md#merging-the-pull-request--releasing-a-new-version).
|
|
30
|
-
|
|
31
|
-
In general
|
|
32
|
-
|
|
33
|
-
- Avoid breaking changes at all costs
|
|
34
|
-
- If there are no typescript or code changes, use a `docs` prefix
|
|
35
|
-
- If there are typescript changes but no code changes, use `fix(typescript)` prefix
|
|
36
|
-
- If there are code changes, use `fix` if a problem was resolved, `feat` if new endpoints / parameters were added, and `feat(deprecation)` if a method was deprecated.
|
|
37
|
-
branch: "routes-update"
|
|
38
|
-
commit-message: "WIP octokit/routes updated"
|
|
39
|
-
author: "Octokit Bot <33075676+octokitbot@users.noreply.github.com>"
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
name: Test
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches:
|
|
5
|
-
- master
|
|
6
|
-
- "greenkeeper/**"
|
|
7
|
-
pull_request:
|
|
8
|
-
types: [opened, synchronize]
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
test:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@master
|
|
15
|
-
- uses: actions/setup-node@v1
|
|
16
|
-
with:
|
|
17
|
-
node-version: 12
|
|
18
|
-
- run: npm ci
|
|
19
|
-
- run: npm test
|
package/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
# Contributor Covenant Code of Conduct
|
|
2
|
-
|
|
3
|
-
## Our Pledge
|
|
4
|
-
|
|
5
|
-
In the interest of fostering an open and welcoming environment, we as
|
|
6
|
-
contributors and maintainers pledge to making participation in our project and
|
|
7
|
-
our community a harassment-free experience for everyone, regardless of age, body
|
|
8
|
-
size, disability, ethnicity, gender identity and expression, level of experience,
|
|
9
|
-
nationality, personal appearance, race, religion, or sexual identity and
|
|
10
|
-
orientation.
|
|
11
|
-
|
|
12
|
-
## Our Standards
|
|
13
|
-
|
|
14
|
-
Examples of behavior that contributes to creating a positive environment
|
|
15
|
-
include:
|
|
16
|
-
|
|
17
|
-
- Using welcoming and inclusive language
|
|
18
|
-
- Being respectful of differing viewpoints and experiences
|
|
19
|
-
- Gracefully accepting constructive criticism
|
|
20
|
-
- Focusing on what is best for the community
|
|
21
|
-
- Showing empathy towards other community members
|
|
22
|
-
|
|
23
|
-
Examples of unacceptable behavior by participants include:
|
|
24
|
-
|
|
25
|
-
- The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
-
advances
|
|
27
|
-
- Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
-
- Public or private harassment
|
|
29
|
-
- Publishing others' private information, such as a physical or electronic
|
|
30
|
-
address, without explicit permission
|
|
31
|
-
- Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
-
professional setting
|
|
33
|
-
|
|
34
|
-
## Our Responsibilities
|
|
35
|
-
|
|
36
|
-
Project maintainers are responsible for clarifying the standards of acceptable
|
|
37
|
-
behavior and are expected to take appropriate and fair corrective action in
|
|
38
|
-
response to any instances of unacceptable behavior.
|
|
39
|
-
|
|
40
|
-
Project maintainers have the right and responsibility to remove, edit, or
|
|
41
|
-
reject comments, commits, code, wiki edits, issues, and other contributions
|
|
42
|
-
that are not aligned to this Code of Conduct, or to ban temporarily or
|
|
43
|
-
permanently any contributor for other behaviors that they deem inappropriate,
|
|
44
|
-
threatening, offensive, or harmful.
|
|
45
|
-
|
|
46
|
-
## Scope
|
|
47
|
-
|
|
48
|
-
This Code of Conduct applies both within project spaces and in public spaces
|
|
49
|
-
when an individual is representing the project or its community. Examples of
|
|
50
|
-
representing a project or community include using an official project e-mail
|
|
51
|
-
address, posting via an official social media account, or acting as an appointed
|
|
52
|
-
representative at an online or offline event. Representation of a project may be
|
|
53
|
-
further defined and clarified by project maintainers.
|
|
54
|
-
|
|
55
|
-
## Enforcement
|
|
56
|
-
|
|
57
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
-
reported by contacting the project team at opensource+octokit@github.com. All
|
|
59
|
-
complaints will be reviewed and investigated and will result in a response that
|
|
60
|
-
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
|
-
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
62
|
-
Further details of specific enforcement policies may be posted separately.
|
|
63
|
-
|
|
64
|
-
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
65
|
-
faith may face temporary or permanent repercussions as determined by other
|
|
66
|
-
members of the project's leadership.
|
|
67
|
-
|
|
68
|
-
## Attribution
|
|
69
|
-
|
|
70
|
-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
|
71
|
-
available at [https://contributor-covenant.org/version/1/4][version]
|
|
72
|
-
|
|
73
|
-
[homepage]: https://contributor-covenant.org
|
|
74
|
-
[version]: https://contributor-covenant.org/version/1/4/
|
|
75
|
-
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# How to contribute
|
|
2
|
-
|
|
3
|
-
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md).
|
|
4
|
-
By participating in this project you agree to abide by its terms.
|
|
5
|
-
|
|
6
|
-
## Creating an Issue
|
|
7
|
-
|
|
8
|
-
Before you create a new Issue:
|
|
9
|
-
|
|
10
|
-
1. Please make sure there is no [open issue](https://github.com/octokit/plugin-paginate-rest/issues?utf8=%E2%9C%93&q=is%3Aissue) yet.
|
|
11
|
-
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/5aa034f1440b420012a6eebf
|
|
12
|
-
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.
|
|
13
|
-
4. Please include links to the corresponding github documentation.
|
|
14
|
-
|
|
15
|
-
## Setup the repository locally
|
|
16
|
-
|
|
17
|
-
First, fork the repository.
|
|
18
|
-
|
|
19
|
-
Setup the repository locally. Replace `<your account name>` with the name of the account you forked to.
|
|
20
|
-
|
|
21
|
-
```shell
|
|
22
|
-
git clone https://github.com/<your account name>/plugin-paginate-rest.js.git
|
|
23
|
-
cd plugin-paginate-rest.js
|
|
24
|
-
npm install
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
Run the tests before making changes to make sure the local setup is working as expected
|
|
28
|
-
|
|
29
|
-
```shell
|
|
30
|
-
npm test
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Submitting the Pull Request
|
|
34
|
-
|
|
35
|
-
- Create a new branch locally.
|
|
36
|
-
- Make your changes in that branch to your fork repository
|
|
37
|
-
- Submit a pull request from your topic branch to the master branch on the `octokit/plugin-paginate-rest.js` repository.
|
|
38
|
-
- 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.
|
|
39
|
-
|
|
40
|
-
## Testing a pull request from github repo locally:
|
|
41
|
-
|
|
42
|
-
You can install `@octokit/plugin-paginate-rest` from each pull request. Replace `[PULL REQUEST NUMBER]`
|
|
43
|
-
|
|
44
|
-
Once you are done testing, you can revert back to the default module `@octokit/plugin-paginate-rest` from npm with `npm install @octokit/plugin-paginate-rest`
|
|
45
|
-
|
|
46
|
-
## Merging the Pull Request & releasing a new version
|
|
47
|
-
|
|
48
|
-
Releases are automated using [semantic-release](https://github.com/semantic-release/semantic-release).
|
|
49
|
-
The following commit message conventions determine which version is released:
|
|
50
|
-
|
|
51
|
-
1. `fix: ...` or `fix(scope name): ...` prefix in subject: bumps fix version, e.g. `1.2.3` β `1.2.4`
|
|
52
|
-
2. `feat: ...` or `feat(scope name): ...` prefix in subject: bumps feature version, e.g. `1.2.3` β `1.3.0`
|
|
53
|
-
3. `BREAKING CHANGE:` in body: bumps breaking version, e.g. `1.2.3` β `2.0.0`
|
|
54
|
-
|
|
55
|
-
Only one version number is bumped at a time, the highest version change trumps the others.
|
|
56
|
-
Besides publishing a new version to npm, semantic-release also creates a git tag and release
|
|
57
|
-
on GitHub, generates changelogs from the commit messages and puts them into the release notes.
|
|
58
|
-
s
|
|
59
|
-
If the pull request looks good but does not follow the commit conventions, use the <kbd>Squash & merge</kbd> button.
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
const { writeFileSync } = require("fs");
|
|
2
|
-
const path = require("path");
|
|
3
|
-
|
|
4
|
-
const { graphql } = require("@octokit/graphql");
|
|
5
|
-
const prettier = require("prettier");
|
|
6
|
-
|
|
7
|
-
if (!process.env.VERSION) {
|
|
8
|
-
throw new Error(`VERSION environment variable must be set`);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const QUERY = `
|
|
12
|
-
query ($version: String) {
|
|
13
|
-
endpoints(version: $version) {
|
|
14
|
-
name
|
|
15
|
-
scope(format: CAMELCASE)
|
|
16
|
-
id(format: CAMELCASE)
|
|
17
|
-
method
|
|
18
|
-
url
|
|
19
|
-
parameters {
|
|
20
|
-
alias
|
|
21
|
-
allowNull
|
|
22
|
-
deprecated
|
|
23
|
-
description
|
|
24
|
-
enum
|
|
25
|
-
name
|
|
26
|
-
type
|
|
27
|
-
required
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}`;
|
|
31
|
-
|
|
32
|
-
main();
|
|
33
|
-
|
|
34
|
-
async function main() {
|
|
35
|
-
const { endpoints } = await graphql(QUERY, {
|
|
36
|
-
url: "https://octokit-routes-graphql-server.now.sh/",
|
|
37
|
-
version: process.env.VERSION
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
writeFileSync(
|
|
41
|
-
path.resolve(__dirname, "generated", "endpoints.json"),
|
|
42
|
-
prettier.format(JSON.stringify(endpoints), {
|
|
43
|
-
parser: "json"
|
|
44
|
-
})
|
|
45
|
-
);
|
|
46
|
-
}
|