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: v5.15.0
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: v5.16.0
Choose a head ref
  • 11 commits
  • 22 files changed
  • 5 contributors

Commits on Jun 20, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    088946b View commit details

Commits on Jun 22, 2022

  1. build(deps): bump shell-quote from 1.7.2 to 1.7.3

    Bumps [shell-quote](https://github.com/substack/node-shell-quote) from 1.7.2 to 1.7.3.
    - [Release notes](https://github.com/substack/node-shell-quote/releases)
    - [Changelog](https://github.com/substack/node-shell-quote/blob/master/CHANGELOG.md)
    - [Commits](https://github.com/substack/node-shell-quote/compare/v1.7.2...1.7.3)
    
    ---
    updated-dependencies:
    - dependency-name: shell-quote
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 22, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4b7c493 View commit details

Commits on Jun 24, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    cd18e24 View commit details
  2. build(dev-deps): remove semantic-release (#483)

    Co-authored-by: wolfy1339 <webmaster@wolfy1339.com>
    dependabot[bot] and wolfy1339 authored Jun 24, 2022

    Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    ef6b85d View commit details

Commits on Jun 25, 2022

  1. chore(deps): update dependency prettier to v2.7.1 (#494)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jun 25, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4af15c4 View commit details
  2. chore(deps): update dependency @types/node to v16 (#495)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jun 25, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    279a81b View commit details
  3. chore(deps): update dependency github-openapi-graphql-query to v2 (#496)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jun 25, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    2d4f769 View commit details
  4. ci(action): update actions/setup-node action to v3 (#499)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jun 25, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c867c0d View commit details
  5. ci(action): update actions/checkout action to v3 (#498)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jun 25, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c91d1ec View commit details
  6. ci(action): update github/codeql-action action to v2 (#501)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jun 25, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ea08552 View commit details

Commits on Jun 28, 2022

  1. feat: add support for 11 new APIs, plus `POST /repos/{owner}/{repo}/d…

    …ependency-graph/snapshots` which was missing from this package (#502)
    
    feat: `PUT /enterprises/{enterprise}/actions/oidc/customization/issuer`
    
    feat: `GET /orgs/{org_id}/codespaces`
    
    feat: `POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop`
    
    feat: `GET /orgs/{org}/actions/oidc/customization/sub`
    
    feat: `PUT /orgs/{org}/actions/oidc/customization/sub`
    
    feat: `DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}`
    
    feat: `GET /repos/{owner}/{repo}/actions/caches`
    
    feat:  `DELETE /repos/{owner}/{repo}/actions/caches`
    
    feat: `DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}`
    
    feat: `GET /repos/{owner}/{repo}/actions/oidc/customization/sub`
    
    feat: `PUT /repos/{owner}/{repo}/actions/oidc/customization/sub`
    
    feat `POST /repos/{owner}/{repo}/dependency-graph/snapshots`
    octokitbot authored Jun 28, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6397ec7 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@v2
uses: actions/checkout@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@v1
uses: github/codeql-action/init@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@v1
uses: github/codeql-action/autobuild@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@v1
uses: github/codeql-action/analyze@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@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@master
- name: "Use Node.js ${{ matrix.node_version }}"
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: "${{ matrix.node_version }}"
cache: npm
2 changes: 1 addition & 1 deletion .github/workflows/update-prettier.yml
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v2
- 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@v2
- uses: actions/checkout@v3
with:
token: ${{ secrets.OCTOKITBOT_PAT }}
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: 16
cache: npm
54 changes: 54 additions & 0 deletions docs/actions/deleteActionsCacheById.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
name: Delete a GitHub Actions cache for a repository (using a cache ID)
example: octokit.rest.actions.deleteActionsCacheById({ owner, repo, cache_id })
route: DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}
scope: actions
type: API method
---

# Delete a GitHub Actions cache for a repository (using a cache ID)

Deletes a GitHub Actions cache for a repository, using a cache ID.

You must authenticate using an access token with the `repo` scope to use this endpoint.

GitHub Apps must have the `actions:write` permission to use this endpoint.

```js
octokit.rest.actions.deleteActionsCacheById({
owner,
repo,
cache_id,
});
```

## 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>cache_id</td><td>yes</td><td>

The unique identifier of the GitHub Actions cache.

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

See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/actions/cache#delete-a-github-actions-cache-for-a-repository-using-a-cache-id).
59 changes: 59 additions & 0 deletions docs/actions/deleteActionsCacheByKey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
---
name: Delete GitHub Actions caches for a repository (using a cache key)
example: octokit.rest.actions.deleteActionsCacheByKey({ owner, repo, key })
route: DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}
scope: actions
type: API method
---

# Delete GitHub Actions caches for a repository (using a cache key)

Deletes one or more GitHub Actions caches for a repository, using a complete cache key. By default, all caches that match the provided key are deleted, but you can optionally provide a Git ref to restrict deletions to caches that match both the provided key and the Git ref.

You must authenticate using an access token with the `repo` scope to use this endpoint.

GitHub Apps must have the `actions:write` permission to use this endpoint.

```js
octokit.rest.actions.deleteActionsCacheByKey({
owner,
repo,
key,
});
```

## 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>key</td><td>yes</td><td>

A key for identifying the cache.

</td></tr>
<tr><td>ref</td><td>no</td><td>

The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/<branch name>` or simply `<branch name>`. To reference a pull request use `refs/pull/<number>/merge`.

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

See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/actions/cache#delete-github-actions-caches-for-a-repository-using-a-cache-key).
76 changes: 76 additions & 0 deletions docs/actions/getActionsCacheList.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
name: List GitHub Actions caches for a repository
example: octokit.rest.actions.getActionsCacheList({ owner, repo })
route: GET /repos/{owner}/{repo}/actions/caches
scope: actions
type: API method
---

# List GitHub Actions caches for a repository

Lists the GitHub Actions caches for a repository.
You must authenticate using an access token with the `repo` scope to use this endpoint.
GitHub Apps must have the `actions:read` permission to use this endpoint.

```js
octokit.rest.actions.getActionsCacheList({
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>
<tr><td>per_page</td><td>no</td><td>

The number of results per page (max 100).

</td></tr>
<tr><td>page</td><td>no</td><td>

Page number of the results to fetch.

</td></tr>
<tr><td>ref</td><td>no</td><td>

The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/<branch name>` or simply `<branch name>`. To reference a pull request use `refs/pull/<number>/merge`.

</td></tr>
<tr><td>key</td><td>no</td><td>

An explicit key or prefix for identifying the cache

</td></tr>
<tr><td>sort</td><td>no</td><td>

The property to sort the results by. `created_at` means when the cache was created. `last_accessed_at` means when the cache was last accessed. `size_in_bytes` is the size of the cache in bytes.

</td></tr>
<tr><td>direction</td><td>no</td><td>

The direction to sort the results by.

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

See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/actions/cache#list-github-actions-caches-for-a-repository).
45 changes: 45 additions & 0 deletions docs/actions/setActionsOidcCustomIssuerPolicyForEnterprise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: Set the GitHub Actions OIDC custom issuer policy for an enterprise
example: octokit.rest.actions.setActionsOidcCustomIssuerPolicyForEnterprise({ enterprise })
route: PUT /enterprises/{enterprise}/actions/oidc/customization/issuer
scope: actions
type: API method
---

# Set the GitHub Actions OIDC custom issuer policy for an enterprise

Sets the GitHub Actions OpenID Connect (OIDC) custom issuer policy for an enterprise.
You must authenticate using an access token with the `admin:enterprise` scope to use this endpoint.
GitHub Apps must have the `enterprise_administration:write` permission to use this endpoint.

```js
octokit.rest.actions.setActionsOidcCustomIssuerPolicyForEnterprise({
enterprise,
});
```

## Parameters

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

The slug version of the enterprise name. You can also substitute this value with the enterprise id.

</td></tr>
<tr><td>include_enterprise_slug</td><td>no</td><td>

Whether the enterprise customer requested a custom issuer URL.

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

See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/reference/actions/oidc#set-actions-oidc-custom-issuer-policy-for-enterprise).
5 changes: 5 additions & 0 deletions docs/codespaces/createForAuthenticatedUser.md
Original file line number Diff line number Diff line change
@@ -85,6 +85,11 @@ Time in minutes before codespace stops from inactivity

Display name for this codespace

</td></tr>
<tr><td>retention_period_minutes</td><td>no</td><td>

Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).

</td></tr>
<tr><td>pull_request</td><td>yes</td><td>

5 changes: 5 additions & 0 deletions docs/codespaces/createWithPrForAuthenticatedUser.md
Original file line number Diff line number Diff line change
@@ -87,6 +87,11 @@ Time in minutes before codespace stops from inactivity

Display name for this codespace

</td></tr>
<tr><td>retention_period_minutes</td><td>no</td><td>

Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).

</td></tr>
</tbody>
</table>
5 changes: 5 additions & 0 deletions docs/codespaces/createWithRepoForAuthenticatedUser.md
Original file line number Diff line number Diff line change
@@ -86,6 +86,11 @@ Time in minutes before codespace stops from inactivity

Display name for this codespace

</td></tr>
<tr><td>retention_period_minutes</td><td>no</td><td>

Duration in minutes after codespace has gone idle in which it will be deleted. Must be integer minutes between 0 and 43200 (30 days).

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