@@ -26,7 +26,7 @@ type ActionsEnabledOnOrgRepos struct {
26
26
27
27
// ListRunnerApplicationDownloads lists self-hosted runner application binaries that can be downloaded and run.
28
28
//
29
- // GitHub API docs: https://docs.github.com/en/rest/reference/actions/#list-runner-applications-for-a-repository
29
+ // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/ rest/reference/actions/#list-runner-applications-for-a-repository
30
30
func (s * ActionsService ) ListRunnerApplicationDownloads (ctx context.Context , owner , repo string ) ([]* RunnerApplicationDownload , * Response , error ) {
31
31
u := fmt .Sprintf ("repos/%v/%v/actions/runners/downloads" , owner , repo )
32
32
req , err := s .client .NewRequest ("GET" , u , nil )
@@ -51,7 +51,7 @@ type RegistrationToken struct {
51
51
52
52
// CreateRegistrationToken creates a token that can be used to add a self-hosted runner.
53
53
//
54
- // GitHub API docs: https://docs.github.com/en/rest/reference/actions/#create-a-registration-token-for-a-repository
54
+ // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/ rest/reference/actions/#create-a-registration-token-for-a-repository
55
55
func (s * ActionsService ) CreateRegistrationToken (ctx context.Context , owner , repo string ) (* RegistrationToken , * Response , error ) {
56
56
u := fmt .Sprintf ("repos/%v/%v/actions/runners/registration-token" , owner , repo )
57
57
@@ -94,7 +94,7 @@ type Runners struct {
94
94
95
95
// ListRunners lists all the self-hosted runners for a repository.
96
96
//
97
- // GitHub API docs: https://docs.github.com/en/rest/reference/actions/#list-self-hosted-runners-for-a-repository
97
+ // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/ rest/reference/actions/#list-self-hosted-runners-for-a-repository
98
98
func (s * ActionsService ) ListRunners (ctx context.Context , owner , repo string , opts * ListOptions ) (* Runners , * Response , error ) {
99
99
u := fmt .Sprintf ("repos/%v/%v/actions/runners" , owner , repo )
100
100
u , err := addOptions (u , opts )
@@ -118,7 +118,7 @@ func (s *ActionsService) ListRunners(ctx context.Context, owner, repo string, op
118
118
119
119
// GetRunner gets a specific self-hosted runner for a repository using its runner ID.
120
120
//
121
- // GitHub API docs: https://docs.github.com/en/rest/reference/actions/#get-a-self-hosted-runner-for-a-repository
121
+ // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/ rest/reference/actions/#get-a-self-hosted-runner-for-a-repository
122
122
func (s * ActionsService ) GetRunner (ctx context.Context , owner , repo string , runnerID int64 ) (* Runner , * Response , error ) {
123
123
u := fmt .Sprintf ("repos/%v/%v/actions/runners/%v" , owner , repo , runnerID )
124
124
req , err := s .client .NewRequest ("GET" , u , nil )
@@ -143,7 +143,7 @@ type RemoveToken struct {
143
143
144
144
// CreateRemoveToken creates a token that can be used to remove a self-hosted runner from a repository.
145
145
//
146
- // GitHub API docs: https://docs.github.com/en/rest/reference/actions/#create-a-remove-token-for-a-repository
146
+ // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/ rest/reference/actions/#create-a-remove-token-for-a-repository
147
147
func (s * ActionsService ) CreateRemoveToken (ctx context.Context , owner , repo string ) (* RemoveToken , * Response , error ) {
148
148
u := fmt .Sprintf ("repos/%v/%v/actions/runners/remove-token" , owner , repo )
149
149
@@ -163,7 +163,7 @@ func (s *ActionsService) CreateRemoveToken(ctx context.Context, owner, repo stri
163
163
164
164
// RemoveRunner forces the removal of a self-hosted runner in a repository using the runner id.
165
165
//
166
- // GitHub API docs: https://docs.github.com/en/rest/reference/actions/#delete-a-self-hosted-runner-from-a-repository
166
+ // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/ rest/reference/actions/#delete-a-self-hosted-runner-from-a-repository
167
167
func (s * ActionsService ) RemoveRunner (ctx context.Context , owner , repo string , runnerID int64 ) (* Response , error ) {
168
168
u := fmt .Sprintf ("repos/%v/%v/actions/runners/%v" , owner , repo , runnerID )
169
169
@@ -177,7 +177,7 @@ func (s *ActionsService) RemoveRunner(ctx context.Context, owner, repo string, r
177
177
178
178
// ListOrganizationRunnerApplicationDownloads lists self-hosted runner application binaries that can be downloaded and run.
179
179
//
180
- // GitHub API docs: https://docs.github.com/en/rest/reference/actions/#list-runner-applications-for-an-organization
180
+ // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/ rest/reference/actions/#list-runner-applications-for-an-organization
181
181
func (s * ActionsService ) ListOrganizationRunnerApplicationDownloads (ctx context.Context , owner string ) ([]* RunnerApplicationDownload , * Response , error ) {
182
182
u := fmt .Sprintf ("orgs/%v/actions/runners/downloads" , owner )
183
183
req , err := s .client .NewRequest ("GET" , u , nil )
@@ -196,7 +196,7 @@ func (s *ActionsService) ListOrganizationRunnerApplicationDownloads(ctx context.
196
196
197
197
// CreateOrganizationRegistrationToken creates a token that can be used to add a self-hosted runner to an organization.
198
198
//
199
- // GitHub API docs: https://docs.github.com/en/rest/reference/actions/#create-a-registration-token-for-an-organization
199
+ // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/ rest/reference/actions/#create-a-registration-token-for-an-organization
200
200
func (s * ActionsService ) CreateOrganizationRegistrationToken (ctx context.Context , owner string ) (* RegistrationToken , * Response , error ) {
201
201
u := fmt .Sprintf ("orgs/%v/actions/runners/registration-token" , owner )
202
202
@@ -216,7 +216,7 @@ func (s *ActionsService) CreateOrganizationRegistrationToken(ctx context.Context
216
216
217
217
// ListOrganizationRunners lists all the self-hosted runners for an organization.
218
218
//
219
- // GitHub API docs: https://docs.github.com/en/rest/reference/actions/#list-self-hosted-runners-for-an-organization
219
+ // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/ rest/reference/actions/#list-self-hosted-runners-for-an-organization
220
220
func (s * ActionsService ) ListOrganizationRunners (ctx context.Context , owner string , opts * ListOptions ) (* Runners , * Response , error ) {
221
221
u := fmt .Sprintf ("orgs/%v/actions/runners" , owner )
222
222
u , err := addOptions (u , opts )
@@ -240,7 +240,7 @@ func (s *ActionsService) ListOrganizationRunners(ctx context.Context, owner stri
240
240
241
241
// ListEnabledReposInOrg lists the selected repositories that are enabled for GitHub Actions in an organization.
242
242
//
243
- // GitHub API docs: https://docs.github.com/en/rest/reference/actions#list-selected-repositories-enabled-for-github-actions-in-an-organization
243
+ // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/ rest/reference/actions/ #list-selected-repositories-enabled-for-github-actions-in-an-organization
244
244
func (s * ActionsService ) ListEnabledReposInOrg (ctx context.Context , owner string , opts * ListOptions ) (* ActionsEnabledOnOrgRepos , * Response , error ) {
245
245
u := fmt .Sprintf ("orgs/%v/actions/permissions/repositories" , owner )
246
246
u , err := addOptions (u , opts )
@@ -264,7 +264,7 @@ func (s *ActionsService) ListEnabledReposInOrg(ctx context.Context, owner string
264
264
265
265
// GetOrganizationRunner gets a specific self-hosted runner for an organization using its runner ID.
266
266
//
267
- // GitHub API docs: https://docs.github.com/en/rest/reference/actions/#get-a-self-hosted-runner-for-an-organization
267
+ // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/ rest/reference/actions/#get-a-self-hosted-runner-for-an-organization
268
268
func (s * ActionsService ) GetOrganizationRunner (ctx context.Context , owner string , runnerID int64 ) (* Runner , * Response , error ) {
269
269
u := fmt .Sprintf ("orgs/%v/actions/runners/%v" , owner , runnerID )
270
270
req , err := s .client .NewRequest ("GET" , u , nil )
@@ -283,7 +283,7 @@ func (s *ActionsService) GetOrganizationRunner(ctx context.Context, owner string
283
283
284
284
// CreateOrganizationRemoveToken creates a token that can be used to remove a self-hosted runner from an organization.
285
285
//
286
- // GitHub API docs: https://docs.github.com/en/rest/reference/actions/#create-a-remove-token-for-an-organization
286
+ // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/ rest/reference/actions/#create-a-remove-token-for-an-organization
287
287
func (s * ActionsService ) CreateOrganizationRemoveToken (ctx context.Context , owner string ) (* RemoveToken , * Response , error ) {
288
288
u := fmt .Sprintf ("orgs/%v/actions/runners/remove-token" , owner )
289
289
@@ -303,7 +303,7 @@ func (s *ActionsService) CreateOrganizationRemoveToken(ctx context.Context, owne
303
303
304
304
// RemoveOrganizationRunner forces the removal of a self-hosted runner from an organization using the runner id.
305
305
//
306
- // GitHub API docs: https://docs.github.com/en/rest/reference/actions/#delete-a-self-hosted-runner-from-an-organization
306
+ // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/ rest/reference/actions/#delete-a-self-hosted-runner-from-an-organization
307
307
func (s * ActionsService ) RemoveOrganizationRunner (ctx context.Context , owner string , runnerID int64 ) (* Response , error ) {
308
308
u := fmt .Sprintf ("orgs/%v/actions/runners/%v" , owner , runnerID )
309
309
0 commit comments