Skip to content

Commit 3f95295

Browse files
authored
feat(create-pr): Enable branch creation before creating PR (#719)
1 parent bc122cc commit 3f95295

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+170
-52
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,17 @@ The following parameters can be used for additional control over when it is safe
140140
### [create-pr](.github/workflows/create-pr.yml)
141141

142142
- Opens a pull request.
143+
- Can create a new branch and commit changes
144+
145+
| Parameter | Description | Default value | Required |
146+
| :-----------------: | :---------------------------------------------------------------------------------------------------------: | :-------------------: | :------: |
147+
| title | An issue title | N/A | ✔️ |
148+
| body | Description of the PR | N/A | ✔️ |
149+
| base | Base ref to initiate pull request onto | N/A | ❌ |
150+
| branch_name | Name of the branch to be created. Use this parameter if you want the helper to create a new branch for you. | N/A | ❌ |
151+
| commit_message | Text used when creating a commit if branch_name is given. Similar to `git commit -m "<commit_message>"` | Automated PR creation | ❌ |
152+
| head | Head ref to initiate pull request from. If branch_name is provided it'll be the value of head | N/A | ❌ |
153+
| return_full_payload | Return full payload from GitHub rather than a trimmed-down version of the response | N/A | ❌ |
143154

144155
### [create-project-card](.github/workflows/create-project-card.yml)
145156

action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,13 @@ inputs:
160160
packages:
161161
description: 'A list of dependencies inside package.json'
162162
required: false
163+
branch_name:
164+
description: 'The name of the branch to create'
165+
required: false
166+
commit_message:
167+
description: 'The commit message to use'
168+
required: false
169+
default: 'Automated PR creation'
163170
outputs:
164171
output:
165172
description: 'The output of the helper'

dist/110.index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/208.index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/250.index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)