fix(workflow): create-uiux-issue — remove invalid assignee, guard labels against 422#11
Merged
Merged
Conversation
…handling Co-authored-by: mishravivek-ms <122555774+mishravivek-ms@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix GitHub Actions workflow for UI/UX issue creation
fix(workflow): create-uiux-issue — remove invalid assignee, guard labels against 422
Mar 19, 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.
The
create-uiux-issueworkflow was missing from this repo; the reference implementation would fail with422 Validation Failedon every PR merge due to an invalidassignees: ['copilot']and unconditional use of labels that may not exist.Changes
.github/workflows/create-uiux-issue.yml— fires onpull_request: closedtargetingmaster, gated bygithub.event.pull_request.merged == trueassignees—copilotis not a valid repo collaborator; field is omitted entirely with an explanatory commentgetLabelcall per desired label; only labels that already exist in the repo are passed toissues.create; missing labels emitcore.warningand are skipped rather than abortingissues: write+contents: readonlyOriginal prompt
Goal
Fix the GitHub Actions workflow that creates a UI/UX issue on PR merge so that it no longer fails due to invalid assignee/labels.
Repository
Apply changes in:
mishravivek-ms/SpringbootSampleCodeBase branch:
masterWhat to change
Update the workflow file:
.github/workflows/create-uiux-issue.ymlProblems to address
actions/github-scriptto create an issue and setsassignees: ['copilot']. This commonly causes a422 Validation Failederror becausecopilotis usually not an assignable GitHub username in the repo.['ui/ux', 'copilot']may also fail if labels do not exist or cannot be applied.Required fix
assignees: ['copilot']field.Acceptance criteria
assigneeswas removed and how labels are handled.Notes
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: can you check my action log ?
Assistant: Your GitHub Actions run 23312628944 in mishravivek-ms/agenticworkflow_GHCP does not contain any failing jobs.
So there isn’t an “action log for a failure” to diagnose for that run—everything in that run completed without a job marked as failed.
If you want, paste the run URL (full link) or tell me:
and I’ll check that specific run/job and summarize the error.
User: https://github.com/mishravivek-ms/agenticworkflow_GHCP/actions/runs/23312628944/job/67803673555 can you please check what is failure reason ?
Assistant: That job didn’t fail due to an error— it was cancelled.
6780367355523312628944Check with id 67803673555 was cancelledSo there won’t be a meaningful “failure reason” in the logs (no stack trace / failing step), because GitHub stopped the job before it completed.
Common causes of a cancelled job:
concurrencyis configured withcancel-in-progress: true).gh run cancel.If you share:
.github/workflows/ci.yml) or paste theconcurrency:section,I can tell you which of the above is most likely in your case.
User: I can see The run was canceled by @copilot-swe-agent[bot]. ? how to fix ?
Assistant: If the UI says “The run was canceled by @copilot-swe-agent[bot]”, that means a GitHub App/bot acting on your repo had permission to cancel workflow runs and did so. This is usually caused by one of these:
concurrency:block withcancel-in-progress: true.gh run cancel, or GitHub API) cancels runs intentionally (e.g., to avoid wasting minutes when a newer attempt is running).How to fix (most common)
A) Disable auto-cancel in
concurrencyCheck your workflow YAML under
.github/workflows/*.ymlfor something like:Change to:
Or remove the
concurrency:block entirely if you don’t need it.B) If Copilot SWE agent is canceling runs as part of its automation
If you have Copilot coding-agent / SWE-agent automation enabled in the repo/org, you can prevent it from canceling runs by tightening token permissions:
In your workflow, set least-privilege permissions (this often blocks cancellation via API):
(If you need checkout + PR operations, we can tailor permissions, but avoid
actions: writeunless required.)C) Ensure the job isn’t being canceled by a newer run
Look at the Actions page: if you see a newer run started shortly after, then this is almost certainly concurrency behavi...
This pull request was created from Copilot chat.
⌨️ Start Copilot coding agent tasks without leaving your editor — available in VS Code, Visual Studio, JetBrains IDEs and Eclipse.