This GitHub Action automates the end-to-end process of generating code from GitHub issues using OpenAI’s ChatGPT. It reads the content of an issue, interprets the requirements using AI, and generates the corresponding code automatically. The action then creates a dedicated branch, commits the AI-generated code, and opens a pull request for human review. This enables seamless integration of AI into your development workflow, enhancing productivity and reducing manual coding effort. It is highly configurable—supporting custom prompts, file templates, branch naming strategies, and trigger events such as issue creation or labeling. Whether you're building new features, writing tests, or scaffolding boilerplate, this action translates natural language into functional code. It’s ideal for individuals and teams looking to explore or adopt AI-powered development workflows directly within GitHub. By automating repetitive tasks and code scaffolding, this tool accelerates prototyping, encourages collaboration, and brings AI into the heart of DevOps.
Personal access token (PAT) used for GitHub API authentication. This token is required to create pull requests and handle other repository interactions.
yes
—
REPOSITORY
The repository where the action will be executed.
yes
—
ISSUE_NUMBER
The number of the issue that triggered the action.
yes
—
OPENAI_API_KEY
API key for OpenAI, enabling interactions with the ChatGPT service to generate code based on issue descriptions.
yes
—
SCRIPT_PATH
The path to the script that interacts with ChatGPT and generates code.
yes
—
LABEL
Allows users to customize the label that triggers the action.
yes
—
Outputs
name
description
pull_request_url
The URL of the pull request that has been automatically created, containing the auto-generated code for review and potential merging.