Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: peter-evans/create-pull-request
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v6.0.5
Choose a base ref
...
head repository: peter-evans/create-pull-request
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v6.1.0
Choose a head ref

Commits on Apr 30, 2024

  1. build(deps): bump undici from 6.14.1 to 6.15.0 (#2873)

    Bumps [undici](https://github.com/nodejs/undici) from 6.14.1 to 6.15.0.
    - [Release notes](https://github.com/nodejs/undici/releases)
    - [Commits](nodejs/undici@v6.14.1...v6.15.0)
    
    ---
    updated-dependencies:
    - dependency-name: undici
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 30, 2024
    Copy the full SHA
    5874ea5 View commit details
  2. build: update distribution (#2878)

    actions-bot authored Apr 30, 2024
    Copy the full SHA
    8c75f4a View commit details

Commits on May 2, 2024

  1. Copy the full SHA
    479b20f View commit details

Commits on May 7, 2024

  1. Copy the full SHA
    ce1b5d4 View commit details
  2. build(deps-dev): bump @types/node from 18.19.31 to 18.19.32 (#2884)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.31 to 18.19.32.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored May 7, 2024
    Copy the full SHA
    15410bd View commit details

Commits on May 21, 2024

  1. --- (#2890)

    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored May 21, 2024
    Copy the full SHA
    59e72ed View commit details
  2. --- (#2892)

    updated-dependencies:
    - dependency-name: ts-jest
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored May 21, 2024
    Copy the full SHA
    d9e8da8 View commit details
  3. --- (#2891)

    updated-dependencies:
    - dependency-name: undici
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored May 21, 2024
    Copy the full SHA
    0a0317b View commit details
  4. build: update distribution (#2907)

    actions-bot authored May 21, 2024
    Copy the full SHA
    bdffaf9 View commit details

Commits on May 28, 2024

  1. build(deps): bump undici from 6.18.0 to 6.18.1 (#2913)

    Bumps [undici](https://github.com/nodejs/undici) from 6.18.0 to 6.18.1.
    - [Release notes](https://github.com/nodejs/undici/releases)
    - [Commits](nodejs/undici@v6.18.0...v6.18.1)
    
    ---
    updated-dependencies:
    - dependency-name: undici
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored May 28, 2024
    Copy the full SHA
    7c71392 View commit details
  2. build(deps-dev): bump ts-jest from 29.1.3 to 29.1.4 (#2914)

    Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.1.3 to 29.1.4.
    - [Release notes](https://github.com/kulshekhar/ts-jest/releases)
    - [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
    - [Commits](kulshekhar/ts-jest@v29.1.3...v29.1.4)
    
    ---
    updated-dependencies:
    - dependency-name: ts-jest
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored May 28, 2024
    Copy the full SHA
    b67febc View commit details
  3. build: update distribution (#2921)

    actions-bot authored May 28, 2024
    Copy the full SHA
    b5ed4c3 View commit details

Commits on Jun 4, 2024

  1. build(deps): bump undici from 6.18.1 to 6.18.2 (#2934)

    Bumps [undici](https://github.com/nodejs/undici) from 6.18.1 to 6.18.2.
    - [Release notes](https://github.com/nodejs/undici/releases)
    - [Commits](nodejs/undici@v6.18.1...v6.18.2)
    
    ---
    updated-dependencies:
    - dependency-name: undici
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 4, 2024
    Copy the full SHA
    1ec1358 View commit details
  2. build(deps-dev): bump prettier from 3.2.5 to 3.3.0 (#2936)

    Bumps [prettier](https://github.com/prettier/prettier) from 3.2.5 to 3.3.0.
    - [Release notes](https://github.com/prettier/prettier/releases)
    - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
    - [Commits](prettier/prettier@3.2.5...3.3.0)
    
    ---
    updated-dependencies:
    - dependency-name: prettier
      dependency-type: direct:development
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 4, 2024
    Copy the full SHA
    098cf60 View commit details
  3. build(deps-dev): bump @types/node from 18.19.33 to 18.19.34 (#2935)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.33 to 18.19.34.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 4, 2024
    Copy the full SHA
    bad19b8 View commit details
  4. build: update distribution (#2947)

    actions-bot authored Jun 4, 2024
    Copy the full SHA
    e30bbbb View commit details

Commits on Jun 11, 2024

  1. build(deps-dev): bump prettier from 3.3.0 to 3.3.2 (#2959)

    Bumps [prettier](https://github.com/prettier/prettier) from 3.3.0 to 3.3.2.
    - [Release notes](https://github.com/prettier/prettier/releases)
    - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
    - [Commits](prettier/prettier@3.3.0...3.3.2)
    
    ---
    updated-dependencies:
    - dependency-name: prettier
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 11, 2024
    Copy the full SHA
    7318c0b View commit details
  2. build(deps-dev): bump braces from 3.0.2 to 3.0.3 (#2962)

    Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
    - [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
    - [Commits](micromatch/braces@3.0.2...3.0.3)
    
    ---
    updated-dependencies:
    - dependency-name: braces
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 11, 2024
    Copy the full SHA
    ce00808 View commit details

Commits on Jun 17, 2024

  1. build(deps-dev): bump ws from 8.11.0 to 8.17.1 (#2970)

    Bumps [ws](https://github.com/websockets/ws) from 8.11.0 to 8.17.1.
    - [Release notes](https://github.com/websockets/ws/releases)
    - [Commits](websockets/ws@8.11.0...8.17.1)
    
    ---
    updated-dependencies:
    - dependency-name: ws
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 17, 2024
    Copy the full SHA
    ca98a71 View commit details

Commits on Jun 18, 2024

  1. build(deps-dev): bump ts-jest from 29.1.4 to 29.1.5 (#2975)

    Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 29.1.4 to 29.1.5.
    - [Release notes](https://github.com/kulshekhar/ts-jest/releases)
    - [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
    - [Commits](kulshekhar/ts-jest@v29.1.4...v29.1.5)
    
    ---
    updated-dependencies:
    - dependency-name: ts-jest
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 18, 2024
    Copy the full SHA
    db1713d View commit details
  2. build(deps-dev): bump @types/node from 18.19.34 to 18.19.36 (#2976)

    Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.19.34 to 18.19.36.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/node"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 18, 2024
    Copy the full SHA
    5f7c158 View commit details
  3. build(deps): bump undici from 6.18.2 to 6.19.2 (#2977)

    Bumps [undici](https://github.com/nodejs/undici) from 6.18.2 to 6.19.2.
    - [Release notes](https://github.com/nodejs/undici/releases)
    - [Commits](nodejs/undici@v6.18.2...v6.19.2)
    
    ---
    updated-dependencies:
    - dependency-name: undici
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 18, 2024
    Copy the full SHA
    36f7648 View commit details
  4. build: update distribution (#2990)

    actions-bot authored Jun 18, 2024
    Copy the full SHA
    4383ba9 View commit details
  5. feat: add branch name output (#2995)

    peter-evans authored Jun 18, 2024
    Copy the full SHA
    c5a7806 View commit details
Showing with 1,737 additions and 914 deletions.
  1. +2 −1 README.md
  2. +2 −0 action.yml
  3. +1,690 −880 dist/index.js
  4. +6 −1 docs/common-issues.md
  5. +32 −28 package-lock.json
  6. +4 −4 package.json
  7. +1 −0 src/create-pull-request.ts
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ All inputs are **optional**. If not set, sensible defaults will be used.
| `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` |
| `committer` | The committer name and email address in the format `Display Name <email@address.com>`. Defaults to the GitHub Actions bot user. | `github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>` |
| `committer` | The committer name and email address in the format `Display Name <email@address.com>`. Defaults to the GitHub Actions bot user on github.com. | `github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>` |
| `author` | The author name and email address in the format `Display Name <email@address.com>`. Defaults to the user who triggered the workflow run. | `${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>` |
| `signoff` | Add [`Signed-off-by`](https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---signoff) line by the committer at the end of the commit log message. | `false` |
| `branch` | The pull request branch name. | `create-pull-request/patch` |
@@ -117,6 +117,7 @@ The following outputs can be used by subsequent workflow steps.
- `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-head-sha` - The commit SHA of the pull request branch.
- `pull-request-branch` - The branch name of the pull request.

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.
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -83,6 +83,8 @@ outputs:
description: 'The pull request operation performed by the action, `created`, `updated` or `closed`.'
pull-request-head-sha:
description: 'The commit SHA of the pull request branch.'
pull-request-branch:
description: 'The pull request branch name'
runs:
using: 'node20'
main: 'dist/index.js'
2,570 changes: 1,690 additions & 880 deletions dist/index.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion docs/common-issues.md
Original file line number Diff line number Diff line change
@@ -35,7 +35,12 @@ The reason is that I'm trying very hard to keep the interface for this action to
Git hooks must be installed after a repository is checked out in order for them to work.
So the straightforward solution is to just not install them during the workflow where this action is used.

- If hooks are automatically enabled by a framework, use an option provided by the framework to disable them. For example, for Husky users, they can be disabled with the `--ignore-scripts` flag.
- If hooks are automatically enabled by a framework, use an option provided by the framework to disable them. For example, for Husky users, they can be disabled with the `--ignore-scripts` flag, or by setting the `HUSKY` environment variable when the action runs.
```yml
uses: peter-evans/create-pull-request@v6
env:
HUSKY: '0'
```
- If hooks are installed in a script, then add a condition checking if the `CI` environment variable exists.
```sh
#!/bin/sh
60 changes: 32 additions & 28 deletions package-lock.json
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -35,12 +35,12 @@
"@octokit/plugin-paginate-rest": "^5.0.1",
"@octokit/plugin-rest-endpoint-methods": "^6.8.1",
"proxy-from-env": "^1.1.0",
"undici": "^6.14.1",
"undici": "^6.19.2",
"uuid": "^9.0.1"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^18.19.31",
"@types/node": "^18.19.36",
"@typescript-eslint/parser": "^5.62.0",
"@vercel/ncc": "^0.38.1",
"eslint": "^8.57.0",
@@ -53,8 +53,8 @@
"jest-circus": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"js-yaml": "^4.1.0",
"prettier": "^3.2.5",
"ts-jest": "^29.1.2",
"prettier": "^3.3.2",
"ts-jest": "^29.1.5",
"typescript": "^4.9.5"
}
}
1 change: 1 addition & 0 deletions src/create-pull-request.ts
Original file line number Diff line number Diff line change
@@ -223,6 +223,7 @@ export async function createPullRequest(inputs: Inputs): Promise<void> {
core.setOutput('pull-request-operation', 'updated')
}
core.setOutput('pull-request-head-sha', result.headSha)
core.setOutput('pull-request-branch', inputs.branch)
// Deprecated
core.exportVariable('PULL_REQUEST_NUMBER', pull.number)
core.endGroup()