Skip to content

Commit a9847d9

Browse files
committed
Merge branch 'main' into cjs
2 parents 99baedc + 376f250 commit a9847d9

File tree

308 files changed

+15451
-4990
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

308 files changed

+15451
-4990
lines changed

.github/workflows/add_to_octokit_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
continue-on-error: true
1414
steps:
15-
- uses: actions/[email protected].1
15+
- uses: actions/[email protected].2
1616
with:
1717
project-url: https://github.com/orgs/octokit/projects/10
1818
github-token: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN }}

.github/workflows/immediate-response.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ jobs:
2525
body: >
2626
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday!
2727
We have a [process in place](https://github.com/octokit/.github/blob/main/community/prioritization_response.md#overview) for prioritizing and responding to your input.
28-
Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with `Status: Up for grabs`.
28+
Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with `Status: Up for grabs`.
2929
You & others like you are the reason all of this works! So thank you & happy coding! 🚀

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
node_version:
1717
- 18
1818
- 20
19+
- 22
1920
steps:
2021
- uses: actions/checkout@v4
2122
- name: Use Node.js ${{ matrix.node_version }}
@@ -43,4 +44,5 @@ jobs:
4344
- run: npm ci
4445
- run: npm run lint
4546
- run: VERSION=`npm info @octokit/openapi version` npm run update-endpoints
47+
- run: npm run build
4648
if: ${{ always() }}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
name: Add repository access to a self-hosted runner group in an organization
3+
example: octokit.rest.actions.addRepoAccessToSelfHostedRunnerGroupInOrg({ org, runner_group_id, repository_id })
4+
route: PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}
5+
scope: actions
6+
type: API method
7+
---
8+
9+
# Add repository access to a self-hosted runner group in an organization
10+
11+
Adds a repository to the list of repositories that can access a self-hosted runner group. The runner group must have `visibility` set to `selected`. For more information, see "[Create a self-hosted runner group for an organization](#create-a-self-hosted-runner-group-for-an-organization)."
12+
13+
OAuth tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
14+
15+
```js
16+
octokit.rest.actions.addRepoAccessToSelfHostedRunnerGroupInOrg({
17+
org,
18+
runner_group_id,
19+
repository_id,
20+
});
21+
```
22+
23+
## Parameters
24+
25+
<table>
26+
<thead>
27+
<tr>
28+
<th>name</th>
29+
<th>required</th>
30+
<th>description</th>
31+
</tr>
32+
</thead>
33+
<tbody>
34+
<tr><td>org</td><td>yes</td><td>
35+
36+
The organization name. The name is not case sensitive.
37+
38+
</td></tr>
39+
<tr><td>runner_group_id</td><td>yes</td><td>
40+
41+
Unique identifier of the self-hosted runner group.
42+
43+
</td></tr>
44+
<tr><td>repository_id</td><td>yes</td><td>
45+
46+
The unique identifier of the repository.
47+
48+
</td></tr>
49+
</tbody>
50+
</table>
51+
52+
See also: [GitHub Developer Guide documentation](https://docs.github.com/rest/actions/self-hosted-runner-groups#add-repository-access-to-a-self-hosted-runner-group-in-an-organization).

docs/actions/listWorkflowRuns.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Anyone with read access to the repository can use this endpoint
1414

1515
OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
1616

17+
This endpoint will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`.
18+
1719
```js
1820
octokit.rest.actions.listWorkflowRuns({
1921
owner,

docs/actions/listWorkflowRunsForRepo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Anyone with read access to the repository can use this endpoint.
1414

1515
OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
1616

17-
This API will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`.
17+
This endpoint will return up to 1,000 results for each search when using the following parameters: `actor`, `branch`, `check_suite_id`, `created`, `event`, `head_sha`, `status`.
1818

1919
```js
2020
octokit.rest.actions.listWorkflowRunsForRepo({

docs/actions/reviewCustomGatesForRun.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ type: API method
1010

1111
Approve or reject custom deployment protection rules provided by a GitHub App for a workflow run. For more information, see "[Using environments for deployment](https://docs.github.com/actions/deployment/targeting-different-environments/using-environments-for-deployment)."
1212

13-
**Note:** GitHub Apps can only review their own custom deployment protection rules.
14-
To approve or reject pending deployments that are waiting for review from a specific person or team, see [`POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments`](/rest/actions/workflow-runs#review-pending-deployments-for-a-workflow-run).
13+
> [!NOTE]
14+
> GitHub Apps can only review their own custom deployment protection rules. To approve or reject pending deployments that are waiting for review from a specific person or team, see [`POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments`](/rest/actions/workflow-runs#review-pending-deployments-for-a-workflow-run).
1515
1616
OAuth app tokens and personal access tokens (classic) need the `repo` scope to use this endpoint with a private repository.
1717

docs/actions/setAllowedActionsOrganization.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ Whether actions from GitHub Marketplace verified creators are allowed. Set to `t
4848

4949
Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.
5050

51-
**Note**: The `patterns_allowed` setting only applies to public repositories.
51+
> [!NOTE]
52+
> The `patterns_allowed` setting only applies to public repositories.
5253
5354
</td></tr>
5455
</tbody>

docs/actions/setAllowedActionsRepository.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ Whether actions from GitHub Marketplace verified creators are allowed. Set to `t
5454

5555
Specifies a list of string-matching patterns to allow specific action(s) and reusable workflow(s). Wildcards, tags, and SHAs are allowed. For example, `monalisa/octocat@*`, `monalisa/octocat@v2`, `monalisa/*`.
5656

57-
**Note**: The `patterns_allowed` setting only applies to public repositories.
57+
> [!NOTE]
58+
> The `patterns_allowed` setting only applies to public repositories.
5859
5960
</td></tr>
6061
</tbody>

docs/activity/getFeeds.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ Lists the feeds available to the authenticated user. The response provides a URL
2020

2121
By default, timeline resources are returned in JSON. You can specify the `application/atom+xml` type in the `Accept` header to return timeline resources in Atom format. For more information, see "[Media types](https://docs.github.com/rest/using-the-rest-api/getting-started-with-the-rest-api#media-types)."
2222

23-
**Note**: Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/rest/overview/other-authentication-methods#basic-authentication) since current feed URIs use the older, non revocable auth tokens.
23+
> [!NOTE]
24+
> Private feeds are only returned when [authenticating via Basic Auth](https://docs.github.com/rest/authentication/authenticating-to-the-rest-api#using-basic-authentication) since current feed URIs use the older, non revocable auth tokens.
2425
2526
```js
2627
octokit.rest.activity.getFeeds();

0 commit comments

Comments
 (0)