Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adobe-rnd/github-automerge-action
https://github.com/adobe-rnd/github-automerge-action
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/adobe-rnd/github-automerge-action
- Owner: adobe-rnd
- Created: 2020-04-28T00:27:09.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T15:00:21.000Z (about 1 year ago)
- Last Synced: 2023-12-15T16:25:25.270Z (about 1 year ago)
- Language: JavaScript
- Size: 148 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Github Auto Approve and Merge Action
This action automatically approves a pull request and merges it.
## Inputs
### `repo-token`
**Required** A github token used to approve the pull request.
## Example usage
```yaml
name: Auto Approveon:
pull_request:
types: [opened, reopened]jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Auto Approve on ${{ github.head_ref }}
# only run on releases/*
# Note: for some reason limiting the branches in the 'on' above doesn't work
if: startsWith(github.head_ref, 'releases/')
uses: adobe-rnd/github-automerge-action@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
```# Development
## build and deploy
```sh-session
$ npm run build
$ git commit -am"...."
$ npm release
```