fix: workflow creates published issues instead of drafts#180
Draft
Copilot wants to merge 4 commits into
Draft
Conversation
…spatch with full permissions Agent-Logs-Url: https://github.com/Gurupreet/ComposeCookBook/sessions/2fe05337-3586-497c-934a-87197fd2b2c3 Co-authored-by: Gurupreet <4903762+Gurupreet@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix GitHub Actions to create normal issues instead of drafts
fix: workflow creates published issues instead of drafts
May 10, 2026
Agent-Logs-Url: https://github.com/Gurupreet/ComposeCookBook/sessions/2c7b674f-c9e2-46b5-84a8-dd7074f2de7c Co-authored-by: Gurupreet <4903762+Gurupreet@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Gurupreet/ComposeCookBook/sessions/2c7b674f-c9e2-46b5-84a8-dd7074f2de7c Co-authored-by: Gurupreet <4903762+Gurupreet@users.noreply.github.com>
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.
create-all-pending-issues.ymlandcreate-issue.ymlworkflowspushtrigger that caused restricted-token issuesworkflow_dispatchfor manual triggeringOriginal 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.