Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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: push

jobs:
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.