generated from dsanders11/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
48 lines (45 loc) · 1.5 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Get Project Item
description: Get a GitHub project item
author: David Sanders
inputs:
token:
description: A GitHub access token - either a classic PAT or a GitHub app installation token
required: true
owner:
description: The owner of the project - either an organization or a user
required: false
default: ${{ github.repository_owner }}
project-number:
description: The project number from the project's URL
required: true
item:
description: The item to get - may be the global ID for the item, the content ID, or the content URL
required: false
default: ${{ github.event.pull_request.html_url || github.event.issue.html_url }}
field:
description: Project field to get on the item
required: false
fail-if-item-not-found:
description: Should the action fail if the item is not found on the project
required: false
default: true
outputs:
id:
description: The global ID of the item
title:
description: Title of the item
body:
description: Body of the item
project-id:
description: The global ID of the project
content-id:
description: The global ID of the content - issue, pull request, or draft issue
url:
description: The URL of the issue or pull request - not applicable for draft issues
field-id:
description: The global ID of the field if the field input was set
field-value:
description: The project field value for the item if the field input was set
runs:
using: node20
main: ../dist/get-item.js