Skip to content

Releases: gr2m/octokit-plugin-create-pull-request

v5.1.1

04 Sep 01:24
445e847
Compare
Choose a tag to compare

5.1.1 (2023-09-04)

Bug Fixes

  • avoid creating blops for UTF-8 text files (#133) (445e847)

v5.1.0

19 Jun 21:48
0295fd0
Compare
Choose a tag to compare

5.1.0 (2023-06-19)

Features

v5.0.0

04 Jun 18:18
ac571dc
Compare
Choose a tag to compare

5.0.0 (2023-06-04)

Features

  • allow update function to trigger file deletion (#130) (ac571dc)

BREAKING CHANGES

  • The meaning of null has changed!

Previously the following snippet was causing a file deletion.

files: {
  "file/to/delete.txt": null
}

If you want to retain this behavior you must use the DELETE_FILE Symbol

import { createPullRequest, DELETE_FILE } from 'octokit-plugin-create-pull-request';

files: {
  "file/to/delete.txt": DELETE_FILE
}

If you want to trigger a file deletion from an update function, you can now do so by returning the deleteFile Symbol.

import { createPullRequest, DELETE_FILE } from 'octokit-plugin-create-pull-request';

files: {
  "file/to/delete.txt": ({ exists, encoding, content }) => {
    const fileContent = Buffer.from(content, encoding).toString("utf-8")

    if (fileContent.includes('abc')) {
      // trigger file deletion
      return DELETE_FILE
    }

    // do not alter file content
    return null;
  }
}

v4.2.2

16 May 20:54
f961a6d
Compare
Choose a tag to compare

4.2.2 (2023-05-16)

Bug Fixes

  • build: add script to fix package.json before publishing (#127) (f961a6d)

v4.2.1

16 May 20:53
636cddf
Compare
Choose a tag to compare

4.2.1 (2023-05-16)

Bug Fixes

  • run file update functions sequentially (#128) (636cddf)

v4.2.0

16 May 16:36
3fe11f6
Compare
Choose a tag to compare

4.2.0 (2023-05-16)

Features

v4.1.2

27 Apr 05:47
3064d0b
Compare
Choose a tag to compare

4.1.2 (2023-04-27)

Bug Fixes

  • deps: bump yaml and semantic-release (3064d0b)

v4.1.1

21 Jan 23:56
10e9a30
Compare
Choose a tag to compare

4.1.1 (2023-01-21)

Bug Fixes

  • add check to make sure that the head and the base are different (#115) (10e9a30)

v4.1.0

09 Jan 23:46
91f6fed
Compare
Choose a tag to compare

4.1.0 (2023-01-09)

Features

v4.0.0

25 Oct 22:14
b249db4
Compare
Choose a tag to compare

4.0.0 (2022-10-25)

Bug Fixes

  • deps: update @octokit/types to latest (04a1ac7)

Build System

BREAKING CHANGES

  • deps: stop testing in Node 12