Skip to content

feat: Add support for Issue Types API #3525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Mar 20, 2025
Merged
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
ff58ec2
feat(actions): add support for GitHub-hosted runner API endpoints
atilsensalduz Feb 20, 2025
b2f14c8
feat(actions): add support for GitHub-hosted runner API endpoints
atilsensalduz Feb 20, 2025
5da58b1
feat(actions): add support for GitHub-hosted runner API endpoints
atilsensalduz Feb 21, 2025
0b1dc04
feat(actions): add support for GitHub-hosted runner API endpoints
atilsensalduz Feb 21, 2025
f4ab50f
feat(actions): add support for GitHub-hosted runner API endpoints
atilsensalduz Feb 21, 2025
9b50e82
feat(actions): add support for GitHub-hosted runner API endpoints
atilsensalduz Feb 21, 2025
4f5c3ec
feat(actions): add support for GitHub-hosted runner API endpoints
atilsensalduz Feb 21, 2025
6ecf469
feat: Refactor hosted runner request handling: Use shared struct and …
atilsensalduz Feb 25, 2025
5167f45
feat: Refactor hosted runner request handling: Use shared struct and …
atilsensalduz Feb 25, 2025
65910b7
feat: Refactor hosted runner request handling: Use shared struct and …
atilsensalduz Feb 25, 2025
22d4aba
refactor: improve error handling by preserving the original error con…
atilsensalduz Feb 26, 2025
a2199bb
refactor: improve error handling by preserving the original error con…
atilsensalduz Feb 26, 2025
69acb87
Merge branch 'google:master' into master
atilsensalduz Mar 19, 2025
56f4c18
feat: add support for Issue Types API
atilsensalduz Mar 20, 2025
cca495e
feat: add support for Issue Types API
atilsensalduz Mar 20, 2025
15b891e
feat: add support for Issue Types API
atilsensalduz Mar 20, 2025
f605f76
feat: add support for Issue Types API
atilsensalduz Mar 20, 2025
72f1988
Merge branch 'master' into add-issue-type
atilsensalduz Mar 20, 2025
d39244c
feat: add support for Issue Types API
atilsensalduz Mar 20, 2025
8a6fa7d
feat: add support for Issue Types API
atilsensalduz Mar 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: Refactor hosted runner request handling: Use shared struct and …
…add validation

Unified the CreateHostedRunnerRequest and UpdateHostedRunnerRequest into a single HostedRunnerRequest struct.
Added validation functions for HostedRunnerRequest.

Signed-off-by: atilsensalduz <[email protected]>
  • Loading branch information
atilsensalduz committed Feb 25, 2025
commit 5167f4531636caa07a95d8aa30d29320a2415ad0
6 changes: 6 additions & 0 deletions github/actions_hosted_runners.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,12 @@ func (s *ActionsService) GetHostedRunner(ctx context.Context, org string, runner
return hostedRunner, resp, nil
}

// validateUpdateHostedRunnerRequest validates the provided HostedRunnerRequest to ensure
// that no disallowed updates are made for a hosted runner update request.
//
// If any of these conditions are violated, an appropriate error message is returned.
// Otherwise, nil is returned, indicating the request is valid for an update.

func validateUpdateHostedRunnerRequest(request *HostedRunnerRequest) error {
if request.Size != "" {
return errors.New("size cannot be updated, API does not support updating size")
Expand Down