@octokit/types 2.0.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/src/index.ts CHANGED
@@ -1,18 +1,18 @@
1
- export { AuthInterface } from "./AuthInterface";
2
- export { EndpointDefaults } from "./EndpointDefaults";
3
- export { EndpointInterface } from "./EndpointInterface";
4
- export { EndpointOptions } from "./EndpointOptions";
5
- export { Fetch } from "./Fetch";
6
- export { OctokitResponse } from "./OctokitResponse";
7
- export { RequestHeaders } from "./RequestHeaders";
8
- export { RequestInterface } from "./RequestInterface";
9
- export { RequestMethod } from "./RequestMethod";
10
- export { RequestOptions } from "./RequestOptions";
11
- export { RequestParameters } from "./RequestParameters";
12
- export { RequestRequestOptions } from "./RequestRequestOptions";
13
- export { ResponseHeaders } from "./ResponseHeaders";
14
- export { Route } from "./Route";
15
- export { Signal } from "./Signal";
16
- export { StrategyInterface } from "./StrategyInterface";
17
- export { Url } from "./Url";
18
- export { VERSION } from "./VERSION";
1
+ export * from "./AuthInterface";
2
+ export * from "./EndpointDefaults";
3
+ export * from "./EndpointInterface";
4
+ export * from "./EndpointOptions";
5
+ export * from "./Fetch";
6
+ export * from "./OctokitResponse";
7
+ export * from "./RequestHeaders";
8
+ export * from "./RequestInterface";
9
+ export * from "./RequestMethod";
10
+ export * from "./RequestOptions";
11
+ export * from "./RequestParameters";
12
+ export * from "./RequestRequestOptions";
13
+ export * from "./ResponseHeaders";
14
+ export * from "./Route";
15
+ export * from "./Signal";
16
+ export * from "./StrategyInterface";
17
+ export * from "./Url";
18
+ export * from "./VERSION";
@@ -1,5 +0,0 @@
1
- ---
2
- name: "πŸ†˜ Help"
3
- about: "How does this even work πŸ€·β€β™‚οΈ"
4
- labels: support
5
- ---
@@ -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,25 +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
- - uses: maxheld83/ghpages@master
23
- env:
24
- BUILD_DIR: docs/
25
- GH_PAT: ${{ secrets.OCTOKIT_PAT }}
@@ -1,37 +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
- - name: Create Pull Request
19
- uses: gr2m/create-or-update-pull-request-action@v1.x
20
- env:
21
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22
- with:
23
- title: "🚧 GitHub REST Endpoints changed"
24
- body: |
25
- See what changed at https://github.com/octokit/routes/releases/latest.
26
-
27
- 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).
28
-
29
- In general
30
-
31
- - Avoid breaking changes at all costs
32
- - If there are no typescript or code changes, use a `docs` prefix
33
- - If there are typescript changes but no code changes, use `fix(typescript)` prefix
34
- - 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.
35
- branch: "routes-update"
36
- commit-message: "WIP octokit/routes updated"
37
- 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
@@ -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,41 +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
- const QUERY = `
8
- {
9
- endpoints {
10
- name
11
- scope(format: CAMELCASE)
12
- id(format: CAMELCASE)
13
- method
14
- url
15
- parameters {
16
- alias
17
- allowNull
18
- deprecated
19
- description
20
- enum
21
- name
22
- type
23
- required
24
- }
25
- }
26
- }`;
27
-
28
- main();
29
-
30
- async function main() {
31
- const { endpoints } = await graphql(QUERY, {
32
- url: "https://octokit-routes-graphql-server.now.sh/"
33
- });
34
-
35
- writeFileSync(
36
- path.resolve(__dirname, "generated", "endpoints.json"),
37
- prettier.format(JSON.stringify(endpoints), {
38
- parser: "json"
39
- })
40
- );
41
- }
@@ -1,3 +0,0 @@
1
- # DO NOT EDIT FILES IN THIS DIRECTORY
2
-
3
- All files are generated automatically and will be overwritten next time [octokit/routes](https://github.com/octokit/routes/) has a new release. If you find a problem, please file an issue.