Skip to content

[WIP] Fix add-labels to allow opt-out of pull-requests write access - #48912

Closed
pelikhan with Copilot wants to merge 1 commit into
mainfrom
copilot/add-labels-no-pull-requests-opt-out
Closed

[WIP] Fix add-labels to allow opt-out of pull-requests write access#48912
pelikhan with Copilot wants to merge 1 commit into
mainfrom
copilot/add-labels-no-pull-requests-opt-out

Conversation

Copilot AI commented Jul 29, 2026

Copy link
Copy Markdown
Contributor
  • Add PullRequests *bool field to AddLabelsConfig, RemoveLabelsConfig, and ReplaceLabelConfig
  • Create buildLabelPermissions helper function for add-labels/remove-labels
  • Create buildReplaceLabelPermissions helper function for replace-label
  • Update PermissionBuilder in safe_output_handlers.go for add-labels, remove-labels, and replace-label handlers
  • Add tests for new pull-requests: false behavior in safe_outputs_permissions_test.go

@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot try again

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.

add-labels safe-output always mints pull-requests: write; no pull-requests: false opt-out like add-comment

2 participants