fix(ai-workflow): scan full project item list before add

This commit is contained in:
plebeius
2026-03-10 16:24:56 +08:00
parent f27a8233bc
commit 4cb5c4a833
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ if [ -n "$ISSUE_NUMBER" ]; then
gh issue close "$ISSUE_NUMBER" --repo bitsocialnet/5chan
fi
ITEM_ID=$(gh project item-list 1 --owner bitsocialnet --format json --jq ".items[] | select(.content.number == $ISSUE_NUMBER) | .id" | head -n1)
ITEM_ID=$(gh project item-list 1 --owner bitsocialnet --limit 1000 --format json --jq ".items[] | select(.content.number == $ISSUE_NUMBER) | .id" | head -n1)
if [ -z "$ITEM_ID" ]; then
ITEM_JSON=$(gh project item-add 1 --owner bitsocialnet --url "https://github.com/bitsocialnet/5chan/issues/$ISSUE_NUMBER" --format json)
ITEM_ID=$(echo "$ITEM_JSON" | jq -r '.id')
+1 -1
View File
@@ -130,7 +130,7 @@ if [ -n "$ISSUE_NUMBER" ]; then
gh issue close "$ISSUE_NUMBER" --repo bitsocialnet/5chan
fi
ITEM_ID=$(gh project item-list 1 --owner bitsocialnet --format json --jq ".items[] | select(.content.number == $ISSUE_NUMBER) | .id" | head -n1)
ITEM_ID=$(gh project item-list 1 --owner bitsocialnet --limit 1000 --format json --jq ".items[] | select(.content.number == $ISSUE_NUMBER) | .id" | head -n1)
if [ -z "$ITEM_ID" ]; then
ITEM_JSON=$(gh project item-add 1 --owner bitsocialnet --url "https://github.com/bitsocialnet/5chan/issues/$ISSUE_NUMBER" --format json)
ITEM_ID=$(echo "$ITEM_JSON" | jq -r '.id')