Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thomasvjoseph/create-github-issue

A GitHub Action to automate issue creation in your repositories. This action allows you to create issues programmatically by specifying a title, body, labels, and assignees. It uses the GitHub API and can be easily integrated into workflows to streamline issue management.
https://github.com/thomasvjoseph/create-github-issue

cicd github-actions issues issues-only pipeline

Last synced: about 1 month ago
JSON representation

A GitHub Action to automate issue creation in your repositories. This action allows you to create issues programmatically by specifying a title, body, labels, and assignees. It uses the GitHub API and can be easily integrated into workflows to streamline issue management.

Awesome Lists containing this project

README

        

# GitHub Issue Creator Action

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.

## Features

• Create issues with a title and description.
• Add labels and assign users to the issue.
• Fully customizable using input parameters.

## Inputs
| 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 | "" |

## Usage

Here’s an example of how to use this action in your GitHub Actions workflow:

name: Create GitHub Issue
```yaml

on:
workflow_dispatch:

jobs:
create-issue:
runs-on: ubuntu-latest
steps:
- name: Create GitHub Issue
uses: thomasvjoseph/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INPUT_TITLE: "Bug Report"
INPUT_BODY: "Description of the bug."
INPUT_LABELS: "bug, urgent"
INPUT_ASSIGNEES: "username1,username2"
```
## How It Works

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.

## Contributing

Contributions are welcome! Feel free to submit issues or pull requests to improve this project.

## License

This project is licensed under the MIT License. See [LICENSE](LICENSE) for more details.

## Author:
thomas joseph
- [linkedin](https://www.linkedin.com/in/thomas-joseph-88792b132/)
- [medium](https://medium.com/@thomasvjoseph)