You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Create Github Issue
v1.1.2
Another create an issue on GitHub action that strives to be as simple as possible...
Basically a converter that takes your yaml entry and connects it to the rest endpoint to create an issue on GitHub.
options for with:
Option | Default Value | Notes |
---|---|---|
token | github.token / required |
Use ${{ github.token }} or create a PAT stored in the secrets store. |
owner | github.context.repo.owner | The owner of the repo to make the issue on. Implied from the context of the running action. |
repo | github.context.repo.repo | The repo to make the issue on. Implied from the context of the running action. |
title | required |
|
body | ||
milestone | ||
labels | A comma seperated list of labels | |
assignees | A comma seperated list of GitHub usernames to assign the issue to |
Limited testing has been done, and only on ubuntu-latest
Basic Usage:
steps:
- uses: actions/checkout@v2
- name: create an issue
uses: dacbd/create-issue-action@main
with:
token: ${{ github.token }}
title: Simple test issue
body: my new issue
The reason for being usage:
steps:
- uses: actions/checkout@v2
- name: Something that might fail
run: exit 1
- name: Create Issue on Failed workflow
if: ${{ failure() }}
uses: dacbd/create-issue-action@main
with:
token: ${{ github.token }}
title: Action workflow failed.
body: |
### Context
[Failed Run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
[Codebase](https://github.com/${{ github.repository }}/tree/${{ github.sha }})
Workflow name - `${{ github.workflow }}`
Job - `${{ github.job }}`
status - `${{ job.status }}`
assignees: SomeUsername,AnotherUsername
If you encounter issues with my action feel free to create an issue or a PR, happy to take improvements or requests.
More verbose logging can be enabled via GitHub Actions feature: ACTIONS_STEP_DEBUG