From 8bffe694f9e44614901dfc0b43768dbc0dee3774 Mon Sep 17 00:00:00 2001 From: "Byungjin Park (Claud)" Date: Sat, 26 Feb 2022 21:35:57 +0900 Subject: [PATCH] Fix broken GitHub Actions workflows (#402) * Fix pull-request-labeler to permit outside collaborator * Add welcome GitHub workflow * Update welcome.yaml --- .github/workflows/pull-request-labeler.yaml | 2 +- .github/workflows/welcome.yaml | 27 +++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/welcome.yaml diff --git a/.github/workflows/pull-request-labeler.yaml b/.github/workflows/pull-request-labeler.yaml index 5444153..9ceef35 100644 --- a/.github/workflows/pull-request-labeler.yaml +++ b/.github/workflows/pull-request-labeler.yaml @@ -1,7 +1,7 @@ name: Label Pull Requests on: -- pull_request +- pull_request_target jobs: label-pr: diff --git a/.github/workflows/welcome.yaml b/.github/workflows/welcome.yaml new file mode 100644 index 0000000..307d2c0 --- /dev/null +++ b/.github/workflows/welcome.yaml @@ -0,0 +1,27 @@ +name: Welcome for First Issue or Pull Request + +on: + pull_request_target: + types: + - opened + issues: + types: + - opened + +jobs: + welcome: + runs-on: ubuntu-latest + + steps: + - name: Welcome for First Issue or Pull Request + uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: | + ### :wave: Welcome! Looks like this is your first issue. + + Hey, thanks for your contribution! Please give us a bit of time to review it. 😄 + pr-message: | + ### :wave: Welcome! Looks like this is your first pull request. + + Hey, thanks for your contribution! Please give us a bit of time to review it. 😄