Skip to content

Commit

Permalink
fix: exempt frozen files is meta, not status (#14369)
Browse files Browse the repository at this point in the history
Co-authored-by: alcueca <[email protected]>
  • Loading branch information
alcueca and alcueca authored Feb 14, 2025
1 parent 1cd5166 commit 443e931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,8 @@ jobs:
# Use GitHub API to get labels
LABELS=$(curl -s "https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/pulls/${PR_NUMBER}" | jq -r .labels)
# If the PR has the "S-exempt-frozen-files" label, do not run this check
if echo $LABELS | jq -e 'any(.[]; .name == "S-exempt-frozen-files")' > /dev/null; then
# If the PR has the "M-exempt-frozen-files" label, do not run this check
if echo $LABELS | jq -e 'any(.[]; .name == "M-exempt-frozen-files")' > /dev/null; then
echo "Skipping frozen files check, PR has exempt label"
circleci-agent step halt
fi
Expand Down
2 changes: 1 addition & 1 deletion packages/contracts-bedrock/meta/CODE_FREEZES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ To disable a code freeze, comment out the path and filename of the file/s you wa

## Exceptions

To bypass the freeze you can apply the "S-exempt-frozen-files" label on affected PRs. This should be done upon agreement with the code owner. Expected uses of this exception are to fix issues found on audits or to add comments to frozen files.
To bypass the freeze you can apply the "M-exempt-frozen-files" label on affected PRs. This should be done upon agreement with the code owner. Expected uses of this exception are to fix issues found on audits or to add comments to frozen files.

0 comments on commit 443e931

Please sign in to comment.