Sends Pull Request notification message to Discord.

discord_webhook_url(required): webhook URL of a Discord channel.pull_request: Pull request JSON string. Default is ${{ toJson(github.event.pull_request) }}.
아래 PR.yml 파일은 PR을 생성하는 각 repository .github/workflows 아래 두면 된다.
그러면 해당 repository에 있는 action.yml이 생성한 PR에 해당하는 정보를 읽어와 디스코드로 메시지를 보낸다.
name: PR to Discord
on:
pull_request:
branches: [ "develop" ]
types: [opened, reopened]
jobs:
PR:
runs-on: ubuntu-latest
steps:
- uses: Team-Retrip/PR-to-Discord@main
with:
discord_webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}