From c2f830431d470cb3169ecfb1766dd693e1945074 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Chali=C5=84ski?= Date: Thu, 16 May 2024 00:53:49 +0200 Subject: [PATCH] action uncomment --- .../add_pr_to_smackore_board/action.yml | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/actions/add_pr_to_smackore_board/action.yml b/.github/actions/add_pr_to_smackore_board/action.yml index 27ce92b46..0a010e22f 100644 --- a/.github/actions/add_pr_to_smackore_board/action.yml +++ b/.github/actions/add_pr_to_smackore_board/action.yml @@ -19,23 +19,23 @@ runs: repository: membraneframework/membrane_core - name: Maybe add PR to board and set ticket status run: | - # currently this causes github action crash, more info here: https://github.com/membraneframework/membrane_core/issues/749 + # currently this may cause github action crash, more info here: https://github.com/membraneframework/membrane_core/issues/749 - # export PROJECT_NUMBER=19 - # export PROJECT_ID=PVT_kwDOAYE_z84AWEIB - # export STATUS_FIELD_ID=PVTSSF_lADOAYE_z84AWEIBzgOGd1k - # export TARGET_COLUMN_ID=e6b1ee10 + export PROJECT_NUMBER=19 + export PROJECT_ID=PVT_kwDOAYE_z84AWEIB + export STATUS_FIELD_ID=PVTSSF_lADOAYE_z84AWEIBzgOGd1k + export TARGET_COLUMN_ID=e6b1ee10 - # export AUTHOR_ORIGIN=$(gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /orgs/membraneframework/teams/membraneteam/members | python scripts/python/get_author_origin.py $AUTHOR_LOGIN) + export AUTHOR_ORIGIN=$(gh api -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /orgs/membraneframework/teams/membraneteam/members | python scripts/python/get_author_origin.py $AUTHOR_LOGIN) - # if [ "$AUTHOR_ORIGIN" == "COMMUNITY" ] - # then - # gh pr edit "$PR_URL" --add-project Smackore - # sleep 10 + if [ "$AUTHOR_ORIGIN" == "COMMUNITY" ] + then + gh pr edit "$PR_URL" --add-project Smackore + sleep 10 - # export TICKET_ID=$(gh project item-list $PROJECT_NUMBER --owner membraneframework --format json --limit 10000000 | python scripts/python/get_ticket_id.py "$PR_URL") - # gh project item-edit --id $TICKET_ID --field-id $STATUS_FIELD_ID --project-id $PROJECT_ID --single-select-option-id $TARGET_COLUMN_ID - # fi + export TICKET_ID=$(gh project item-list $PROJECT_NUMBER --owner membraneframework --format json --limit 10000000 | python scripts/python/get_ticket_id.py "$PR_URL") + gh project item-edit --id $TICKET_ID --field-id $STATUS_FIELD_ID --project-id $PROJECT_ID --single-select-option-id $TARGET_COLUMN_ID + fi env: GH_TOKEN: ${{ inputs.GITHUB_TOKEN }}