-
Notifications
You must be signed in to change notification settings - Fork 27
/
action.yml
44 lines (44 loc) · 1.37 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
name: Get Current Pull Request
author: 8BitJonny
description: Get the PR associated with the current commit.
inputs:
github-token:
description: The GitHub token used to create an authenticated client.
required: false
default: ${{ github.token }}
sha:
description: Sha to get PR for. Defaults to current sha.
required: false
filterOutClosed:
description: True, False, 1 or 0 if only open PRs should be returned. Defaults to false.
required: false
filterOutDraft:
description: True, False, 1 or 0 if only non-draft PRs should be returned. Defaults to false.
required: false
outputs:
pr_found:
description: The outcome if a PR has been found. If so, the other outputs are set.
pr:
description: The whole PR object if one was found.
number:
description: The PR number if one was found.
pr_title:
description: The PR Title if one was found.
pr_body:
description: The PR Body if one was found.
pr_url:
description: The PR Url if one was found.
pr_created_at:
description: The PR Created timestamp if one was found.
pr_merged_at:
description: The PR Merged timestamp if one was found.
pr_closed_at:
description: The PR Closed timestamp if one was found.
pr_labels:
description: The PR Labels if any was found.
runs:
using: node20
main: 'dist/index.js'
branding:
icon: git-pull-request
color: green