Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,10 @@ jobs:
cat /tmp/suggestions.json > /tmp/comment.md
}

# Post comment
gh issue comment "${ISSUE_NUMBER}" --body-file /tmp/comment.md
# Post comment to the consumer repo (not Workflows repo)
gh issue comment "${ISSUE_NUMBER}" \
--repo "${{ github.repository }}" \
--body-file /tmp/comment.md

echo "Analysis complete. Review suggestions and add"
echo "'agents:apply-suggestions' label to apply."
Expand Down Expand Up @@ -196,7 +198,9 @@ jobs:
PY

if [[ -f /tmp/dedup_comment.md ]]; then
gh issue comment "${ISSUE_NUMBER}" --body-file /tmp/dedup_comment.md || true
gh issue comment "${ISSUE_NUMBER}" \
--repo "${{ github.repository }}" \
--body-file /tmp/dedup_comment.md || true
else
echo "No likely duplicates detected."
fi
Expand Down Expand Up @@ -252,7 +256,9 @@ jobs:
" || exit 1

# Update issue body
gh issue edit "${ISSUE_NUMBER}" --body-file /tmp/updated_body.md
gh issue edit "${ISSUE_NUMBER}" \
--repo "${{ github.repository }}" \
--body-file /tmp/updated_body.md

echo "Issue body updated with applied suggestions"

Expand Down Expand Up @@ -289,7 +295,9 @@ jobs:
" || exit 1

# Update issue body with formatted version
gh issue edit "${ISSUE_NUMBER}" --body-file /tmp/formatted_body.md
gh issue edit "${ISSUE_NUMBER}" \
--repo "${{ github.repository }}" \
--body-file /tmp/formatted_body.md

echo "Issue body updated with formatted structure"

Expand All @@ -299,16 +307,22 @@ jobs:
GH_TOKEN: ${{ github.token }}
ISSUE_NUMBER: ${{ steps.check.outputs.issue_number }}
PHASE: ${{ steps.check.outputs.phase }}
REPO: ${{ github.repository }}
run: |
if [[ "$PHASE" == "apply" ]]; then
# Remove both optimization labels and add formatted label
gh issue edit "${ISSUE_NUMBER}" --remove-label "agents:optimize" || true
gh issue edit "${ISSUE_NUMBER}" --remove-label "agents:apply-suggestions"
gh issue edit "${ISSUE_NUMBER}" --add-label "agents:formatted"
gh issue edit "${ISSUE_NUMBER}" --repo "${REPO}" \
--remove-label "agents:optimize" || true
gh issue edit "${ISSUE_NUMBER}" --repo "${REPO}" \
--remove-label "agents:apply-suggestions"
gh issue edit "${ISSUE_NUMBER}" --repo "${REPO}" \
--add-label "agents:formatted"
echo "Labels updated: removed optimize/apply-suggestions, added formatted"
elif [[ "$PHASE" == "format" ]]; then
# Remove format trigger label and add formatted result label
gh issue edit "${ISSUE_NUMBER}" --remove-label "agents:format"
gh issue edit "${ISSUE_NUMBER}" --add-label "agents:formatted"
gh issue edit "${ISSUE_NUMBER}" --repo "${REPO}" \
--remove-label "agents:format"
gh issue edit "${ISSUE_NUMBER}" --repo "${REPO}" \
--add-label "agents:formatted"
Comment on lines +314 to +326

Copilot AI Jan 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inconsistent quoting style for the --repo flag. Lines 141, 202, 260, and 300 use double quotes with GitHub Actions expression syntax "${{ github.repository }}", while lines 314-326 use double quotes with shell variable expansion "${REPO}". While both approaches work, it's better to use the same pattern throughout for consistency. Consider using "${{ github.repository }}" directly in all locations, or consistently use the environment variable approach everywhere.

Copilot uses AI. Check for mistakes.
echo "Labels updated: removed format, added formatted"
fi
Loading