https://github.com/discoverygarden/create-pr
https://github.com/discoverygarden/create-pr
github github-actions
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/discoverygarden/create-pr
- Owner: discoverygarden
- Created: 2022-05-05T11:44:54.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-11T07:09:34.000Z (over 1 year ago)
- Last Synced: 2025-02-11T08:24:03.265Z (over 1 year ago)
- Topics: github, github-actions
- Language: TypeScript
- Homepage:
- Size: 424 KB
- Stars: 0
- Watchers: 9
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Create Pull Request
[](https://github.com/discoverygarden/create-pr/actions/workflows/test.yml)
Workflow for creating and automatically merging pull requests.
## Usage
### Inputs
- `repo`: Repository name with owner. Defaults to current.
- `head`: Head branch to merge. Deafults to current branch.
- `base`: Base branch to merge into. Defaults to the current repo's default branch.
- `labels`: A comma seperated list of labels to add to the pull request.
- `automerge`: True if the pull request should be mergd automatically, default to `true`.
- `token`: GitHub access token.
### Outputs
- `url`: The URL of the pull request.
- `number`: The number of the pull request.
### Example Workflow
```yaml
name: Create Pull Request
on:
push:
branches: ['feat-*']
jobs:
create-pr:
runs-on: ubuntu-latest
steps:
- uses: discoverygarden/create-pr@v1
with:
repo: discoverygarden/create-pr
base: main
automerge: false
token: ${{ secrets.GITHUB_TOKEN}}
```