Create Issue Github
Create a GitHub issue from a description provided by the user.
Create a GitHub issue from a description provided by the user.
$ARGUMENTS is the issue description — a sentence, bullet points, or a paragraph explaining the problem or feature request. If $ARGUMENTS is empty, ask the user to provide a description and stop.
Steps:
- Check that
ghis installed and authenticated by runninggh auth status. If not, tell the user and stop. - Derive an issue title (imperative tense, under 72 chars) and a polished body from $ARGUMENTS:
- What the problem or request is (2-4 sentences, plain English)
- Why it matters or what the expected behaviour should be
- Steps to reproduce if it sounds like a bug
- No filler like "This issue..." or vague words without specifics
- Infer a label from the description if one of these clearly applies:
bug,enhancement,documentation. Omit if unclear. - Run
gh issue create --title "<title>" --body "<body>", appending--label <label>if one was inferred. Append any user-provided flags from $ARGUMENTS. - Print the issue URL.