-
-
Notifications
You must be signed in to change notification settings - Fork 424
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae3acff
commit 3c9fba7
Showing
3 changed files
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ This action is experimental and may not work well for some use cases. | |
Linux | ||
```yml | ||
- name: Create Pull Request | ||
uses: peter-evans/[email protected].0 | ||
uses: peter-evans/[email protected].1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
``` | ||
|
@@ -39,11 +39,16 @@ Multi platform - Linux, MacOS, Windows (beta) | |
These variables are all optional. If not set, a default value will be used. | ||
- `PULL_REQUEST_BRANCH` - The branch name. See **Branch naming** below for details. | ||
- `BRANCH_SUFFIX` - The branch suffix type. Valid values are `short-commit-hash` (default) and `timestamp`. See **Branch naming** below for details. | ||
- `COMMIT_MESSAGE` - The message to use when committing changes. | ||
- `PULL_REQUEST_TITLE` - The title of the pull request. | ||
- `PULL_REQUEST_BODY` - The body of the pull request. | ||
- `PULL_REQUEST_LABELS` - A comma separated list of labels. | ||
- `PULL_REQUEST_ASSIGNEES` - A comma separated list of assignees (GitHub usernames). | ||
- `PULL_REQUEST_REVIEWERS` - A comma separated list of reviewers (GitHub usernames) to request a review from. | ||
- `PULL_REQUEST_TEAM_REVIEWERS` - A comma separated list of GitHub teams to request a review from. | ||
- `PULL_REQUEST_MILESTONE` - The number of the milestone to associate this pull request with. | ||
- `PULL_REQUEST_BRANCH` - The branch name. See **Branch naming** below for details. | ||
- `BRANCH_SUFFIX` - The branch suffix type. Valid values are `short-commit-hash` (default) and `timestamp`. See **Branch naming** below for details. | ||
|
||
The following parameters are available for debugging and troubleshooting. | ||
|
||
|
@@ -78,15 +83,30 @@ If there are files or directories you want to ignore you can simply add them to | |
Here is an example that sets all the main environment variables. | ||
```yml | ||
on: | ||
repository_dispatch: | ||
types: [create-pull-request] | ||
name: create-pull-request workflow | ||
jobs: | ||
createPullRequest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Create report file | ||
run: touch report.txt | ||
- name: Create Pull Request | ||
uses: peter-evans/[email protected].0 | ||
uses: peter-evans/[email protected].1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PULL_REQUEST_BRANCH: my-patches | ||
COMMIT_MESSAGE: Add report file | ||
PULL_REQUEST_BODY: This PR is auto-generated by [create-pull-request](https://github.com/peter-evans/create-pull-request). | ||
PULL_REQUEST_TITLE: '[Example] New report' | ||
PULL_REQUEST_LABELS: report, automated pr | ||
PULL_REQUEST_ASSIGNEES: peter-evans | ||
PULL_REQUEST_REVIEWERS: peter-evans | ||
PULL_REQUEST_MILESTONE: 1 | ||
PULL_REQUEST_BRANCH: example-patches | ||
BRANCH_SUFFIX: short-commit-hash | ||
COMMIT_MESSAGE: Auto-modify files by my-file-modifier-action | ||
PULL_REQUEST_TITLE: Changes from my-file-modifier-action | ||
PULL_REQUEST_BODY: This is an auto-generated PR with changes from my-file-modifier-action | ||
``` | ||
|
||
This configuration will create pull requests that look like this: | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.