Support per-handler staged field for add_labels and remove_labels#16273
Closed
Support per-handler staged field for add_labels and remove_labels#16273
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…rt complete Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for staged boolean field in add_labels/remove_labels
Support per-handler staged field for add_labels and remove_labels
Feb 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for the
stagedfield inBaseSafeOutputConfigfor add_labels and remove_labels handlers. Previously, only the globalsafe-outputs.stagedflag was respected.Changes
BaseSafeOutputConfig.Stagedto env builderbuildStandardSafeOutputEnvVarsWithPerHandlerStagedto handle per-handler flagBehavior
Staged mode activates when either flag is true:
The
GH_AW_SAFE_OUTPUTS_STAGEDenvironment variable is set ifglobal_staged || per_handler_staged.Tests
Added coverage for all flag combinations (global × per-handler) in
compiler_safe_outputs_env_test.goandstaged_add_issue_labels_test.go.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/graphql/usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw _test.go cal/bin/grep tagedFlag|TestAddLabelsJobWithStagedFlag -t cgroup2 --noheadings /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet staged\|Staged test.go ndor/bin/grep /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet(http block)/usr/bin/gh gh repo view --json owner,name --jq .owner.login + "/" + .name x_amd64/compile -ignore_readdir_git -lname ache/node/24.13..github/workflows/test.md x_amd64/compile _inc�� --show-toplevel /opt/hostedtoolcache/go/1.25.0/x-nolocalimports 0/x64/bin/node -unreachable=falgit /tmp/go-build180rev-parse 3774451/b319/vet--git-dir git(http block)/usr/bin/gh gh repo view --json owner,name --jq .owner.login + "/" + .name bin/sh t0 m0s 3774451/b264/vet--git-dir git _out�� 1206745453/.github/workflows /opt/hostedtoolcache/go/1.25.0/x64/pkg/tool/linux_amd64/vet ndor/bin/sh -unreachable=falgit /tmp/go-build180rev-parse /opt/hostedtoolc--show-toplevel git(http block)https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1/usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha staged\|Staged .cfg 64/pkg/tool/linux_amd64/vet staged\|Staged bels_test.go de/node/bin/grep--show-toplevel 64/pkg/tool/linux_amd64/vet -l staged\|Staged pkg/workflow/compile_outputs_label_test.go ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet staged\|Staged test.go k/_temp/ghcca-no--show-toplevel ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet(http block)/usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha AiXu/G9sEDD2pLhLMDAgEAiXu git ache/go/1.25.0/x64/pkg/tool/linux_amd64/link tierignore x_amd64/vet /usr/bin/git ache/go/1.25.0/x64/pkg/tool/linux_amd64/link 1815�� 181563/b412/styles.test 181563/b406/_testmain.go e/git ignore-path ../.git(http block)https://api.github.com/repos/actions/checkout/git/ref/tags/v3/usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha staged\|Staged _dependencies_test.go x_amd64/vet staged\|Staged t.go /home/REDACTED/.lo--show-toplevel x_amd64/vet -l staged\|Staged ude_engine_test.go /home/REDACTED/.local/bin/grep staged\|Staged d_test.go ep grep(http block)Co-authored-by: pelikhrev-parse 0/x64/bin/node --show-toplevel grep /usr/bin/git ache/go/1.25.0/x64/pkg/tool/linux_amd64/vet` (http block)
Co-authored-by: pelikhan <4175913+pelimerge-file 64/pkg/tool/linux_amd64/vet -bool -buildtags /usr/bin/git 64/pkg/tool/linux_amd64/vet` (http block)
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.