refactor: ♻️ cla pr 생성 #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CLA Assistant" | |
on: | |
issue_comment: | |
types: [created] | |
pull_request_target: | |
types: [opened, closed, synchronize] | |
# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings | |
permissions: | |
actions: write | |
contents: write # this can be 'read' if the signatures are in remote repository | |
pull-requests: write | |
statuses: write | |
jobs: | |
CLAAssistant: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "CLA Assistant" | |
if: (github.event.comment.body == 'recheck' || github.event.comment.body == '저는 CLA 문서를 읽었으며, CLA에 서명합니다.') || github.event_name == 'pull_request_target' | |
uses: contributor-assistant/github-action@v2.6.1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
custom-notsigned-prcomment: "PR 감사합니다. 이 PR을 수락하기 전에 [Contributor License Agreement](https://gist.github.com/gracefullight/041ebde610b7eea1dc21d11d40b7d663#file-infinite-loop-factory-cla-md)에 동의하셔야합니다. CLA는 아래 문장과 동일한 코멘트를 추가해주시면 서명할 수 있습니다." | |
custom-pr-sign-comment: "저는 CLA 문서를 읽었으며, CLA에 서명합니다." | |
custom-allsigned-prcomment: "**CLA Assistant Lite bot** 모든 Contributor가 CLA에 서명했습니다." | |
path-to-signatures: ".github/signatures/cla.json" | |
path-to-document: "https://gist.github.com/gracefullight/041ebde610b7eea1dc21d11d40b7d663#file-infinite-loop-factory-cla-md" # e.g. a CLA or a DCO document | |
branch: "chore/cla" | |
allowlist: bot* | |
# CLA 서명이 완료되면 Pull Request를 자동 생성하는 작업 | |
- name: Create CLA Pull Request | |
if: success() | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
title: "chore(cla): cla 서명 업데이트" | |
body: "이 PR은 자동으로 생성되었습니다. CLA 서명 정보가 갱신되었습니다. 확인 부탁드립니다." | |
base: "main" | |
branch: "chore/cla" | |
assignees: gracefullight | |
team-reviewers: app-factory |