https://github.com/peter-evans/create-issue-from-file
A GitHub action to create an issue using content from a file
https://github.com/peter-evans/create-issue-from-file
github-action github-issues
Last synced: about 18 hours ago
JSON representation
A GitHub action to create an issue using content from a file
- Host: GitHub
- URL: https://github.com/peter-evans/create-issue-from-file
- Owner: peter-evans
- License: mit
- Created: 2019-07-06T06:27:36.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-04T09:06:11.000Z (10 days ago)
- Last Synced: 2025-04-06T21:10:02.829Z (8 days ago)
- Topics: github-action, github-issues
- Language: TypeScript
- Homepage:
- Size: 30.1 MB
- Stars: 151
- Watchers: 5
- Forks: 33
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-actions - this Action
- awesome-actions - Create an issue using content from a file
- fucking-awesome-actions - Create an issue using content from a file
- awesome-workflows - Create an issue using content from a file
- jimsghstars - peter-evans/create-issue-from-file - A GitHub action to create an issue using content from a file (TypeScript)
README
# Create Issue From File
[](https://github.com/peter-evans/create-issue-from-file/actions?query=workflow%3ACI)
[](https://github.com/marketplace/actions/create-issue-from-file)A GitHub action to create an issue using content from a file.
This is designed to be used in conjunction with other actions that output to a file.
Especially if that output can be formatted as [GitHub flavoured Markdown](https://docs.github.com/en/github/writing-on-github/basic-writing-and-formatting-syntax).
This action will create an issue if a file exists at a specified path.
The content of the issue will be taken from the file as-is.
If the file does not exist the action exits silently.## Usage
```yml
- name: Create Issue From File
uses: peter-evans/create-issue-from-file@v5
with:
title: An example issue
content-filepath: ./example-content/output.md
labels: |
report
automated issue
```### Action inputs
| Name | Description | Default |
| --- | --- | --- |
| `token` | `GITHUB_TOKEN` or a `repo` scoped [PAT](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) | `GITHUB_TOKEN` |
| `repository` | The target GitHub repository | Current repository |
| `issue-number` | The issue number of an existing issue to update | |
| `title` | (**required**) The title of the issue | |
| `content-filepath` | The file path to the issue content | |
| `labels` | A comma or newline-separated list of labels | |
| `assignees` | A comma or newline-separated list of assignees (GitHub usernames) | |### Outputs
- `issue-number` - The number of the created issue
## License
MIT License - see the [LICENSE](LICENSE) file for details