Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thomaseizinger/create-pull-request
Does what it says on the tin, create a pull request, easy and simple.
https://github.com/thomaseizinger/create-pull-request
Last synced: about 1 month ago
JSON representation
Does what it says on the tin, create a pull request, easy and simple.
- Host: GitHub
- URL: https://github.com/thomaseizinger/create-pull-request
- Owner: thomaseizinger
- License: mit
- Created: 2020-02-14T10:12:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-18T06:18:01.000Z (7 months ago)
- Last Synced: 2024-12-08T20:53:06.044Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.09 MB
- Stars: 33
- Watchers: 3
- Forks: 22
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Create pull request
Does what it says on the tin - creates a pull request, nothing else.
## Usage
```yaml
name: "Create PR"
on: pushjobs:
create-pr-on-push:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Create pull request
uses: thomaseizinger/create-pull-request@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
head: ${{ github.ref }}
base: master
title: "An automatically created PR!"
```## Advanced usage
To get an idea of all inputs that are supported, have a look at [this file](./src/getInputs.ts) or the [tests](./__tests__/getInputs.test.ts).
For self-hosted runners behind a corporate proxy, set the https_proxy environment variable.
```yaml
- name: Create pull request
uses: thomaseizinger/create-pull-request@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
head: ${{ github.ref }}
base: master
title: "An automatically created PR!"
env:
https_proxy: http://:
```### Action outputs
The following outputs can be set by action
- `number` - Number of the created pull request.
- `html_url` - URL of the created pull request.
- `created` - 'true' if pull request was successfully created, 'false' if pull request existed already.