Skip to content

fix: provide default exempt-pr-labels on scheduled stale runs - #529

Open
andrewwhitecdw wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
andrewwhitecdw:andrewwhitecdw/fix/stale-exempt-labels-default
Open

fix: provide default exempt-pr-labels on scheduled stale runs#529
andrewwhitecdw wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
andrewwhitecdw:andrewwhitecdw/fix/stale-exempt-labels-default

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

Bug

_close_inactive_issue_pr.yml runs on both workflow_call and schedule. On schedule, the inputs context is empty, so ${{ inputs.exempt-pr-labels }} evaluated to an empty string instead of the intended default community-request. This meant scheduled stale runs did not exempt community-request PRs.

Fix

Add an explicit fallback: ${{ inputs.exempt-pr-labels || \community-request` }}`.

Verification

YAML syntax validated with python -c "import yaml; yaml.safe_load(...).

_close_inactive_issue_pr.yml runs on both workflow_call (which supplies
the default input) and schedule. On schedule the inputs context is empty,
so referencing inputs.exempt-pr-labels returns an empty string instead of
the intended 'community-request' default. Add an explicit fallback so the
schedule event behaves the same as a workflow_call with no override.

Signed-off-by: Andrew White <andrewh@cdw.com>
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.

1 participant