From 303fcf528119de08e0f1cc48a8557a0cdd0de7e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Feliks=20Pobiedzi=C5=84ski?= <38541925+FelonEkonom@users.noreply.github.com> Date: Fri, 17 Nov 2023 15:47:50 +0100 Subject: [PATCH] Create GH workflow running on PR opened (#54) --- .github/workflows/on_pr_opened.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/on_pr_opened.yaml diff --git a/.github/workflows/on_pr_opened.yaml b/.github/workflows/on_pr_opened.yaml new file mode 100644 index 0000000..248caba --- /dev/null +++ b/.github/workflows/on_pr_opened.yaml @@ -0,0 +1,19 @@ +name: Add PR to Smackore project board, if the author is from outside Membrane Team +on: + pull_request_target: + types: + - opened +jobs: + maybe_add_to_project_board: + runs-on: ubuntu-latest + steps: + - name: Checkout membrane_core + uses: actions/checkout@v3 + with: + repository: membraneframework/membrane_core + - name: Puts PR in "New PRs by community" column in the Smackore project, if the author is from outside Membrane Team + uses: ./.github/actions/add_pr_to_smackore_board + with: + GITHUB_TOKEN: ${{ secrets.MEMBRANEFRAMEWORKADMIN_TOKEN }} + AUTHOR_LOGIN: ${{ github.event.pull_request.user.login }} + PR_URL: ${{ github.event.pull_request.html_url }}