Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: octokit/plugin-rest-endpoint-methods.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.6.2
Choose a base ref
...
head repository: octokit/plugin-rest-endpoint-methods.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.7.0
Choose a head ref

Commits on Sep 16, 2022

  1. ci(action): update github/codeql-action digest to 904260d (#559)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Sep 16, 2022
    Copy the full SHA
    67f2777 View commit details

Commits on Sep 19, 2022

  1. build(deps): lock file maintenance (#560)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Sep 19, 2022
    Copy the full SHA
    c54849d View commit details

Commits on Sep 20, 2022

  1. ci(action): update actions/cache digest to 1a78ace

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Sep 20, 2022
    Copy the full SHA
    618c525 View commit details

Commits on Sep 21, 2022

  1. ci(action): update github/codeql-action digest to 86f3159 (#562)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Sep 21, 2022
    Copy the full SHA
    088c009 View commit details

Commits on Sep 23, 2022

  1. ci(action): update actions/cache digest to 1268184 (#564)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Sep 23, 2022
    Copy the full SHA
    9dbf082 View commit details

Commits on Sep 26, 2022

  1. build(deps): lock file maintenance

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Sep 26, 2022
    Copy the full SHA
    52ee3f5 View commit details
  2. ci(action): update actions/checkout digest to e6d535c

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Sep 26, 2022
    Copy the full SHA
    1b206d6 View commit details
  3. chore(deps): update dependency sort-keys to v5

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Sep 26, 2022
    Copy the full SHA
    fb49c98 View commit details
  4. Copy the full SHA
    f919bf0 View commit details
  5. ci(test): run update (#569)

    gr2m authored Sep 26, 2022
    Copy the full SHA
    df1d20f View commit details

Commits on Sep 27, 2022

  1. Copy the full SHA
    0d37f85 View commit details
  2. Copy the full SHA
    fdb9610 View commit details
  3. Copy the full SHA
    6f4054f View commit details
  4. Copy the full SHA
    01182a8 View commit details
  5. Copy the full SHA
    0c36316 View commit details
  6. Copy the full SHA
    2f512a9 View commit details
  7. Copy the full SHA
    e893568 View commit details
  8. Copy the full SHA
    05ea2ae View commit details
  9. Copy the full SHA
    5da0f1c View commit details
  10. Copy the full SHA
    3d61e79 View commit details
  11. Copy the full SHA
    174e7f0 View commit details
  12. Copy the full SHA
    073c7f1 View commit details

Commits on Sep 29, 2022

  1. ci: remove obsolete use of actions/cache 2a59e56 (#570)

    Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
    renovate[bot] and gr2m authored Sep 29, 2022
    Copy the full SHA
    9c378ea View commit details

Commits on Oct 3, 2022

  1. build(deps): lock file maintenance (#571)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Oct 3, 2022
    Copy the full SHA
    8426e0e View commit details

Commits on Oct 10, 2022

  1. build(deps): lock file maintenance

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Oct 10, 2022
    Copy the full SHA
    d8a13ad View commit details

Commits on Oct 13, 2022

  1. feat: OpenAPI update (#563)

    Co-authored-by: Gregor Martynus <39992+gr2m@users.noreply.github.com>
    octokitbot and gr2m authored Oct 13, 2022
    Copy the full SHA
    0c5ee74 View commit details
8 changes: 4 additions & 4 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -16,23 +16,23 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
uses: actions/checkout@v3 # tag=v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@6a38b7d4a1af70deb1b561eb77db2b5e5a6a1e69 # tag=v2
uses: github/codeql-action/init@v2 # tag=v2
# Override language selection by uncommenting this and choosing your languages
# with:
# languages: go, javascript, csharp, python, cpp, java

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@6a38b7d4a1af70deb1b561eb77db2b5e5a6a1e69 # tag=v2
uses: github/codeql-action/autobuild@v2 # tag=v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
@@ -46,4 +46,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@6a38b7d4a1af70deb1b561eb77db2b5e5a6a1e69 # tag=v2
uses: github/codeql-action/analyze@v2 # tag=v2
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@ jobs:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
19 changes: 9 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -18,11 +18,11 @@ jobs:
- 16
- 18
steps:
- uses: actions/checkout@master
- name: "Use Node.js ${{ matrix.node_version }}"
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3
with:
node-version: "${{ matrix.node_version }}"
node-version: ${{ matrix.node_version }}
cache: npm
- name: Install
run: npm ci
@@ -36,13 +36,12 @@ jobs:
steps:
- run: exit 1
if: ${{ needs.test_matrix.result != 'success' }}
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- uses: actions/cache@1bc650b06c2f41645e389a1ef9c438dce9a1e338
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
node-version: "lts/*"
cache: npm
- run: npm ci
- run: npm run lint
- run: VERSION=`npm info @octokit/openapi version` npm run update-endpoints
if: ${{ always() }}
4 changes: 2 additions & 2 deletions .github/workflows/update-prettier.yml
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@ jobs:
update_prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: 16
4 changes: 2 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -13,10 +13,10 @@ jobs:
update_routes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3
- uses: actions/checkout@v3
with:
token: ${{ secrets.OCTOKITBOT_PAT }}
- uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # tag=v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
2 changes: 1 addition & 1 deletion docs/activity/listReposStarredByAuthenticatedUser.md
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ type: API method

Lists repositories the authenticated user has starred.

You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header:
You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header: `application/vnd.github.star+json`.

```js
octokit.rest.activity.listReposStarredByAuthenticatedUser();
2 changes: 1 addition & 1 deletion docs/activity/listReposStarredByUser.md
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ type: API method

Lists repositories a user has starred.

You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header:
You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header: `application/vnd.github.star+json`.

```js
octokit.rest.activity.listReposStarredByUser({
2 changes: 1 addition & 1 deletion docs/activity/listStargazersForRepo.md
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ type: API method

Lists the people that have starred the repository.

You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header:
You can also find out _when_ stars were created by passing the following custom [media type](https://docs.github.com/rest/overview/media-types/) via the `Accept` header: `application/vnd.github.star+json`.

```js
octokit.rest.activity.listStargazersForRepo({
60 changes: 60 additions & 0 deletions docs/codeScanning/getCodeqlDatabase.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
name: Get a CodeQL database for a repository
example: octokit.rest.codeScanning.getCodeqlDatabase({ owner, repo, language })
route: GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}
scope: codeScanning
type: API method
---

# Get a CodeQL database for a repository

Gets a CodeQL database for a language in a repository.

By default this endpoint returns JSON metadata about the CodeQL database. To
download the CodeQL database binary content, set the `Accept` header of the request
to [`application/zip`](https://docs.github.com/rest/overview/media-types), and make sure
your HTTP client is configured to follow redirects or use the `Location` header
to make a second request to get the redirect URL.

For private repositories, you must use an access token with the `security_events` scope.
For public repositories, you can use tokens with the `security_events` or `public_repo` scope.
GitHub Apps must have the `contents` read permission to use this endpoint.

```js
octokit.rest.codeScanning.getCodeqlDatabase({
owner,
repo,
language,
});
```

## Parameters

<table>
<thead>
<tr>
<th>name</th>
<th>required</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr><td>owner</td><td>yes</td><td>

The account owner of the repository. The name is not case sensitive.

</td></tr>
<tr><td>repo</td><td>yes</td><td>

The name of the repository. The name is not case sensitive.

</td></tr>
<tr><td>language</td><td>yes</td><td>

The language of the CodeQL database.

</td></tr>
</tbody>
</table>

See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/reference/code-scanning#get-codeql-database).
48 changes: 48 additions & 0 deletions docs/codeScanning/listCodeqlDatabases.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: List CodeQL databases for a repository
example: octokit.rest.codeScanning.listCodeqlDatabases({ owner, repo })
route: GET /repos/{owner}/{repo}/code-scanning/codeql/databases
scope: codeScanning
type: API method
---

# List CodeQL databases for a repository

Lists the CodeQL databases that are available in a repository.

For private repositories, you must use an access token with the `security_events` scope.
For public repositories, you can use tokens with the `security_events` or `public_repo` scope.
GitHub Apps must have the `contents` read permission to use this endpoint.

```js
octokit.rest.codeScanning.listCodeqlDatabases({
owner,
repo,
});
```

## Parameters

<table>
<thead>
<tr>
<th>name</th>
<th>required</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr><td>owner</td><td>yes</td><td>

The account owner of the repository. The name is not case sensitive.

</td></tr>
<tr><td>repo</td><td>yes</td><td>

The name of the repository. The name is not case sensitive.

</td></tr>
</tbody>
</table>

See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/reference/code-scanning#list-codeql-databases).
48 changes: 48 additions & 0 deletions docs/codespaces/addSelectedRepoToOrgSecret.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: Add selected repository to an organization secret
example: octokit.rest.codespaces.addSelectedRepoToOrgSecret({ org, secret_name, repository_id })
route: PUT /organizations/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}
scope: codespaces
type: API method
---

# Add selected repository to an organization secret

Adds a repository to an organization secret when the `visibility` for repository access is set to `selected`. The visibility is set when you [Create or update an organization secret](https://docs.github.com/rest/reference/codespaces#create-or-update-an-organization-secret). You must authenticate using an access token with the `admin:org` scope to use this endpoint.

```js
octokit.rest.codespaces.addSelectedRepoToOrgSecret({
org,
secret_name,
repository_id,
});
```

## Parameters

<table>
<thead>
<tr>
<th>name</th>
<th>required</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr><td>org</td><td>yes</td><td>

The organization name. The name is not case sensitive.

</td></tr>
<tr><td>secret_name</td><td>yes</td><td>

The name of the secret.

</td></tr>
<tr><td>repository_id</td><td>yes</td><td>

</td></tr>
</tbody>
</table>

See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/reference/codespaces#add-selected-repository-to-an-organization-secret).
Loading