Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

mbg
Copy link
Member

@mbg mbg commented Sep 8, 2025

Since changes are typically introduced by PRs and all required PR checks need to pass before a PR can be merged, the update-required-checks.sh script likely needs to be run from the HEAD of a PR branch if the PR removes any checks or changes their names. This PR updates the relevant documentation so that there's less emphasis on running the script against main.

Risk assessment

For internal use only. Please select the risk level of this change:

  • Low risk: Changes are fully under feature flags, or have been fully tested and validated in pre-production environments and are highly observable, or are documentation or test only.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Consider adding a changelog entry for this change.
  • Confirm the readme and docs have been updated if necessary.

@mbg mbg requested a review from a team as a code owner September 8, 2025 16:38
@mbg mbg requested review from Copilot and henrymercer and removed request for a team September 8, 2025 16:38
Copy link
Contributor

@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 PR improves the documentation for the update-required-checks.sh script to clarify when the script should be run against a PR branch rather than the main branch. The changes reduce emphasis on running the script against main and provide clearer guidance for scenarios where PR branches should be used instead.

Key changes:

  • Clarifies that the script should be run from a PR branch when that PR adds/removes checks
  • Restructures documentation to better explain the script's flexibility with commit SHA arguments
  • Removes outdated comment that emphasized main as the typical usage

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
CONTRIBUTING.md Updated documentation to clarify script usage patterns and provide better guidance on when to use PR branches vs main
.github/workflows/script/update-required-checks.sh Removed comment that emphasized main branch as typical usage

Copy link
Contributor

@henrymercer henrymercer left a comment

Choose a reason for hiding this comment

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

❤️

@mbg mbg merged commit d8df826 into main Sep 8, 2025
290 checks passed
@mbg mbg deleted the mbg/docs/required-checks branch September 8, 2025 17:41
@github-actions github-actions bot mentioned this pull request Sep 9, 2025
8 tasks
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.

2 participants