+
Skip to content

Conversation

zyfy29
Copy link
Contributor

@zyfy29 zyfy29 commented Aug 13, 2025

2nd Pull Request for #3660

Add support for the "Setting which repositories can create repository-level self-hosted runners" APIs, covering 8 endpoints.

@Copilot Copilot AI review requested due to automatic review settings August 13, 2025 00:03
Copy link

@Copilot Copilot AI left a comment

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.

@zyfy29 zyfy29 force-pushed the add-self-hosted-runner-permission-api branch from f6143da to 287224e Compare August 13, 2025 00:10
Copy link

codecov bot commented Aug 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.28%. Comparing base (1d65094) to head (287224e).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3675      +/-   ##
==========================================
+ Coverage   91.23%   91.28%   +0.04%     
==========================================
  Files         185      185              
  Lines       16421    16511      +90     
==========================================
+ Hits        14982    15072      +90     
  Misses       1254     1254              
  Partials      185      185              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gmlewis gmlewis added the NeedsReview PR is awaiting a review before merging. label Aug 13, 2025
Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @zyfy29!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.

@alexandear or @stevehipwell - might either of you have time for a code review? Thank you!

Copy link
Contributor

@stevehipwell stevehipwell left a comment

Choose a reason for hiding this comment

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

LGTM

@gmlewis gmlewis removed the NeedsReview PR is awaiting a review before merging. label Aug 14, 2025
@gmlewis
Copy link
Collaborator

gmlewis commented Aug 14, 2025

Thank you, @stevehipwell!
Merging.

@gmlewis gmlewis merged commit 54d257b into google:master Aug 14, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载