Skip to content

Team-Retrip/PR-to-Discord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 

Repository files navigation

PR-to-Discord

Sends Pull Request notification message to Discord.

image

Inputs

  • discord_webhook_url (required): webhook URL of a Discord channel.
  • pull_request: Pull request JSON string. Default is ${{ toJson(github.event.pull_request) }}.

Example

아래 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 }}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors