peter-evans/create-issue-from-file

A GitHub action to create an issue using content from a file

177

stars

516

commits

TypeScript

primary language

Sep 3, 2026

updated

github-action
github-issues

README

Create Issue From File

CI GitHub Marketplace

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. 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

      - name: Create Issue From File
        uses: peter-evans/create-issue-from-file@v6
        with:
          title: An example issue
          content-filepath: ./example-content/output.md
          labels: |
            report
            automated issue

Action inputs

NameDescriptionDefault
tokenGITHUB_TOKEN or a repo scoped PATGITHUB_TOKEN
repositoryThe target GitHub repositoryCurrent repository
issue-numberThe issue number of an existing issue to update
title(required) The title of the issue
content-filepathThe file path to the issue content
labelsA comma or newline-separated list of labels
assigneesA comma or newline-separated list of assignees (GitHub usernames)

Outputs

  • issue-number - The number of the created issue

License

MIT License - see the LICENSE file for details

Contributors

dependabot[bot]

293 commits

peter-evans

177 commits

renovate-bot

22 commits

actions-bot

20 commits

peter-evans/create-issue-from-file

A GitHub action to create an issue using content from a file

177

stars

516

commits

TypeScript

primary language

Sep 3, 2026

updated

github-action
github-issues

README

Create Issue From File

CI GitHub Marketplace

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. 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

      - name: Create Issue From File
        uses: peter-evans/create-issue-from-file@v6
        with:
          title: An example issue
          content-filepath: ./example-content/output.md
          labels: |
            report
            automated issue

Action inputs

NameDescriptionDefault
tokenGITHUB_TOKEN or a repo scoped PATGITHUB_TOKEN
repositoryThe target GitHub repositoryCurrent repository
issue-numberThe issue number of an existing issue to update
title(required) The title of the issue
content-filepathThe file path to the issue content
labelsA comma or newline-separated list of labels
assigneesA comma or newline-separated list of assignees (GitHub usernames)

Outputs

  • issue-number - The number of the created issue

License

MIT License - see the LICENSE file for details

Contributors

dependabot[bot]

293 commits

peter-evans

177 commits

renovate-bot

22 commits

actions-bot

20 commits

Languages

TypeScript

93.8%

JavaScript

6.2%