Issue
The verify-release-intent reusable workflow cannot access PR labels when called via workflow_call.
Root Cause
Line 31 of .github/workflows/verify-release-intent.yml attempts to access github.event.pull_request.labels directly:
LABELS: ${{ toJSON(github.event.pull_request.labels.*.name) }}
In a workflow_call context, the github.event.pull_request object is not available, causing LABELS to be set to an empty array [], which triggers a verification failure even when the PR has the required labels.
Current Impact
PRs that properly have labels like no-release, major, minor, or patch still fail the verification check because the workflow cannot see the labels.
Solution
The reusable workflow should accept the PR labels as input parameters so that the caller workflow can pass them explicitly. Example:
on:
workflow_call:
inputs:
labels:
description: 'JSON array of PR label names'
type: string
required: true
Then use inputs.labels instead of github.event.pull_request.labels.*.name.
Reproduction
This affects Arc.Kotlin PR #44 and likely other repositories using this reusable workflow.
Issue
The
verify-release-intentreusable workflow cannot access PR labels when called viaworkflow_call.Root Cause
Line 31 of
.github/workflows/verify-release-intent.ymlattempts to accessgithub.event.pull_request.labelsdirectly:In a
workflow_callcontext, thegithub.event.pull_requestobject is not available, causingLABELSto be set to an empty array[], which triggers a verification failure even when the PR has the required labels.Current Impact
PRs that properly have labels like
no-release,major,minor, orpatchstill fail the verification check because the workflow cannot see the labels.Solution
The reusable workflow should accept the PR labels as input parameters so that the caller workflow can pass them explicitly. Example:
Then use
inputs.labelsinstead ofgithub.event.pull_request.labels.*.name.Reproduction
This affects Arc.Kotlin PR #44 and likely other repositories using this reusable workflow.