mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-24 21:59:04 +00:00
## Context The PR size check workflow has been failing with `403 Resource not accessible by integration` on every run ([example](https://github.com/zed-industries/zed/actions/runs/23281894554/job/67698634490)). The root cause is a workflow-level `permissions` block that set a read-only ceiling, silently preventing the job-level `issues: write` and `pull-requests: write` grants from taking effect. This also adds an idempotency improvement: when a new push doesn't change the PR's size bracket, the workflow now skips the label remove/re-add cycle, eliminating unnecessary timeline noise. ## How to Review - Focus on `.github/workflows/pr-size-check.yml` — that's the only file changed - Lines 17-23: workflow-level `permissions` block removed, job-level retained - Lines 81-112: new `alreadyCorrect` check wraps the label mutation block ## Self-Review Checklist - [x] I've reviewed my own diff for quality, security, and reliability - [x] Unsafe blocks (if any) have justifying comments - [x] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [x] Tests cover the new/changed behavior - [x] Performance impact has been considered and is acceptable Release Notes: - N/A |
||
|---|---|---|
| .. | ||
| add_commented_closed_issue_to_project.yml | ||
| after_release.yml | ||
| assign-reviewers.yml | ||
| autofix_pr.yml | ||
| background_agent_mvp.yml | ||
| bump_collab_staging.yml | ||
| bump_patch_version.yml | ||
| catch_blank_issues.yml | ||
| cherry_pick.yml | ||
| comment_on_potential_duplicate_issues.yml | ||
| community_champion_auto_labeler.yml | ||
| community_close_stale_issues.yml | ||
| community_update_all_top_ranking_issues.yml | ||
| community_update_weekly_top_ranking_issues.yml | ||
| compare_perf.yml | ||
| congrats.yml | ||
| danger.yml | ||
| deploy_cloudflare.yml | ||
| deploy_collab.yml | ||
| docs_suggestions.yml | ||
| extension_auto_bump.yml | ||
| extension_bump.yml | ||
| extension_tests.yml | ||
| extension_workflow_rollout.yml | ||
| good_first_issue_notifier.yml | ||
| hotfix-review-monitor.yml | ||
| pr-size-check.yml | ||
| pr_labeler.yml | ||
| publish_extension_cli.yml | ||
| randomized_tests.yml | ||
| release.yml | ||
| release_nightly.yml | ||
| run_agent_evals.yml | ||
| run_bundling.yml | ||
| run_cron_unit_evals.yml | ||
| run_tests.yml | ||
| run_unit_evals.yml | ||
| slack_notify_first_responders.yml | ||
| stale-pr-reminder.yml | ||
| track_duplicate_bot_effectiveness.yml | ||
| update_duplicate_magnets.yml | ||