Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
93bc7fd
build(deps-dev): bump @types/node from 18.19.41 to 18.19.42 (#3070)
dependabot[bot] Jul 30, 2024
a0390ae
build(deps): bump undici from 6.19.4 to 6.19.5 (#3086)
dependabot[bot] Aug 6, 2024
058cde4
build(deps-dev): bump @types/node from 18.19.42 to 18.19.43 (#3087)
dependabot[bot] Aug 6, 2024
3707121
build(deps-dev): bump ts-jest from 29.2.3 to 29.2.4 (#3088)
dependabot[bot] Aug 6, 2024
c2b7389
build(deps): bump undici from 6.19.5 to 6.19.7 (#3145)
dependabot[bot] Aug 13, 2024
b57f967
build(deps-dev): bump @types/node from 18.19.43 to 18.19.44 (#3144)
dependabot[bot] Aug 13, 2024
ba864ad
build: update distribution (#3154)
actions-bot Aug 13, 2024
5308ecb
ci: add sign-commits flag to test suite comment
peter-evans Aug 14, 2024
4eb90b7
ci: separate test suite commands in pr comment
peter-evans Aug 14, 2024
cb4ed64
build(deps): bump undici from 6.19.7 to 6.19.8 (#3213)
dependabot[bot] Aug 20, 2024
4cfc1fc
build(deps-dev): bump @types/node from 18.19.44 to 18.19.45 (#3214)
dependabot[bot] Aug 20, 2024
00897e0
build: update distribution (#3221)
actions-bot Aug 20, 2024
87b5d6d
build(deps-dev): bump eslint-import-resolver-typescript (#3255)
dependabot[bot] Aug 27, 2024
17121bc
build(deps-dev): bump @types/node from 18.19.45 to 18.19.46 (#3254)
dependabot[bot] Aug 27, 2024
0c2a66f
build(deps-dev): bump ts-jest from 29.2.4 to 29.2.5 (#3256)
dependabot[bot] Aug 27, 2024
4320041
feat: signed commits (v7) (#3057)
peter-evans Sep 3, 2024
c0348e8
ci: add v7 to workflow
peter-evans Sep 3, 2024
73e6230
docs: update readme
peter-evans Sep 3, 2024
119d131
build(deps): bump peter-evans/create-pull-request from 6 to 7 (#3283)
dependabot[bot] Sep 3, 2024
d87b980
build(deps-dev): bump @types/node from 18.19.46 to 18.19.48 (#3288)
dependabot[bot] Sep 3, 2024
25cf845
build(deps-dev): bump @typescript-eslint/parser from 7.17.0 to 7.18.0…
dependabot[bot] Sep 3, 2024
6d01b56
build(deps-dev): bump eslint-plugin-import from 2.29.1 to 2.30.0 (#3290)
dependabot[bot] Sep 3, 2024
6073f54
build(deps-dev): bump @typescript-eslint/eslint-plugin (#3291)
dependabot[bot] Sep 3, 2024
8867c4a
fix: handle ambiguous argument failure on diff stat (#3312)
peter-evans Sep 5, 2024
5354f85
docs: update readme
peter-evans Sep 9, 2024
488c869
build(deps-dev): bump @types/node from 18.19.48 to 18.19.50 (#3320)
dependabot[bot] Sep 10, 2024
f4d66f4
build(deps-dev): bump typescript from 5.5.4 to 5.6.2 (#3319)
dependabot[bot] Sep 10, 2024
d121e62
fix: disable diff detection for renames and copies (#3330)
peter-evans Sep 12, 2024
6cd32fd
fix: disable abbreviated commit shas in diff (#3337)
peter-evans Sep 16, 2024
f6f978f
docs: correct suggestion for bot setup (#3342)
henryiii Sep 16, 2024
d39d596
build(deps-dev): bump @types/jest from 29.5.12 to 29.5.13 (#3343)
dependabot[bot] Sep 17, 2024
7a8aeac
build(deps-dev): bump eslint from 8.57.0 to 8.57.1 (#3344)
dependabot[bot] Sep 17, 2024
2f38cd2
fix: support submodules when commit signing (#3354)
peter-evans Sep 18, 2024
5e91468
fix: support symlinks when commit signing (#3359)
peter-evans Sep 18, 2024
d24ced9
build(deps-dev): bump @vercel/ncc from 0.38.1 to 0.38.2 (#3365)
dependabot[bot] Sep 24, 2024
7920c48
build: update distribution (#3370)
actions-bot Sep 24, 2024
6d225c2
build(deps): bump @octokit/plugin-rest-endpoint-methods (#3375)
dependabot[bot] Oct 1, 2024
f495c14
build(deps-dev): bump @types/node from 18.19.50 to 18.19.54 (#3376)
dependabot[bot] Oct 1, 2024
4a018ca
build(deps): bump @octokit/plugin-paginate-rest from 11.3.3 to 11.3.5…
dependabot[bot] Oct 1, 2024
5fb55cc
build: update distribution (#3388)
actions-bot Oct 1, 2024
e60c9f9
build(deps-dev): bump @types/node from 18.19.54 to 18.19.55 (#3400)
dependabot[bot] Oct 8, 2024
91d9b1a
build(deps): bump @actions/core from 1.10.1 to 1.11.1 (#3401)
dependabot[bot] Oct 8, 2024
6a95549
build(deps): bump @octokit/plugin-rest-endpoint-methods (#3403)
dependabot[bot] Oct 8, 2024
31f0a78
build(deps-dev): bump eslint-plugin-import from 2.30.0 to 2.31.0 (#3402)
dependabot[bot] Oct 8, 2024
fecb38a
build(deps): bump @octokit/plugin-throttling from 9.3.1 to 9.3.2 (#3404)
dependabot[bot] Oct 8, 2024
41fe70d
build: update distribution (#3423)
actions-bot Oct 8, 2024
7f04a93
build(deps-dev): bump typescript from 5.6.2 to 5.6.3 (#3441)
dependabot[bot] Oct 15, 2024
36234c3
build(deps): bump undici from 6.19.8 to 6.20.1 (#3442)
dependabot[bot] Oct 15, 2024
dcbbee9
build: update distribution (#3451)
actions-bot Oct 15, 2024
2b17eaf
build(deps-dev): bump @types/node from 18.19.55 to 18.19.58 (#3457)
dependabot[bot] Oct 22, 2024
f3328ea
build(deps-dev): bump @types/jest from 29.5.13 to 29.5.14 (#3462)
dependabot[bot] Oct 29, 2024
5da4e80
build(deps-dev): bump @types/node from 18.19.58 to 18.19.60 (#3463)
dependabot[bot] Oct 29, 2024
2aadff0
chore: don't bundle undici (#3475)
benmccann Nov 4, 2024
6d751ce
build: update distribution (#3478)
actions-bot Nov 4, 2024
0c478ad
chore: use node-fetch-native support for proxy env vars (#3483)
peter-evans Nov 4, 2024
56c2d95
build(deps-dev): bump @types/node from 18.19.60 to 18.19.64 (#3488)
dependabot[bot] Nov 5, 2024
48e0547
build(deps-dev): bump undici from 6.20.1 to 6.21.0 (#3499)
dependabot[bot] Nov 19, 2024
ce71ba0
build(deps-dev): bump @vercel/ncc from 0.38.2 to 0.38.3 (#3500)
dependabot[bot] Nov 19, 2024
fb9d3b1
docs: note `push-to-repo` classic PAT `workflow` scope requirement (#…
scop Nov 25, 2024
28b3f12
docs: spelling fixes (#3512)
scop Nov 25, 2024
c8c4196
build(deps-dev): bump typescript from 5.6.3 to 5.7.2 (#3516)
dependabot[bot] Nov 26, 2024
059edeb
build(deps-dev): bump prettier from 3.3.3 to 3.4.0 (#3517)
dependabot[bot] Nov 26, 2024
2d6e2b8
build(deps-dev): bump @types/node from 18.19.64 to 18.19.66 (#3518)
dependabot[bot] Nov 26, 2024
fd32767
docs(README): clarify that an existing open PR is managed (#3498)
caugner Nov 26, 2024
5474387
docs: fix readme
peter-evans Nov 26, 2024
507d0a9
build: update distribution (#3529)
actions-bot Nov 26, 2024
25b6871
docs: update scopes for push-to-fork
peter-evans Nov 27, 2024
4e0cc19
build(deps): bump @octokit/plugin-paginate-rest from 11.3.5 to 11.3.6…
dependabot[bot] Dec 3, 2024
b27ce37
build(deps-dev): bump @types/node from 18.19.66 to 18.19.67 (#3543)
dependabot[bot] Dec 3, 2024
a22a0dd
build(deps-dev): bump prettier from 3.4.0 to 3.4.1 (#3544)
dependabot[bot] Dec 3, 2024
5bffd5a
build(deps-dev): bump eslint-import-resolver-typescript (#3559)
dependabot[bot] Dec 10, 2024
16e0059
build(deps-dev): bump prettier from 3.4.1 to 3.4.2 (#3560)
dependabot[bot] Dec 10, 2024
fa9200e
build(deps-dev): bump @types/node from 18.19.67 to 18.19.68 (#3570)
dependabot[bot] Dec 17, 2024
b378ed5
build(deps): bump p-limit from 6.1.0 to 6.2.0 (#3578)
dependabot[bot] Dec 24, 2024
bb88e27
build: update distribution (#3583)
actions-bot Dec 27, 2024
67ccf78
fix: preserve unicode in filepaths when commit signing (#3588)
peter-evans Dec 27, 2024
a302671
build(deps): bump @octokit/core from 6.1.2 to 6.1.3 (#3593)
dependabot[bot] Jan 7, 2025
8606317
build(deps-dev): bump @types/node from 18.19.68 to 18.19.70 (#3594)
dependabot[bot] Jan 7, 2025
ae3093d
build: update distribution (#3603)
actions-bot Jan 7, 2025
c52b9e2
build(deps-dev): bump typescript from 5.7.2 to 5.7.3 (#3610)
dependabot[bot] Jan 14, 2025
2539354
build(deps): bump octokit dependencies (#3618)
peter-evans Jan 16, 2025
c4623ef
docs: add workflow tip for showing message via workflow command (#3626)
ybiquitous Jan 21, 2025
16bbacf
build(deps-dev): bump eslint-plugin-prettier from 5.2.1 to 5.2.3 (#3628)
dependabot[bot] Jan 21, 2025
e23e628
build(deps): bump node-fetch-native from 1.6.4 to 1.6.6 (#3627)
dependabot[bot] Jan 21, 2025
9965b9d
build(deps-dev): bump undici from 6.21.0 to 6.21.1 (#3630)
dependabot[bot] Jan 21, 2025
842a5fb
build(deps-dev): bump @types/node from 18.19.70 to 18.19.71 (#3629)
dependabot[bot] Jan 21, 2025
176fdd2
build: update distribution (#3647)
actions-bot Jan 21, 2025
49cf7e9
build(deps-dev): bump @types/node from 18.19.71 to 18.19.74 (#3657)
dependabot[bot] Jan 28, 2025
9821aed
build(deps-dev): bump @types/node from 18.19.74 to 18.19.75 (#3663)
dependabot[bot] Feb 4, 2025
a394708
build(deps): bump @octokit/plugin-rest-endpoint-methods (#3670)
dependabot[bot] Feb 11, 2025
15ab4d7
build(deps-dev): bump prettier from 3.4.2 to 3.5.0 (#3671)
dependabot[bot] Feb 11, 2025
479e106
build: update distribution (#3680)
actions-bot Feb 11, 2025
ba5b4b4
build(deps): bump @octokit/request-error from 6.1.6 to 6.1.7 (#3685)
dependabot[bot] Feb 14, 2025
1681a83
build(deps): bump @octokit/plugin-paginate-rest from 11.4.0 to 11.4.1…
dependabot[bot] Feb 14, 2025
2e9b4cc
build(deps): bump @octokit/endpoint from 10.1.2 to 10.1.3 (#3700)
dependabot[bot] Feb 14, 2025
8a41570
build: update distribution (#3691)
actions-bot Feb 15, 2025
b38e8d3
build(deps-dev): bump prettier from 3.5.0 to 3.5.1 (#3709)
dependabot[bot] Feb 18, 2025
6cfd146
build(deps-dev): bump eslint-import-resolver-typescript (#3710)
dependabot[bot] Feb 18, 2025
a2e685f
build(deps): bump @octokit/plugin-paginate-rest from 11.4.1 to 11.4.2…
dependabot[bot] Feb 18, 2025
eac17dc
build(deps-dev): bump @types/node from 18.19.75 to 18.19.76 (#3712)
dependabot[bot] Feb 18, 2025
a56e7a5
build(deps): bump @octokit/core from 6.1.3 to 6.1.4 (#3711)
dependabot[bot] Feb 18, 2025
25575a1
build: update distribution (#3736)
actions-bot Feb 18, 2025
367180c
ci: remove testv5 cmd
peter-evans Feb 21, 2025
dd2324f
fix: use showFileAtRefBase64 to read per-commit file contents (#3744)
grahamc Feb 24, 2025
b23b62d
build(deps-dev): bump ts-jest from 29.2.5 to 29.2.6 (#3751)
dependabot[bot] Feb 25, 2025
a92c90f
build(deps-dev): bump eslint-import-resolver-typescript (#3752)
dependabot[bot] Feb 25, 2025
63e5829
build(deps): bump @octokit/plugin-paginate-rest from 11.4.2 to 11.4.3…
dependabot[bot] Feb 25, 2025
13c47c5
build(deps-dev): bump prettier from 3.5.1 to 3.5.2 (#3754)
dependabot[bot] Feb 25, 2025
6f7efd1
test: update cpr-example-command
peter-evans Mar 3, 2025
271a8d0
fix: suppress output for some git operations (#3776)
peter-evans Mar 4, 2025
599a7e6
build(deps-dev): bump prettier from 3.5.2 to 3.5.3 (#3781)
dependabot[bot] Mar 4, 2025
c16e6f5
build(deps-dev): bump typescript from 5.7.3 to 5.8.2 (#3782)
dependabot[bot] Mar 4, 2025
58258f4
build(deps-dev): bump @types/node from 18.19.76 to 18.19.79 (#3783)
dependabot[bot] Mar 4, 2025
7b02d9a
build(deps-dev): bump @types/node from 18.19.79 to 18.19.80 (#3798)
dependabot[bot] Mar 11, 2025
a7759c6
build(deps-dev): bump eslint-import-resolver-typescript (#3799)
dependabot[bot] Mar 11, 2025
6282253
build(deps-dev): bump eslint-import-resolver-typescript (#3810)
dependabot[bot] Mar 18, 2025
5ddfb02
build(deps-dev): bump undici from 6.21.1 to 6.21.2 (#3811)
dependabot[bot] Mar 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ jobs:
```
/test repository=${{ github.event.pull_request.head.repo.full_name }} ref=${{ github.event.pull_request.head.ref }} build=true
```
```
/test repository=${{ github.event.pull_request.head.repo.full_name }} ref=${{ github.event.pull_request.head.ref }} build=true sign-commits=true
```

package:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
Expand All @@ -121,7 +124,7 @@ jobs:
name: dist
path: dist
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.ACTIONS_BOT_TOKEN }}
commit-message: 'build: update distribution'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/cpr-example-command.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
labels: |
report
automated pr
assignees: peter-evans
reviewers: peter-evans
assignees: retepsnave
reviewers: retepsnave
milestone: 1
draft: false
branch: example-patches
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/slash-command-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ jobs:
"repository": "peter-evans/create-pull-request-tests",
"named_args": true
},
{
"command": "testv5",
"permission": "admin",
"repository": "peter-evans/create-pull-request-tests",
"named_args": true
},
{
"command": "clean",
"permission": "admin",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-major-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ on:
type: choice
description: The major version tag to update
options:
- v5
- v6
- v7

jobs:
tag:
Expand Down
76 changes: 43 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ Create Pull Request action will:
- tracked (modified) files
- commits made during the workflow that have not been pushed
2. Commit all changes to a new branch, or update an existing pull request branch.
3. Create a pull request to merge the new branch into the base—the branch checked out in the workflow.
3. Create or update a pull request to merge the branch into the base—the branch checked out in the workflow.

## Documentation

- [Concepts, guidelines and advanced usage](docs/concepts-guidelines.md)
- [Examples](docs/examples.md)
- [Updating to v6](docs/updating.md)
- [Updating to v7](docs/updating.md)
- [Common issues](docs/common-issues.md)

## Usage
Expand All @@ -32,10 +32,10 @@ Create Pull Request action will:
# Make changes to pull request here

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
```

You can also pin to a [specific release](https://github.com/peter-evans/create-pull-request/releases) version in the format `@v6.x.x`
You can also pin to a [specific release](https://github.com/peter-evans/create-pull-request/releases) version in the format `@v7.x.x`

### Workflow permissions

Expand All @@ -48,12 +48,10 @@ For repositories belonging to an organization, this setting can be managed by ad

All inputs are **optional**. If not set, sensible defaults will be used.

**Note**: If you want pull requests created by this action to trigger an `on: push` or `on: pull_request` workflow then you cannot use the default `GITHUB_TOKEN`. See the [documentation here](docs/concepts-guidelines.md#triggering-further-workflow-runs) for workarounds.

| Name | Description | Default |
| --- | --- | --- |
| `token` | `GITHUB_TOKEN` (permissions `contents: write` and `pull-requests: write`) or a `repo` scoped [Personal Access Token (PAT)](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token). | `GITHUB_TOKEN` |
| `git-token` | The [Personal Access Token (PAT)](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) that the action will use for git operations. | Defaults to the value of `token` |
| `token` | The token that the action will use to create and update the pull request. See [token](#token). | `GITHUB_TOKEN` |
| `branch-token` | The token that the action will use to create and update the branch. See [branch-token](#branch-token). | Defaults to the value of `token` |
| `path` | Relative path under `GITHUB_WORKSPACE` to the repository. | `GITHUB_WORKSPACE` |
| `add-paths` | A comma or newline-separated list of file paths to commit. Paths should follow git's [pathspec](https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-aiddefpathspecapathspec) syntax. If no paths are specified, all new and modified files are added. See [Add specific paths](#add-specific-paths). | |
| `commit-message` | The message to use when committing changes. See [commit-message](#commit-message). | `[create-pull-request] automated change` |
Expand All @@ -65,6 +63,7 @@ All inputs are **optional**. If not set, sensible defaults will be used.
| `branch-suffix` | The branch suffix type when using the alternative branching strategy. Valid values are `random`, `timestamp` and `short-commit-hash`. See [Alternative strategy](#alternative-strategy---always-create-a-new-pull-request-branch) for details. | |
| `base` | Sets the pull request base branch. | Defaults to the branch checked out in the workflow. |
| `push-to-fork` | A fork of the checked-out parent repository to which the pull request branch will be pushed. e.g. `owner/repo-fork`. The pull request will be created to merge the fork's branch into the parent's base. See [push pull request branches to a fork](docs/concepts-guidelines.md#push-pull-request-branches-to-a-fork) for details. | |
| `sign-commits` | Sign commits as `github-actions[bot]` when using `GITHUB_TOKEN`, or your own bot when using [GitHub App tokens](docs/concepts-guidelines.md#authenticating-with-github-app-generated-tokens). See [commit signing](docs/concepts-guidelines.md#commit-signature-verification-for-bots) for details. | `false` |
| `title` | The title of the pull request. | `Changes by create-pull-request action` |
| `body` | The body of the pull request. | `Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action` |
| `body-path` | The path to a file containing the pull request body. Takes precedence over `body`. | |
Expand All @@ -73,7 +72,35 @@ All inputs are **optional**. If not set, sensible defaults will be used.
| `reviewers` | A comma or newline-separated list of reviewers (GitHub usernames) to request a review from. | |
| `team-reviewers` | A comma or newline-separated list of GitHub teams to request a review from. Note that a `repo` scoped [PAT](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token), or equivalent [GitHub App permissions](docs/concepts-guidelines.md#authenticating-with-github-app-generated-tokens), are required. | |
| `milestone` | The number of the milestone to associate this pull request with. | |
| `draft` | Create a [draft pull request](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests#draft-pull-requests). It is not possible to change draft status after creation except through the web interface. | `false` |
| `draft` | Create a [draft pull request](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests#draft-pull-requests). Valid values are `true` (only on create), `always-true` (on create and update), and `false`. | `false` |
| `maintainer-can-modify` | Indicates whether [maintainers can modify](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/allowing-changes-to-a-pull-request-branch-created-from-a-fork) the pull request. | `true` |

#### token

The token input defaults to the repository's `GITHUB_TOKEN`.

> [!IMPORTANT]
> - If you want pull requests created by this action to trigger an `on: push` or `on: pull_request` workflow then you cannot use the default `GITHUB_TOKEN`. See the [documentation here](docs/concepts-guidelines.md#triggering-further-workflow-runs) for further details.
> - If using the repository's `GITHUB_TOKEN` and your repository was created after 2nd February 2023, the [default permission is read-only](https://github.blog/changelog/2023-02-02-github-actions-updating-the-default-github_token-permissions-to-read-only/). Elevate the [permissions](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token#defining-access-for-the-github_token-permissions) in your workflow.
> ```yml
> permissions:
> contents: write
> pull-requests: write
> ```

Other token options:
- Classic [Personal Access Token (PAT)](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) with `repo` scope.
- Fine-grained [Personal Access Token (PAT)](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) with `contents: write` and `pull-requests: write` scopes.
- [GitHub App tokens](docs/concepts-guidelines.md#authenticating-with-github-app-generated-tokens) with `contents: write` and `pull-requests: write` scopes.

> [!TIP]
> If pull requests could contain changes to Actions workflows you may also need the `workflows` scope.

#### branch-token

The action first creates a branch, and then creates a pull request for the branch.
For some rare use cases it can be useful, or even necessary, to use different tokens for these operations.
It is not advisable to use this input unless you know you need to.

#### commit-message

Expand Down Expand Up @@ -104,7 +131,7 @@ If you want branches to be deleted immediately on merge then you should use GitH
For self-hosted runners behind a corporate proxy set the `https_proxy` environment variable.
```yml
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
env:
https_proxy: http://<proxy_address>:<port>
```
Expand All @@ -115,17 +142,18 @@ The following outputs can be used by subsequent workflow steps.

- `pull-request-number` - The pull request number.
- `pull-request-url` - The URL of the pull request.
- `pull-request-operation` - The pull request operation performed by the action, `created`, `updated` or `closed`.
- `pull-request-operation` - The pull request operation performed by the action, `created`, `updated`, `closed` or `none`.
- `pull-request-head-sha` - The commit SHA of the pull request branch.
- `pull-request-branch` - The branch name of the pull request.
- `pull-request-commits-verified` - Whether GitHub considers the signature of the branch's commits to be verified; `true` or `false`.

Step outputs can be accessed as in the following example.
Note that in order to read the step outputs the action step must have an id.

```yml
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
- name: Check outputs
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
Expand Down Expand Up @@ -188,7 +216,7 @@ File changes that do not match one of the paths will be stashed and restored aft

```yml
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
with:
add-paths: |
*.java
Expand All @@ -215,25 +243,7 @@ Note that the repository must be checked out on a branch with a remote, it won't
- name: Uncommitted change
run: date +%s > report.txt
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
```

### Create a project card

To create a project card for the pull request, pass the `pull-request-number` step output to [create-or-update-project-card](https://github.com/peter-evans/create-or-update-project-card) action.

```yml
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6

- name: Create or Update Project Card
if: ${{ steps.cpr.outputs.pull-request-number }}
uses: peter-evans/create-or-update-project-card@v2
with:
project-name: My project
column-name: My column
issue-number: ${{ steps.cpr.outputs.pull-request-number }}
uses: peter-evans/create-pull-request@v7
```

### Auto-merge
Expand All @@ -260,7 +270,7 @@ jobs:

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.PAT }}
commit-message: Update report
Expand Down
Loading