├── .github └── workflows │ ├── release.yml │ ├── test.yml │ └── update-prettier.yml ├── .gitignore ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── package.json ├── scripts └── build.mjs ├── src ├── compose-create-pull-request.ts ├── constants.ts ├── create-commit.ts ├── create-tree.ts ├── index.ts ├── types.ts ├── value-to-tree-object.ts └── version.ts ├── test ├── base-head-same-value.test.ts ├── create-binary-file.test.ts ├── create-commits-with-author-and-committer.test.ts ├── create-files-in-sequence.test.ts ├── create-fork.test.ts ├── create-when-empty.test.ts ├── delete-files-function.test.ts ├── delete-files.test.ts ├── draft-pr-default-off.test.ts ├── draft-pr.test.ts ├── empty-commit-message.test.ts ├── empty-commits.test.ts ├── empty-update.test.ts ├── fixtures │ ├── create-binary-file.json │ ├── create-commits-with-author-and-committer.json │ ├── create-fork.json │ ├── create-when-empty.json │ ├── custom-base.json │ ├── delete-files-function.json │ ├── delete-files.json │ ├── empty-commit-message.json │ ├── empty-commits.json │ ├── empty-update.json │ ├── happy-path-with-mode.json │ ├── happy-path.json │ ├── labels-with-error.json │ ├── labels-without-permissions.json │ ├── labels.json │ ├── missing-authentication.json │ ├── multiple-commits.json │ ├── no-empty-commit.json │ ├── pull-request-exists.json │ ├── update-existing-pull-request.json │ ├── update-from-installation.json │ ├── update-readme.json │ ├── use-fork-blob.json │ └── use-fork.json ├── happy-path-with-mode.test.ts ├── happy-path.test.ts ├── labels-with-error.test.ts ├── labels-without-permissions.test.ts ├── labels.test.ts ├── missing-authentication.test.ts ├── multiple-commits.test.ts ├── no-empty-commit.test.ts ├── pull-request-exists.test.ts ├── smoke.test.ts ├── tsconfig.json ├── update-existing-pull-request.test.ts ├── update-from-installation.test.ts ├── update-readme.test.ts ├── use-custom-base.test.ts ├── use-fork-blob.test.ts └── use-fork.test.ts ├── tsconfig.json └── vite.config.js /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.github/workflows/update-prettier.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/.github/workflows/update-prettier.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .nyc_output 2 | coverage 3 | node_modules 4 | pkg -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/package.json -------------------------------------------------------------------------------- /scripts/build.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/scripts/build.mjs -------------------------------------------------------------------------------- /src/compose-create-pull-request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/src/compose-create-pull-request.ts -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/create-commit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/src/create-commit.ts -------------------------------------------------------------------------------- /src/create-tree.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/src/create-tree.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/value-to-tree-object.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/src/value-to-tree-object.ts -------------------------------------------------------------------------------- /src/version.ts: -------------------------------------------------------------------------------- 1 | export const VERSION = "0.0.0-development"; 2 | -------------------------------------------------------------------------------- /test/base-head-same-value.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/base-head-same-value.test.ts -------------------------------------------------------------------------------- /test/create-binary-file.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/create-binary-file.test.ts -------------------------------------------------------------------------------- /test/create-commits-with-author-and-committer.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/create-commits-with-author-and-committer.test.ts -------------------------------------------------------------------------------- /test/create-files-in-sequence.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/create-files-in-sequence.test.ts -------------------------------------------------------------------------------- /test/create-fork.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/create-fork.test.ts -------------------------------------------------------------------------------- /test/create-when-empty.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/create-when-empty.test.ts -------------------------------------------------------------------------------- /test/delete-files-function.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/delete-files-function.test.ts -------------------------------------------------------------------------------- /test/delete-files.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/delete-files.test.ts -------------------------------------------------------------------------------- /test/draft-pr-default-off.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/draft-pr-default-off.test.ts -------------------------------------------------------------------------------- /test/draft-pr.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/draft-pr.test.ts -------------------------------------------------------------------------------- /test/empty-commit-message.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/empty-commit-message.test.ts -------------------------------------------------------------------------------- /test/empty-commits.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/empty-commits.test.ts -------------------------------------------------------------------------------- /test/empty-update.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/empty-update.test.ts -------------------------------------------------------------------------------- /test/fixtures/create-binary-file.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/create-binary-file.json -------------------------------------------------------------------------------- /test/fixtures/create-commits-with-author-and-committer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/create-commits-with-author-and-committer.json -------------------------------------------------------------------------------- /test/fixtures/create-fork.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/create-fork.json -------------------------------------------------------------------------------- /test/fixtures/create-when-empty.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/create-when-empty.json -------------------------------------------------------------------------------- /test/fixtures/custom-base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/custom-base.json -------------------------------------------------------------------------------- /test/fixtures/delete-files-function.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/delete-files-function.json -------------------------------------------------------------------------------- /test/fixtures/delete-files.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/delete-files.json -------------------------------------------------------------------------------- /test/fixtures/empty-commit-message.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/empty-commit-message.json -------------------------------------------------------------------------------- /test/fixtures/empty-commits.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/empty-commits.json -------------------------------------------------------------------------------- /test/fixtures/empty-update.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/empty-update.json -------------------------------------------------------------------------------- /test/fixtures/happy-path-with-mode.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/happy-path-with-mode.json -------------------------------------------------------------------------------- /test/fixtures/happy-path.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/happy-path.json -------------------------------------------------------------------------------- /test/fixtures/labels-with-error.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/labels-with-error.json -------------------------------------------------------------------------------- /test/fixtures/labels-without-permissions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/labels-without-permissions.json -------------------------------------------------------------------------------- /test/fixtures/labels.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/labels.json -------------------------------------------------------------------------------- /test/fixtures/missing-authentication.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/missing-authentication.json -------------------------------------------------------------------------------- /test/fixtures/multiple-commits.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/multiple-commits.json -------------------------------------------------------------------------------- /test/fixtures/no-empty-commit.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/no-empty-commit.json -------------------------------------------------------------------------------- /test/fixtures/pull-request-exists.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/pull-request-exists.json -------------------------------------------------------------------------------- /test/fixtures/update-existing-pull-request.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/update-existing-pull-request.json -------------------------------------------------------------------------------- /test/fixtures/update-from-installation.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/update-from-installation.json -------------------------------------------------------------------------------- /test/fixtures/update-readme.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/update-readme.json -------------------------------------------------------------------------------- /test/fixtures/use-fork-blob.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/use-fork-blob.json -------------------------------------------------------------------------------- /test/fixtures/use-fork.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/fixtures/use-fork.json -------------------------------------------------------------------------------- /test/happy-path-with-mode.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/happy-path-with-mode.test.ts -------------------------------------------------------------------------------- /test/happy-path.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/happy-path.test.ts -------------------------------------------------------------------------------- /test/labels-with-error.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/labels-with-error.test.ts -------------------------------------------------------------------------------- /test/labels-without-permissions.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/labels-without-permissions.test.ts -------------------------------------------------------------------------------- /test/labels.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/labels.test.ts -------------------------------------------------------------------------------- /test/missing-authentication.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/missing-authentication.test.ts -------------------------------------------------------------------------------- /test/multiple-commits.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/multiple-commits.test.ts -------------------------------------------------------------------------------- /test/no-empty-commit.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/no-empty-commit.test.ts -------------------------------------------------------------------------------- /test/pull-request-exists.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/pull-request-exists.test.ts -------------------------------------------------------------------------------- /test/smoke.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/smoke.test.ts -------------------------------------------------------------------------------- /test/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/tsconfig.json -------------------------------------------------------------------------------- /test/update-existing-pull-request.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/update-existing-pull-request.test.ts -------------------------------------------------------------------------------- /test/update-from-installation.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/update-from-installation.test.ts -------------------------------------------------------------------------------- /test/update-readme.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/update-readme.test.ts -------------------------------------------------------------------------------- /test/use-custom-base.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/use-custom-base.test.ts -------------------------------------------------------------------------------- /test/use-fork-blob.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/use-fork-blob.test.ts -------------------------------------------------------------------------------- /test/use-fork.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/test/use-fork.test.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gr2m/octokit-plugin-create-pull-request/HEAD/vite.config.js --------------------------------------------------------------------------------