Respect repository issue templates and blank issue restrictions in gh issue create
#14385
duncanmcclean
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
As a maintainer, you can define issue templates in a repo’s
.github/ISSUE_TEMPLATEdirectory to guide users through opening an issue:These templates help us collect the information we need to investigate a report, such as reproduction steps, environment details, and expected behaviour.
However, with more people using AI agents that interact with GitHub through the
ghCLI, we’re seeing issues that don’t follow those templates. The agent decides what information to include, which doesn’t always match what we’ve asked for. This creates extra back-and-forth before we can investigate.On GitHub.com, maintainers can disable the blank issue option(https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/configuring-issue-templates-for-your-repository) using
blank_issues_enabled: false. However, that restriction doesn’t appear to carry through to issues created through the CLI.I’m aware that
gh issue createsupports--template, but optional template support relies on the person or agent knowing to use it.I’d like
gh issue createto respect the repository’s issue template configuration, including when running non-interactively. Ideally:The aim is for maintainers to receive the information they’ve requested, regardless of whether an issue is opened through the website, a terminal, or an AI agent.
All reactions