Releases: peter-evans/create-pull-request
Create Pull Request v7.0.1
⚙️ Fixes an issue affecting one particular use case where the action fails on diff --stat
with fatal: ambiguous argument
.
What's Changed
- build(deps): bump peter-evans/create-pull-request from 6 to 7 by @dependabot in #3283
- build(deps-dev): bump @types/node from 18.19.46 to 18.19.48 by @dependabot in #3288
- build(deps-dev): bump @typescript-eslint/parser from 7.17.0 to 7.18.0 by @dependabot in #3289
- build(deps-dev): bump eslint-plugin-import from 2.29.1 to 2.30.0 by @dependabot in #3290
- build(deps-dev): bump @typescript-eslint/eslint-plugin from 7.17.0 to 7.18.0 by @dependabot in #3291
- fix: handle ambiguous argument failure on diff stat by @peter-evans in #3312
Full Changelog: v7.0.0...v7.0.1
Create Pull Request v7.0.0
✨ Now supports commit signing with bot-generated tokens! See "What's new" below. ✍️🤖
Behaviour changes
- Action input
git-token
has been renamedbranch-token
, to be more clear about its purpose. Thebranch-token
is the token that the action will use to create and update the branch. - The action now handles requests that have been rate-limited by GitHub. Requests hitting a primary rate limit will retry twice, for a total of three attempts. Requests hitting a secondary rate limit will not be retried.
- The
pull-request-operation
output now returnsnone
when no operation was executed. - Removed deprecated output environment variable
PULL_REQUEST_NUMBER
. Please use thepull-request-number
action output instead.
What's new
- The action can now sign commits as
github-actions[bot]
when usingGITHUB_TOKEN
, or your own bot when using GitHub App tokens. See commit signing for details. - Action input
draft
now accepts a new valuealways-true
. This will set the pull request to draft status when the pull request is updated, as well as on creation. - A new action input
maintainer-can-modify
indicates whether maintainers can modify the pull request. The default istrue
, which retains the existing behaviour of the action. - A new output
pull-request-commits-verified
returnstrue
orfalse
, indicating whether GitHub considers the signature of the branch's commits to be verified.
What's Changed
- build(deps-dev): bump @types/node from 18.19.36 to 18.19.39 by @dependabot in #3000
- build(deps-dev): bump ts-jest from 29.1.5 to 29.2.0 by @dependabot in #3008
- build(deps-dev): bump prettier from 3.3.2 to 3.3.3 by @dependabot in #3018
- build(deps-dev): bump ts-jest from 29.2.0 to 29.2.2 by @dependabot in #3019
- build(deps-dev): bump eslint-plugin-prettier from 5.1.3 to 5.2.1 by @dependabot in #3035
- build(deps-dev): bump @types/node from 18.19.39 to 18.19.41 by @dependabot in #3037
- build(deps): bump undici from 6.19.2 to 6.19.4 by @dependabot in #3036
- build(deps-dev): bump ts-jest from 29.2.2 to 29.2.3 by @dependabot in #3038
- build(deps-dev): bump @types/node from 18.19.41 to 18.19.42 by @dependabot in #3070
- build(deps): bump undici from 6.19.4 to 6.19.5 by @dependabot in #3086
- build(deps-dev): bump @types/node from 18.19.42 to 18.19.43 by @dependabot in #3087
- build(deps-dev): bump ts-jest from 29.2.3 to 29.2.4 by @dependabot in #3088
- build(deps): bump undici from 6.19.5 to 6.19.7 by @dependabot in #3145
- build(deps-dev): bump @types/node from 18.19.43 to 18.19.44 by @dependabot in #3144
- Update distribution by @actions-bot in #3154
- build(deps): bump undici from 6.19.7 to 6.19.8 by @dependabot in #3213
- build(deps-dev): bump @types/node from 18.19.44 to 18.19.45 by @dependabot in #3214
- Update distribution by @actions-bot in #3221
- build(deps-dev): bump eslint-import-resolver-typescript from 3.6.1 to 3.6.3 by @dependabot in #3255
- build(deps-dev): bump @types/node from 18.19.45 to 18.19.46 by @dependabot in #3254
- build(deps-dev): bump ts-jest from 29.2.4 to 29.2.5 by @dependabot in #3256
- v7 - signed commits by @peter-evans in #3057
New Contributors
- @rustycl0ck made their first contribution in #3057
Full Changelog: v6.1.0...v7.0.0
Create Pull Request v6.1.0
✨ Adds pull-request-branch
as an action output.
What's Changed
- build(deps): bump undici from 6.14.1 to 6.15.0 by @dependabot in #2873
- Update distribution by @actions-bot in #2878
- build(deps-dev): bump @types/node from 18.19.31 to 18.19.32 by @dependabot in #2884
- build(deps-dev): bump @types/node from 18.19.32 to 18.19.33 by @dependabot in #2890
- build(deps-dev): bump ts-jest from 29.1.2 to 29.1.3 by @dependabot in #2892
- build(deps): bump undici from 6.15.0 to 6.18.0 by @dependabot in #2891
- Update distribution by @actions-bot in #2907
- build(deps): bump undici from 6.18.0 to 6.18.1 by @dependabot in #2913
- build(deps-dev): bump ts-jest from 29.1.3 to 29.1.4 by @dependabot in #2914
- Update distribution by @actions-bot in #2921
- build(deps): bump undici from 6.18.1 to 6.18.2 by @dependabot in #2934
- build(deps-dev): bump prettier from 3.2.5 to 3.3.0 by @dependabot in #2936
- build(deps-dev): bump @types/node from 18.19.33 to 18.19.34 by @dependabot in #2935
- Update distribution by @actions-bot in #2947
- build(deps-dev): bump prettier from 3.3.0 to 3.3.2 by @dependabot in #2959
- build(deps-dev): bump braces from 3.0.2 to 3.0.3 by @dependabot in #2962
- build(deps-dev): bump ws from 8.11.0 to 8.17.1 by @dependabot in #2970
- build(deps-dev): bump ts-jest from 29.1.4 to 29.1.5 by @dependabot in #2975
- build(deps-dev): bump @types/node from 18.19.34 to 18.19.36 by @dependabot in #2976
- build(deps): bump undici from 6.18.2 to 6.19.2 by @dependabot in #2977
- Update distribution by @actions-bot in #2990
- feat: add branch name output by @peter-evans in #2995
Full Changelog: v6.0.5...v6.1.0
Create Pull Request v6.0.5
⚙️ Fixes an issue with proxy support for users that run self-hosted behind a proxy.
What's Changed
- fix: update proxy support to follow octokit change to fetch api by @peter-evans in #2867
Full Changelog: v6.0.4...v6.0.5
Create Pull Request v6.0.4
⚡ Improves performance in some cases for very large git repositories.
What's Changed
- perf: limit the fetch depth of pr branch by @peter-evans in #2857
Full Changelog: v6.0.3...v6.0.4
Create Pull Request v6.0.3
⚡ Improves performance of the push-to-fork
feature.
What's Changed
- build(deps-dev): bump @types/node from 18.19.23 to 18.19.25 by @dependabot in #2826
- build(deps-dev): bump @types/node from 18.19.25 to 18.19.26 by @dependabot in #2831
- build(deps-dev): bump @types/node from 18.19.26 to 18.19.28 by @dependabot in #2836
- build(deps-dev): bump @types/node from 18.19.28 to 18.19.31 by @dependabot in #2842
- fix: drop unnecessary fetch with unshallow on push-to-fork by @peter-evans in #2849
Full Changelog: v6.0.2...v6.0.3
Create Pull Request v6.0.2
⚡ Improves performance in some cases where the action rebases changes on to the specified base
.
What's Changed
- build(deps-dev): bump eslint-plugin-github from 4.10.1 to 4.10.2 by @dependabot in #2797
- build(deps-dev): bump @types/node from 18.19.18 to 18.19.21 by @dependabot in #2798
- build(deps-dev): bump @types/node from 18.19.21 to 18.19.23 by @dependabot in #2811
- perf: shallow fetch the actual base when rebasing from working base by @peter-evans in #2816
New Contributors
- @webmonarch made their first contribution in #2816
Full Changelog: v6.0.1...v6.0.2
Create Pull Request v6.0.1
⚙️ Fixes an issue where updating a pull request leads to the error Cannot read properties of undefined (reading 'number')
. This was likely caused by GitHub fixing a long standing bug with an API endpoint, resulting in a breaking change.
What's Changed
- build(deps-dev): bump @types/jest from 29.5.11 to 29.5.12 by @dependabot in #2730
- build(deps-dev): bump prettier from 3.2.4 to 3.2.5 by @dependabot in #2731
- build(deps-dev): bump @types/node from 18.19.10 to 18.19.14 by @dependabot in #2732
- build(deps): bump peter-evans/slash-command-dispatch from 3 to 4 by @dependabot in #2748
- build(deps): bump peter-evans/create-pull-request from 5 to 6 by @dependabot in #2747
- build(deps-dev): bump @types/node from 18.19.14 to 18.19.15 by @dependabot in #2759
- build(deps-dev): bump eslint-plugin-jest from 27.6.3 to 27.9.0 by @dependabot in #2769
- build(deps-dev): bump @types/node from 18.19.15 to 18.19.17 by @dependabot in #2768
- build(deps-dev): bump @types/node from 18.19.17 to 18.19.18 by @dependabot in #2780
- build(deps-dev): bump eslint from 8.56.0 to 8.57.0 by @dependabot in #2781
- fix: list pulls using the correct head format by @peter-evans in #2792
Full Changelog: v6.0.0...v6.0.1
Create Pull Request v6.0.0
Behaviour changes
- The default values for
author
andcommitter
have changed. See "What's new" below for details. If you are overriding the default values you will not be affected by this change. - On completion, the action now removes the temporary git remote configuration it adds when using
push-to-fork
. This should not affect you unless you were using the temporary configuration for some other purpose after the action completes.
What's new
- Updated runtime to Node.js 20
- The action now requires a minimum version of v2.308.0 for the Actions runner. Update self-hosted runners to v2.308.0 or later to ensure compatibility.
- The default value for
author
has been changed to${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
. The change adds the${{ github.actor_id }}+
prefix to the email address to align with GitHub's standard format for the author email address. - The default value for
committer
has been changed togithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
. This is to align with the default GitHub Actions bot user account. - Adds input
git-token
, the Personal Access Token (PAT) that the action will use for git operations. This input defaults to the value oftoken
. Use this input if you would like the action to use a different token for git operations than the one used for the GitHub API. push-to-fork
now supports pushing to sibling repositories in the same network.- Previously, when using
push-to-fork
, the action did not remove temporary git remote configuration it adds during execution. This has been fixed and the configuration is now removed when the action completes. - If the pull request body is truncated due to exceeding the maximum length, the action will now suffix the body with the message "...[Pull request body truncated]" to indicate that the body has been truncated.
- The action now uses
--unshallow
only when necessary, rather than as a default argument ofgit fetch
. This should improve performance, particularly for large git repositories with extensive commit history. - The action can now be executed on one GitHub server and create pull requests on a different GitHub server. Server products include GitHub hosted (github.com), GitHub Enterprise Server (GHES), and GitHub Enterprise Cloud (GHEC). For example, the action can be executed on GitHub hosted and create pull requests on a GHES or GHEC instance.
What's Changed
- Update distribution by @actions-bot in #2086
- fix crazy-max/ghaction-import-gp parameters by @fharper in #2177
- Update distribution by @actions-bot in #2364
- Use checkout v4 by @okuramasafumi in #2521
- Note about
delete-branch
by @dezren39 in #2631 - 98 dependency updates by @dependabot
New Contributors
- @fharper made their first contribution in #2177
- @okuramasafumi made their first contribution in #2521
- @dezren39 made their first contribution in #2631
Full Changelog: v5.0.2...v6.0.0
Create Pull Request v5.0.2
⚙️ Fixes an issue that occurs when using push-to-fork
and both base and head repositories are in the same org/user account.
What's Changed
- fix: specify head repo by @peter-evans in #2044
- 20 dependency updates by @dependabot
Full Changelog: v5.0.1...v5.0.2