Skip to content

Github CodeReviewBot

Actions

About

A Code Review Action Powered By LaaS
1.0.6
Latest
Star (1)

Tags

 (1)

Github CodeReviewBot

Github CodeReviewBot은 LaaS를 활용한 코드리뷰 로봇입니다.

설정

  1. Github CodeReviewBot을 적용할 레포지토리로 이동합니다.
  2. Settings 클릭
  3. Secrets and variables 메뉴 밑의 Actions 를 클릭
  4. Repository secrets 탭으로 변경합니다, New repository secret 버튼을 눌러서 새로운 LAAS_API_KEY 변수를 생성합니다.
  5. 레포지토리에 .github/workflows/cr.yml파일을 생성하고, 아래의 내용을 추가합니다.
name: Code Review

permissions:
  contents: read
  pull-requests: write

on:
  pull_request:
    types: [opened, reopened, synchronize]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: jeongsk/Github-CodeReviewBot@main
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          LAAS_API_KEY: ${{ secrets.LAAS_API_KEY }}

사용

  1. 새로운 PR을 생성하면 봇이 자동으로 코드 리뷰를 수행하며, 리뷰 결과는 PR 타임라인에 표시됩니다.
  2. git push 이후에 Pull request를 업데이트하면, 봇은 변경된 파일을 다시 검토합니다.

샘플

Github CodeReviewBot is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

A Code Review Action Powered By LaaS
1.0.6
Latest

Tags

 (1)

Github CodeReviewBot is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.