Skip to content

Releases: peter-evans/create-pull-request

Create Pull Request v3.4.0

17 Sep 02:26
da928d5
Compare
Choose a tag to compare
  • Adds the action output pull-request-url, the URL of the created or updated pull request.

Create Pull Request v3.3.0

07 Sep 00:42
44f76dd
Compare
Choose a tag to compare
  • Fixes a bug that occurred when squash merging pull requests and leaving the branch undeleted
  • Adds a delete-branch input. When true the action deletes the branch when closing pull requests, and when undeleted after merging.

Create Pull Request v3.2.0

30 Aug 01:13
9bf4b30
Compare
Choose a tag to compare
  • Adds support for workflow events that checkout a commit and leave repositories in a "detached HEAD" state. The action can now handle this situation provided it is supplied with the base input. See events which checkout a commit.

Create Pull Request v3.1.2

19 Aug 08:50
82c423c
Compare
Choose a tag to compare
  • Fixes a bug where the action would fail to create a pull request for branches that are already up to date. This condition can occur when closing a pull request and not deleting the branch.

Create Pull Request v3.1.1

19 Aug 05:34
2570a75
Compare
Choose a tag to compare
  • Fixes a minor issue when using push-to-fork. It's now possible for the fork's branch to be the same name as the parent's base.

Create Pull Request v3.1.0

31 Jul 09:16
40b1b24
Compare
Choose a tag to compare
  • Adds input signoff which when set to true will add a Signed-off-by line by the committer at the end of the commit log message. This allows created pull requests to meet requirements set by some projects for commits to adhere to the Developers Certificate of Origin (DCO).

Create Pull Request v3.0.0

23 Jul 06:26
ebc5e02
Compare
Choose a tag to compare

Breaking changes

  • The author input now defaults to the user who triggered the workflow run. This default is set via action.yml as ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>, where github.actor is the GitHub user account associated with the run. For example, peter-evans <peter-evans@users.noreply.github.com>.

    To continue to use the v2 default, set the author input as follows.

        - uses: peter-evans/create-pull-request@v3
          with:
            author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • The author and committer inputs are no longer cross-used if only one is supplied. Additionally, when neither input is set, the author and committer are no longer determined from an existing identity set in git config. In both cases, the inputs will fall back to their default set in action.yml.

  • Deprecated inputs project and project-column have been removed in favour of an additional action step. See Create a project card for details.

  • Deprecated output pr_number has been removed in favour of pull-request-number.

  • Input request-to-parent has been removed in favour of push-to-fork. This greatly simplifies pushing the pull request branch to a fork of the parent repository. See Push pull request branches to a fork for details.

    e.g.

        - uses: actions/checkout@v2
    
        # Make changes to pull request here
    
        - uses: peter-evans/create-pull-request@v3
          with:
            token: ${{ secrets.MACHINE_USER_PAT }}
            push-to-fork: machine-user/fork-of-repository

New features

  • The action has been converted to Typescript giving it a significant performance improvement.

  • If you run this action in a container, or on self-hosted runners, python and pip are no longer required dependencies. See Running in a container or on self-hosted runners for details.

  • Inputs labels, assignees, reviewers and team-reviewers can now be newline separated, or comma separated.
    e.g.

            labels: |
              chore
              dependencies
              automated

Create Pull Request v2.8.1

27 Jun 08:18
4d3b0a4
Compare
Choose a tag to compare
  • Minor fix to correctly parse repository URLs with embedded credentials

Create Pull Request v2.8.0

17 May 09:49
172ec76
Compare
Choose a tag to compare
  • Converted Javascript action wrapper to Typescript

Create Pull Request v2.7.3

17 May 09:00
0f423da
Compare
Choose a tag to compare
  • Fixes a missing definition for input draft that caused a warning annotation