https://github.com/kalgurn/merge-pr-action
A TypeScript GitHub Action which allow you to merge a certain PR in the terget repository. Useful for automation
https://github.com/kalgurn/merge-pr-action
github github-actions typescript
Last synced: 5 months ago
JSON representation
A TypeScript GitHub Action which allow you to merge a certain PR in the terget repository. Useful for automation
- Host: GitHub
- URL: https://github.com/kalgurn/merge-pr-action
- Owner: kalgurn
- License: mit
- Created: 2021-12-01T13:44:56.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-04-03T14:18:47.000Z (about 1 year ago)
- Last Synced: 2025-09-22T08:42:30.061Z (9 months ago)
- Topics: github, github-actions, typescript
- Language: TypeScript
- Homepage:
- Size: 1.02 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
[](https://github.com/kalgurn/merge-action/actions/workflows/test.yml)
[](https://sonarcloud.io/summary/new_code?id=kalgurn_merge-action)
# Merge PR action
This action performs a pull request merge in the target repository.
# Usage
```yaml
on:
push:
branches:
- 'release/*'
jobs:
merge-pr-action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: kalgurn/merge-pr-action@1.0.0
with:
token: ${{ github.token }}
owner: ${{ github.owner }}
repo: ${{ github.repository }}
pull_number: ${{ github.pull_number }}
```
# Input parameters
```yaml
token:
required: true
description: 'GitHub authentication token, can be PAT or Application JWT token'
owner:
required: true
description: 'Repository owner/organization name'
repo:
required: true
description: 'Repository name'
pull_number:
required: true
description: 'Number of Pull Request'
merge_method:
required: false
description: 'Merge method to use. Possible values are merge, squash or rebase. Default is merge.'
default: 'merge'
commit_title:
required: false
description: 'Title for the automatic commit message.'
commit_message:
required: false
description: 'Extra detail to append to automatic commit message.'
```