Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

label-pr-on-merge-bot


GitHub Actions Bot to label pull requests with custom label on merge




Travis Build



DEPENDENCIES


LICENSE


TWEET


🙋‍♂️ Made by @abhijithvijayan



Donate:
PayPal,
Patreon




Buy Me a Coffee



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 Action

on:
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)