Skip to content

fix: remove non-stargazer check from welcome-new-users.yml - #22

Merged
yada merged 1 commit into
mainfrom
fix/welcome-star-check-permission
Sep 29, 2026
Merged

yada merged 1 commit into
mainfrom
fix/welcome-star-check-permission

Conversation

@yada

@yada yada commented Sep 29, 2026

Copy link
Copy Markdown
Member

Summary

  • STAR_MESSAGE made wow-actions/welcome call GET /repos/{owner}/{repo}/stargazers to check
    if the author starred the repo — that call needs a GITHUB_TOKEN permission Actions can't grant,
    so the step failed with HttpError: Resource not accessible by integration on every first-time
    issue/PR (see reshapr run https://github.com/reshaprio/reshapr/actions/runs/36595188872).
  • Removed STAR_MESSAGE and folded the same star tip directly into FIRST_ISSUE and FIRST_PR,
    so it's always shown instead of conditional on stargazer status. No permission or token changes
    needed.

Fixes #21

Test plan

  • Confirm workflow syntax is valid (Actions will lint on push)
  • Open a test issue/PR from a first-time-looking account (or watch the next real one) and
    confirm the welcome comment posts successfully with the star tip included
  • Once merged here, confirm the global-replicator syncs this file out to reshapr and other
    consumer repos without the same failure recurring

STAR_MESSAGE input made wow-actions/welcome call GET /repos/{owner}/{repo}/stargazers
to check if the author starred the repo, which needs a GITHUB_TOKEN permission that
Actions can't grant. This made the whole step fail with "Resource not accessible by
integration" on every first-time issue/PR, so the welcome comment never posted.

Fixes #21

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Yacine Kheddache <yacine@microcks.io>
@yada
yada force-pushed the fix/welcome-star-check-permission branch from 9ceab9f to a0f3331 Compare September 29, 2026 16:36
@yada yada added the github_actions Pull requests that update GitHub Actions code label Sep 29, 2026
@yada
yada merged commit 2b52750 into main Sep 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

welcome-new-users.yml fails on every first PR/issue — non-stargazer check breaks GITHUB_TOKEN

1 participant