From facc587e170996f6bb5872dbcf231ab4dfd7174c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Chali=C5=84ski?= Date: Mon, 26 Feb 2024 16:14:56 +0100 Subject: [PATCH] commented out action that fails due to gh actions bug --- .../add_pr_to_smackore_board/action.yml | 28 ++++++++++--------- 1 file changed, 15 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 d4e708f02..27ce92b46 100644 --- a/.github/actions/add_pr_to_smackore_board/action.yml +++ b/.github/actions/add_pr_to_smackore_board/action.yml @@ -1,5 +1,5 @@ name: 'Add PR to Smackore board, if author is from community' -description: 'Adds PR to "New issues by community" column in Smackore project board, if PR author is from outside Membrane Team.' +description: '(disabled due to github-side bug) Adds PR to "New issues by community" column in Smackore project board, if PR author is from outside Membrane Team.' inputs: GITHUB_TOKEN: description: 'GitHub token' @@ -19,21 +19,23 @@ runs: repository: membraneframework/membrane_core - name: Maybe add PR to board and set ticket status run: | - export PROJECT_NUMBER=19 - export PROJECT_ID=PVT_kwDOAYE_z84AWEIB - export STATUS_FIELD_ID=PVTSSF_lADOAYE_z84AWEIBzgOGd1k - export TARGET_COLUMN_ID=e6b1ee10 + # currently this causes 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 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 }}