Skip to content

fix: clear the πŸ‘€, which the identity fallback silently prevented - #43

Merged
ZhenghuaBao merged 1 commit into
mainfrom
fix/clear-the-eyes
Aug 26, 2026
Merged

fix: clear the πŸ‘€, which the identity fallback silently prevented#43
ZhenghuaBao merged 1 commit into
mainfrom
fix/clear-the-eyes

Conversation

@ZhenghuaBao

Copy link
Copy Markdown
Contributor

The type probe was fixed in #42; this is the same trap one line down, in the same step, and it survived.

ME=$(gh api user --jq .login 2>/dev/null || echo "github-actions[bot]")

With an installation token that call can exit 0 and print nothing, so || echo never fires and ME comes back empty. The delete filter then reads select(.user.login==""), matches nothing, and the step reports success having removed nothing β€” the πŸ‘€ stays on the PR for ever.

Observed on a clean run: πŸ‘€ placed, πŸ‘ placed, neither cleared, both still on the PR authored by github-actions[bot].

Tests the VALUE rather than the exit status, which is what the type probe now does too. Any future identity read in this step wants the same shape β€” the exit status of that endpoint is not a reliable signal for an installation token.

The type probe was fixed last change; this is the same trap one line down, in
the same step, and it survived.

ME=$(gh api user --jq .login 2>/dev/null || echo "github-actions[bot]")

With an installation token that call can exit 0 and print nothing, so `|| echo`
never fires and ME comes back EMPTY. The delete filter then reads
`select(.user.login=="")`, matches nothing, and the step reports success having
removed nothing β€” so the πŸ‘€ stays on the PR for ever.

Observed on a clean run that placed πŸ‘€, placed πŸ‘, and cleared neither: both
reactions were still on the PR afterwards, authored by github-actions[bot].

Tests the VALUE rather than the exit status, which is what the type probe now
does too. Any future identity read in this step wants the same shape.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@ZhenghuaBao
ZhenghuaBao merged commit 6ad6c52 into main Aug 26, 2026
2 checks passed
@ZhenghuaBao
ZhenghuaBao deleted the fix/clear-the-eyes branch August 26, 2026 12:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant