https://github.com/heitorpolidoro/autocreate-pr
Automatically create a Pull Request and can set to auto-merge
https://github.com/heitorpolidoro/autocreate-pr
auto-merge bash github-actions pull-request
Last synced: about 1 year ago
JSON representation
Automatically create a Pull Request and can set to auto-merge
- Host: GitHub
- URL: https://github.com/heitorpolidoro/autocreate-pr
- Owner: heitorpolidoro
- License: mit
- Created: 2021-11-23T20:02:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-20T22:36:37.000Z (over 2 years ago)
- Last Synced: 2025-05-07T20:09:55.555Z (about 1 year ago)
- Topics: auto-merge, bash, github-actions, pull-request
- Language: Python
- Homepage:
- Size: 85.9 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Autocreate Pull Request

[](https://github.com/heitorpolidoro/autocreate-pr/releases/latest)

[](https://github.com/heitorpolidoro/autocreate-pr/actions/workflows/ci_cd.yml)
[](https://sonarcloud.io/summary/new_code?id=heitorpolidoro_autocreate-pr)

Action to create a pull request automatically with an option to set auto-merge.
### Usage
```yaml
name: Create Pull Request
on:
create
jobs:
create-PR:
name: Create Pull Request
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Creating Pull Request
uses: heitorpolidoro/autocreate-pr@vmaster
with:
draft: true|false # default: false
auto_merge: true|false # default: false
env:
: ${{ secrets. }}
# or
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
To allow a user to automatically create a pull request, define an `env` with the GitHub username passing in the user's personal access token,
or pass the GITHUB_TOKEN env to allow to any user.
To enable auto-merge: [Automatically merging a pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/incorporating-changes-from-a-pull-request/automatically-merging-a-pull-request)