This will let you create an issue and add it to a project based on user input from your GitHub Workflow
- title (Required) - Title of the issue
- token (Required) - Token of user that will create issue
- assignees (Not Required) - Assignes of the issue
- labels (Not Required) - Labels of the issue
- body (Not Required) - Body of the issue
- milestone (Not Required) - Id of the milestone to be assigned to the issue. The milestone must exist in the repository.
- project (Not Required) - Id of the project where you want to place the issue. The project must exist in the repository.
For each issue you want to create, you can add the following in your workflow's step:
- Create an issue that is assigned to a milestone and added to a project:
- uses: novalic/app-action@v2.0
name: Create Issue and Add to Project Action
with:
title: Deploy to production
token: ${{secrets.GITHUB_TOKEN}}
assignees: ${{github.actor}}
labels: Deployments
body: Be careful.
milestone: 1
project: 1
- Create an issue that will not be assigned to milestone nor added to a project:
- uses: novalic/app-action@v2.0
name: Create Issue and Add to Project Action
with:
title: Monitoring after deployment.
token: ${{secrets.GITHUB_TOKEN}}
assignees: ${{github.actor}}
labels: Monitoring, Deployments
body: Check for alarms, Sentry, logs.
-
You can of course add your issue to a project and do not assign it to a milestone and vice-versa.
-
A full worflow example:
name: Create an issue everyday at 6 AM
on:
schedule:
- cron: '0 6 * * *'
jobs:
create_issue:
runs-on: ubuntu-latest
steps:
- uses: novalic/app-action@v2.0
name: Create Issue and Add to Project Action
with:
title: Wake up!
token: ${{secrets.GITHUB_TOKEN}}
assignees: ${{github.actor}}
labels: Morning Routine, High Priority, Difficulty Level Hard
body: You should have gone to bed earlier.
milestone: 1
project: 1