Skip to content
bell

GitHub Action

Notify PR Review

v1.2.1 Latest version

Notify PR Review

bell

Notify PR Review

Notify PR review requests by sending a slack message

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Notify PR Review

uses: naver/notify-pr-review@v1.2.1

Learn more about this action in naver/notify-pr-review

Choose a version

notify-pr-review

๐ŸŒ ํ•œ๊ตญ์–ด | English

PR ๋ฆฌ๋ทฐ ์š”์ฒญ์„ ๋ฐ›์œผ๋ฉด Slack์œผ๋กœ ์•Œ๋ฆฌ๋Š” Github Actions

intro

Usage

  1. ๋ฉ”์‹œ์ง€ ์ „๋‹ฌ์„ ์œ„ํ•ด SLACK_BOT_TOKEN ์ด๋ฆ„์˜ secret์„ ์„ธํŒ…ํ•˜์„ธ์š”.

์„ธํŒ…ํ•  Repo > Settings > Secrets > New repository secret

์ด๋•Œ, Value๋Š” ์Šฌ๋ž™์—์„œ ์ œ๊ณตํ•˜๋Š” xoxb- ํ˜•ํƒœ์˜ ํ† ํฐ์ด์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

  1. .github/workflow/notify-pr-review.yml ํŒŒ์ผ์„ ๋งŒ๋“œ์„ธ์š”:
name: notify pr review

on:
  pull_request:
    types: [review_requested]
    
jobs:
  notify:
    runs-on: [ubuntu-latest]
    steps:
      - name: Notify PR Review
        uses: naver/notify-pr-review@v1.2.1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          slackBotToken: ${{ secrets.SLACK_BOT_TOKEN }}

Inputs

token

Required GitHub์—์„œ ์ œ๊ณตํ•˜๋Š” ํ† ํฐ

slackBotToken

Required Slack bot์„ ํ†ตํ•ด ๋ฉ”์‹œ์ง€๋ฅผ ๋ณด๋‚ด๊ธฐ ์œ„ํ•œ ํ† ํฐ

e.g. xoxb-798572638592-435243279588-9aCaWNnzVYelK9NzMMqa1yxz

License

Copyright (c) 2023-present NAVER Corp.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.