Skip to content

Fix github repository setup to correctly detect and configure required checks#1753

Open
TheoBrigitte wants to merge 3 commits intomainfrom
repo-setup
Open

Fix github repository setup to correctly detect and configure required checks#1753
TheoBrigitte wants to merge 3 commits intomainfrom
repo-setup

Conversation

@TheoBrigitte
Copy link
Copy Markdown
Member

@TheoBrigitte TheoBrigitte commented Apr 14, 2026

This PR fixes an issue where the devctl repo setup command was not correctly configuring required check on the default branch.

Summary

  • Switch from GetCombinedStatus to ListCheckRunsForRef API to correctly detect required status checks when configuring branch protection
  • Change default --checks-filter from aliyun to create-release to exclude the release workflow from required checks

Tests

I've managed to configure checks on the a repo using devctl repo setup giantswarm/some-repo--log-level debug

Before

image

After

image

@TheoBrigitte TheoBrigitte requested a review from a team as a code owner April 14, 2026 16:54
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.

1 participant