From cc5f099aa6dbc7a2f869673c05bf286a7c8c5797 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:56:28 +0100 Subject: [PATCH] Create GH workflow running on PR opened (#11) --- .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 }}