Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/abhijithvijayan/label-pr-on-merge-bot
GitHub actions bot to label pull requests with custom label on merge
https://github.com/abhijithvijayan/label-pr-on-merge-bot
Last synced: 19 days ago
JSON representation
GitHub actions bot to label pull requests with custom label on merge
- Host: GitHub
- URL: https://github.com/abhijithvijayan/label-pr-on-merge-bot
- Owner: abhijithvijayan
- License: mit
- Created: 2021-02-14T09:21:17.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-02-21T08:59:35.000Z (over 3 years ago)
- Last Synced: 2024-10-15T14:03:45.757Z (29 days ago)
- Language: TypeScript
- Size: 300 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
label-pr-on-merge-bot
GitHub Actions Bot to label pull requests with custom label on merge
🙋♂️ Made by @abhijithvijayan
Bot will add merge label to the PR once it's merged
![screenshot 2](.github/screenshots/screenshot-1.png)❤️ it? ⭐️ it on [GitHub](https://github.com/abhijithvijayan/label-pr-on-merge-bot/stargazers) or [Tweet](https://twitter.com/intent/tweet?text=Check%20out%20label-pr-on-merge-bot%21%20by%20%40_abhijithv%0A%0AGitHub%20Actions%20Bot%20to%20label%20pull%20requests%20with%20custom%20label%20on%20merge%0Ahttps%3A%2F%2Fgithub.com%2Fabhijithvijayan%2Flabel-pr-on-merge-bot%0A%0A%23node%20%23javascript%20%23github%20%23bot%20%23npm) about it.
## Table of Contents
- [Usage](#usage)
- [Issues](#issues)
- [🐛 Bugs](#-bugs)
- [Publish](#publish)
- [LICENSE](#license)## Usage
### Sample workflow
You can use PR Merge Bot by configuring a YAML-based workflow file, e.g. `.github/workflows/label-pr-on-merge-bot.yml`.```yaml
name: Label PR on Merge Bot Actionon:
pull_request:
types: [ closed ]jobs:
label_pr_job:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Label PR on Merge Bot
uses: abhijithvijayan/label-pr-on-merge-bot@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
merged_label: '🚀 merged'
```## Issues
_Looking to contribute? Look for the [Good First Issue](https://github.com/abhijithvijayan/label-pr-on-merge-bot/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22good+first+issue%22)
label._### 🐛 Bugs
Please file an issue [here](https://github.com/abhijithvijayan/label-pr-on-merge-bot/issues/new) for bugs, missing documentation, or unexpected behavior.
[**See Bugs**](https://github.com/abhijithvijayan/label-pr-on-merge-bot/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22type%3A+bug%22)
## Publish
Run [ncc](https://github.com/zeit/ncc) to build into single file and release a new version from `Releases` on GitHub:
```bash
yarn build
yarn package
```### Linting & TypeScript Config
- Shared Eslint & Prettier Configuration - [`@abhijithvijayan/eslint-config`](https://www.npmjs.com/package/@abhijithvijayan/eslint-config)
- Shared TypeScript Configuration - [`@abhijithvijayan/tsconfig`](https://www.npmjs.com/package/@abhijithvijayan/tsconfig)## License
MIT © [Abhijith Vijayan](https://abhijithvijayan.in)