Update README.md #2234
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: Pr Open Comment | |
# on: | |
# repository_dispatch: | |
# types: [ org-workflow-bot ] | |
# pull_request: | |
# types: [ opened ] | |
# permissions: | |
# pull-requests: write | |
# issues: write | |
# jobs: | |
# register: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: SvanBoxel/organization-workflow@main | |
# with: | |
# id: ${{ github.event.client_payload.id }} | |
# callback_url: ${{ github.event.client_payload.callback_url }} | |
# sha: ${{ github.event.client_payload.sha }} | |
# run_id: ${{ github.run_id }} | |
# name: ${{ github.workflow }} | |
# comment: | |
# needs: [register] | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Sleep for 15 seconds | |
# uses: jakejarvis/wait-action@master | |
# with: | |
# time: '15s' | |
# - name: Make Request | |
# id: myRequest | |
# uses: fjogeleit/http-request-action@v1 | |
# with: | |
# url: "https://api.github.com/search/issues?q=sha:${{ github.event.client_payload.sha }}" | |
# method: 'GET' | |
# - name: Show Response | |
# run: | | |
# echo ${{ fromJson(steps.myRequest.outputs.response).items[0].number }} | |
# - run: | | |
# echo ${{ github.event.client_payload.repository.full_name }} | |
# echo ${{ github.event.client_payload.repository.name }} | |
# - name: check cient_payload | |
# env: | |
# ISSUE_NUM: ${{ github.event.client_payload.event.issue.number }} | |
# PR_NUM: ${{ github.event.client_payload.event.pull_request.number }} | |
# REPO_NAME: ${{ github.event.client_payload.event.repository.full_name }} | |
# run: | | |
# echo "$REPO_NAME" | |
# echo "$ISSUE_NUM" | |
# echo "$PR_NUM" | |
# - name: Pn Rule Comment | |
# uses: actions/github-script@v5 | |
# with: | |
# github-token: ${{secrets.TOKEN_GITHUB}} | |
# script: | | |
# github.rest.issues.createComment({ | |
# issue_number: ${{ fromJson(steps.myRequest.outputs.response).items[0].number }}, | |
# owner: "${{ github.event.client_payload.repository.owner }}", | |
# repo: "${{ github.event.client_payload.repository.name }}", | |
# body: 'P1: 꼭 반영해주세요 (Request changes)\n \ | |
# P2: 적극적으로 고려해주세요 (Request changes)\n \ | |
# P3: 웬만하면 반영해 주세요 (Comment)\n \ | |
# P4: 반영해도 좋고 넘어가도 좋습니다 (Approve)\n \ | |
# P5: 그냥 사소한 의견입니다 (Approve)\n \ | |
# 질문은 그냥 코멘트로 😃' | |
# }) |