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

https://github.com/rrgks6221/pr-notification-bot

Github pull request notification bot
https://github.com/rrgks6221/pr-notification-bot

cron discord discord-bot github-actions scheduler slack slack-bot typescript

Last synced: 2 months ago
JSON representation

Github pull request notification bot

Awesome Lists containing this project

README

          

# πŸ”” PR Notification Bot

[![GitHub Marketplace](https://img.shields.io/badge/GitHub%20Action-Marketplace-blue?logo=github)](https://github.com/marketplace/actions/pr-notification-bot)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)

νŒ€μ›λ“€μ΄ λ¦¬λ·°ν•˜μ§€ μ•Šμ€ PR을 Slack λ˜λŠ” Discord둜 λ¦¬λ§ˆμΈλ“œν•©λ‹ˆλ‹€.
ν˜‘μ—… νš¨μœ¨μ„ 높이고 PR 병λͺ©μ„ μ€„μ΄μ„Έμš”.

---

## πŸš€ μ‚¬μš© μ˜ˆμ‹œ

`.github/workflows/pr-reminder.yml`

```yaml
name: PR Reminder

on:
schedule:
- cron: '0 10 * * 1-5' # 평일 μ˜€μ „ 10μ‹œμ— μ‹€ν–‰
workflow_dispatch:

jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: your-org/pr-notification-bot@v1
with:
OWNER: rrgks6221
REPOS: pr-notification-bot,teamup-backend
WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
MESSENGER_GITHUB_MAP: rrgks6221:U12345678,alice:U87654321
MESSENGER_TYPE: slack
```

## βš™οΈ μž…λ ₯κ°’ (inputs)

| 이름 | ν•„μˆ˜ | μ„€λͺ… | μ˜ˆμ‹œ |
| ---------------------- | ---- | ------------------------------------------------------------------------ | ----------------------------- |
| `OWNER` | βœ… | GitHub 쑰직 λ˜λŠ” 개인 μ‚¬μš©μžλͺ… | `rrgks6221` |
| `REPOS` | βœ… | 콀마(,)둜 κ΅¬λΆ„λœ λŒ€μƒ repository 이름 λͺ©λ‘ | `repo1,repo2,repo3` |
| `WEBHOOK_URL` | βœ… | Slack λ˜λŠ” Discord의 Webhook URL | `https://hooks.slack.com/...` |
| `MESSENGER_GITHUB_MAP` | βœ… | GitHub λ‹‰λ„€μž„κ³Ό λ©”μ‹ μ € μ‚¬μš©μž ID κ°„ λ§€ν•‘ (`λ‹‰λ„€μž„:ID` ν˜•νƒœ, 콀마둜 ꡬ뢄) | `rrgks6221:U1234,alice:U5678` |
| `MESSENGER_TYPE` | ❌ | λ©”μ‹œμ§€λ₯Ό 보낼 λ©”μ‹ μ € μ’…λ₯˜ (`slack` λ˜λŠ” `discord`) / κΈ°λ³Έκ°’: `slack` | `slack` λ˜λŠ” `discord` |


## λ©”μ‹œμ§€ μ˜ˆμ‹œ

image


## **Contributors**

- [**SeokHo Lee**](https:github.com/rrgks6221) -


## **License**

### Git Hub Pull Request Reminder Bot is [MIT licensed](LICENSE)