π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
fix: pr check validation in workflow
sriram veeraghanta16b43c7b0203
diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.ymlindex e0f1946cbc..621a28eb67 100644--- a/.github/workflows/auto-merge.yml+++ b/.github/workflows/auto-merge.yml@@ -80,5 +80,12 @@ jobs:- name: Create PR to Target Branchif: env.HAS_CONFLICTS == 'true'run: |- PR_URL=$(gh pr create --base $TARGET_BRANCH --head $SOURCE_BRANCH --title "sync: merge conflicts need to be resolved" --body "")- echo "Pull Request created: $PR_URL"+ # get all pull requests and check if there is already a PR+ PR_EXISTS=$(gh pr list --base $TARGET_BRANCH --head $SOURCE_BRANCH --json number | jq '.[] | .number')+ if [ -n "$PR_EXISTS" ]; then+ echo "Pull Request already exists: $PR_EXISTS"+ else+ echo "Creating new pull request"+ PR_URL=$(gh pr create --base $TARGET_BRANCH --head $SOURCE_BRANCH --title "sync: merge conflicts need to be resolved" --body "")+ echo "Pull Request created: $PR_URL"+ fi