forked from TreTuna/sync-branches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
43 lines (43 loc) · 1.74 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
name: "Sync branches"
description: "GitHub Action to, upon successful merge, open a pull request to sync the updated branch back to one or more other branches."
branding:
icon: git-pull-request
color: green
inputs:
GITHUB_TOKEN:
description: "User token to be associated with this pull request."
required: true
FROM_BRANCH:
description: "Branch from make pull-request from"
required: true
TO_BRANCH:
description: "Branch to make the pull-request against"
required: true
PULL_REQUEST_TITLE:
description: "What you would like as the title of the pull request. Default: 'sync: {FROM_BRANCH} to {TO_BRANCH}'"
required: false
PULL_REQUEST_BODY:
description: "What you would like in the body of the pull request. Default: 'New code has just landed in {fromBranch} so let's bring {toBranch} up to speed!'"
required: false
PULL_REQUEST_IS_DRAFT:
description: "Set to 'true' for the pull request to be opened as a draft. Default: 'false'"
required: false
CONTENT_COMPARISON:
description: "Set to 'true' to force checking content comparison between the branches. Default: 'false'"
required: false
REVIEWERS:
description: "JSON array of GitHub user `login`s that will be requested to review the PR. Example: '['tretuna']'"
required: false
default: '[]'
TEAM_REVIEWERS:
description: "JSON array of GitHub team `slug`s that will be requested to review the PR. Example: '['js-team']'"
required: false
default: '[]'
outputs:
PULL_REQUEST_URL:
description: "URL for either the generated pull request or the currently open one"
PULL_REQUEST_NUMBER:
description: "Pull request number from generated pull request or the currently open one"
runs:
using: "node16"
main: "index.js"