You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 074f8f0
Browse filesBrowse the repository at this point in the historyBrowse files
Centralize Rust guard issue_read skip logic and mutation constants (#14903)
Both response labelers duplicated the `issue_read` skip condition,
including its `get_comments` exception. Granular mutation tools also
repeated raw names across operation lists and labeling rules.
- **Shared skip rule:** Extract `skip_issue_read_per_item_labeling` and
introduce `GET` / `GET_COMMENTS` constants. Preserve per-item labeling
for `get`, `get_comments`, and an empty method.
- **Mutation constants:** Centralize granular issue mutation names and
`unlock_pull_request`, then reuse them in operation lists and DIFC
rules.
- **Regression coverage:** Cover skip-rule edge cases and canonical
constant values.
Both response labelers now use:
```rust
if skip_issue_read_per_item_labeling(tool_name, method) {
// Use resource-level labels.
}
```
No labeling or tool-classification behavior change is intended.
<!-- START COPILOT CODING AGENT SUFFIX -->
- Fixes#14878
0 commit comments