Create an issue
"Oction" is a GitHub Action that implements a single call with @octokit/request allowing easy interaction with GitHub REST APIs from your workflow.
Original documentation: https://developer.github.com/v3/issues/#create-an-issue
This action implements POST
request to /repos/{owner}/{repo}/issues
Quick start
- uses: maxkomarychev/oction-create-issue@v0.7.1
id: my_step_id
with:
token: <token value>
title: <title value>
- name: Print outputs
run: |
echo ${{ steps.my_step_id.outputs.id }}
echo ${{ steps.my_step_id.outputs.number }}
Inputs
Name | Is required | Description |
---|---|---|
token | true | Token to authenticate the request |
owner | false | owner parameter |
repo | false | repo parameter |
title | true | The title of the issue. |
body | false | The contents of the issue. |
assignee | false | Login for the user that this issue should be assigned to. NOTE: Only users with push access can set the assignee for new issues. The assignee is silently dropped otherwise. This field is deprecated. |
milestone | false | The number of the milestone to associate this issue with. NOTE: Only users with push access can set the milestone for new issues. The milestone is silently dropped otherwise. |
labels | false | Labels to associate with this issue. NOTE: Only users with push access can set labels for new issues. Labels are silently dropped otherwise. |
assignees | false | Logins for Users to assign to this issue. NOTE: Only users with push access can set assignees for new issues. Assignees are silently dropped otherwise. |
Outputs
Name | Description |
---|---|
id | id field of the response (if exists) |
number | number field of the response (if exists) |