feat: Add self-hosted runner permission API support by zyfy29 · Pull Request #3675 · google/go-github

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds comprehensive API support for GitHub self-hosted runner permissions management, implementing 8 new endpoints for organization and enterprise level configuration. The changes enable users to manage repository-level self-hosted runner permissions and control which repositories can use self-hosted runners.

  • Adds organization-level endpoints for managing self-hosted runner permissions and repository access
  • Introduces enterprise-level endpoints for controlling organization permissions
  • Implements complete CRUD operations with proper data structures and validation

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
github/actions_permissions_orgs.go Implements 6 organization-level API methods for managing self-hosted runner settings and repository permissions
github/actions_permissions_orgs_test.go Provides comprehensive test coverage for all organization-level self-hosted runner API methods
github/actions_permissions_enterprise.go Adds 2 enterprise-level API methods for getting and setting self-hosted runner permissions
github/actions_permissions_enterprise_test.go Tests enterprise-level self-hosted runner permission methods
github/github-accessors.go Generates accessor methods for the new struct fields
github/github-accessors_test.go Tests the new accessor methods
github/github-stringify_test.go Tests string representation methods for new structs

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.