fix: create-all-pending-issues workflow produces published issues, not drafts#181
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/Gurupreet/ComposeCookBook/sessions/5a4f1604-2f59-4c48-9785-e30363a0f462 Co-authored-by: Gurupreet <4903762+Gurupreet@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update GitHub Actions workflow to create normal issues
fix: create-all-pending-issues workflow produces published issues, not drafts
May 10, 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-all-pending-issues.ymlworkflow had apushtrigger scoped to the ephemeral PR branchcopilot/create-issues-in-repo, causing it to fire in the wrong branch context. After that branch is merged/deleted, the trigger becomes dead code. The workflow was never cleanly runnable frommaster.Changes
pushtrigger forcopilot/create-issues-in-repobranch — the workflow now only exposesworkflow_dispatchThe underlying script already uses
github.rest.issues.create(), which always produces published issues. De-duplication (skip by title) and logging (Skipping/Created) are unchanged.After merge, trigger via Actions → Create All Pending Issues → Run workflow →
master.Original prompt
Update the GitHub Actions workflow in repository
Gurupreet/ComposeCookBookso that it creates normal GitHub issues instead of draft issues, then open a pull request with the workflow fix.Context:
.github/workflows/create-all-pending-issues.yml.workflow_dispatchjob namedcreate-issueswithpermissions: issues: writeand usesactions/github-script@v7.github.rest.issues.create({...}), which should create normal issues. However, the user reports that the repo shows draft issues athttps://github.com/Gurupreet/ComposeCookBook/issues?q=is%3Aissue%20state%3Adraftand wants the workflow updated so the issues are actually created as visible issues, not drafts.What to do:
.github/workflows/create-all-pending-issues.yml.github/workflows/create-issue.ymlworkflow_dispatch.Important constraints:
master.The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Can you create issues from this CL in repo's issues, I have merged the workflow that allows creating bugs.
Assistant: Yes — the CL contains 12 ready-to-file issue drafts, and the repo’s bug issue template is available.
I can create them, but I need one clarification first: do you want all 12 entries from PR #178 created as issues now, or only the ones labeled/treated as bugs?
Reason: the PR contains a mix of:
If you want all 12 created, I’ll draft them all into
Gurupreet/ComposeCookBookissues. If you want only bug-type items, I’ll limit it accordingly.User: no 12 different issues.
Assistant: Drafted the issues for review.