Compare commits
1 commit
a3eb837ba2
...
718327754a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
718327754a |
1 changed files with 50 additions and 47 deletions
|
|
@ -463,6 +463,8 @@ if [ "$ORPHAN_COUNT" -gt 0 ]; then
|
|||
BLOCKED_BY_INPROGRESS=true
|
||||
fi
|
||||
|
||||
# Only process PR if not abandoned (stale branch check above)
|
||||
if [ "$BLOCKED_BY_INPROGRESS" = false ]; then
|
||||
PR_SHA=$(curl -sf -H "Authorization: token ${FORGE_TOKEN}" \
|
||||
"${API}/pulls/${HAS_PR}" | jq -r '.head.sha') || true
|
||||
CI_STATE=$(ci_commit_status "$PR_SHA") || true
|
||||
|
|
@ -520,6 +522,7 @@ if [ "$ORPHAN_COUNT" -gt 0 ]; then
|
|||
log "issue #${ISSUE_NUM} has open PR #${HAS_PR} (CI: ${CI_STATE}, waiting)"
|
||||
BLOCKED_BY_INPROGRESS=true
|
||||
fi
|
||||
fi
|
||||
else
|
||||
# Check assignee before adopting orphaned issue
|
||||
ISSUE_JSON=$(curl -sf -H "Authorization: token ${FORGE_TOKEN}" \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue