Skip to content

Commit 5813225

Browse files
Copilotlpcox
andauthored
Add set_issue_fields to guard write coverage and DIFC rules
Agent-Logs-Url: https://github.com/github/gh-aw-mcpg/sessions/70c367d1-6251-4a1a-9af4-37658ef8f89e Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
1 parent a6d2cb8 commit 5813225

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

guards/github-guard/rust-guard/src/labels/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4753,6 +4753,7 @@ mod tests {
47534753
"update_issue_state",
47544754
"update_issue_title",
47554755
"update_issue_type",
4756+
"set_issue_fields",
47564757
] {
47574758
let (secrecy, integrity, _desc) = apply_tool_labels(
47584759
tool,

guards/github-guard/rust-guard/src/labels/tool_rules.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ pub fn apply_tool_labels(
543543
| "update_issue_state"
544544
| "update_issue_title"
545545
| "update_issue_type"
546+
| "set_issue_fields"
546547
| "add_sub_issue"
547548
| "remove_sub_issue"
548549
| "reprioritize_sub_issue"

guards/github-guard/rust-guard/src/tools.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ pub const READ_WRITE_OPERATIONS: &[&str] = &[
9999
"update_issue_state", // PATCH — opens or closes an issue
100100
"update_issue_title", // PATCH — modifies issue title
101101
"update_issue_type", // PATCH — modifies issue type
102+
"set_issue_fields", // GraphQL — sets org-level custom field values on an issue
102103

103104
// Sub-issue management tools (alongside sub_issue_write composite)
104105
"add_sub_issue", // POST /repos/.../issues/{number}/sub_issues
@@ -348,6 +349,7 @@ mod tests {
348349
"update_issue_state",
349350
"update_issue_title",
350351
"update_issue_type",
352+
"set_issue_fields",
351353
] {
352354
assert!(
353355
is_read_write_operation(op),

0 commit comments

Comments
 (0)