-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
42 lines (39 loc) · 1.26 KB
/
action.yml
File metadata and controls
42 lines (39 loc) · 1.26 KB
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
name: Find Github Pull Request
author: kylorhall
description: Find a Github Pull Request in a Github Action
branding:
icon: git-pull-request
color: yellow
inputs:
token:
required: false
description: Github Token used to make API request to fetch pull requests from the current owner/repo.
default: ${{ github.token }}
commitSha:
required: false
description: Commit SHA to find a PR for. Ignored for a pull_request event.
default: ${{ github.sha }}
allowClosed:
required: false
description: Allow finding closed PRs. Ignored for a pull_request event.
default: 'false'
failIfNotFound:
required: false
description: Fail if no PR with that sha is found. Ignored for a pull_request event.
default: 'false'
outputs:
number:
description: The found PR number (eg. '1234')
title:
description: The found PR title, sanitized to be used in a shell environment.
body:
description: The found PR description, sanitized to be used in a shell environment.
url:
description: The found PR url.
base-ref:
description: The found PR's base ref, eg. 'main' or 'master'.
base-sha:
description: The found PR's base sha ref's sha, eg. 'main' is currently at 'a1b2c3d4f'.
runs:
using: 'node16'
main: 'dist/index.js'