Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions internal/scaffold/fullsend-repo/scripts/post-retro-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ done

echo "gh $*" >> "${GH_LOG}"

# Label creation calls — succeed silently (mimics --force behavior).
if [[ "$1" == "label" && "$2" == "create" ]]; then
exit 0
fi

# Issue creation calls — return a fake issue URL.
if [[ "$1" == "issue" && "$2" == "create" ]]; then
echo "https://github.com/test-org/target-repo/issues/99"
Expand Down Expand Up @@ -219,6 +224,11 @@ run_test "happy-path-triage-label" \
"${FIXTURE_ONE_PROPOSAL}" \
"ready-for-triage"

# Verify that gh label create is called before gh issue create.
run_test "label-created-before-issue" \
"${FIXTURE_ONE_PROPOSAL}" \
"gh label create ready-for-triage"

# Happy path: no proposals, comment posted successfully.
run_test "happy-path-no-proposals" \
"${FIXTURE_NO_PROPOSALS}" \
Expand Down
9 changes: 9 additions & 0 deletions internal/scaffold/fullsend-repo/scripts/post-retro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ for i in $(seq 0 $((PROPOSAL_COUNT - 1))); do
echo "::warning::proposal[$i] targets a .fullsend repo (${TARGET_REPO}). Filing in .fullsend repos is discouraged until per-repo customization patterns are stable. Consider filing in the source repo or fullsend-ai/fullsend upstream instead."
fi

# Ensure the label exists in the target repo before applying it.
# Follows the same pattern as post-review.sh for ready-for-merge.
# --force makes this idempotent (no error if the label already exists).
gh label create "ready-for-triage" \
--repo "${TARGET_REPO}" \
--description "Retro-filed issue awaiting triage agent" \
--color "ededed" \
--force 2>/dev/null || true

echo "Filing issue in ${TARGET_REPO}: ${TITLE}"
if ! ISSUE_URL=$(gh issue create \
--repo "${TARGET_REPO}" \
Expand Down
Loading