This GitHub Action allows you to programmatically create issues in a GitHub repository based on user-defined inputs such as title, body, labels, and assignees.
• Create issues with a title and description.
• Add labels and assign users to the issue.
• Fully customizable using input parameters.
| Input | Description | Required | Default |
|---|---|---|---|
GITHUB_TOKEN |
Token for authenticating GitHub API. | Yes | secrets.GITHUB_TOKEN |
INPUT_TITLE |
Title of the issue. | Yes | N/A |
INPUT_BODY |
Body of the issue. | No | "" |
INPUT_LABELS |
Comma-separated list of labels. | No | "" |
INPUT_ASSIGNEES |
Comma-separated list of assignees. | No | "" |
Here’s an example of how to use this action in your GitHub Actions workflow:
name: Create GitHub Issue
on:
workflow_dispatch:
jobs:
create-issue:
runs-on: ubuntu-latest
steps:
- name: Create GitHub Issue
uses: thomasvjoseph/github-issues@v0.0.8
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUT_TITLE: "Bug Report"
INPUT_BODY: "Description of the bug."
INPUT_LABELS: "bug, urgent"
INPUT_ASSIGNEES: "username1,username2"1. Inputs: You provide the title, body, labels, and assignees for the issue via the workflow file.
2. Execution: The Action uses the GitHub API to create the issue in the repository where the workflow is executed.
Contributions are welcome! Feel free to submit issues or pull requests to improve this project.
This project is licensed under the MIT License. See LICENSE for more details.
thomas joseph