Skip to content

Let other repositories run the guest book - #4

Merged
kanywst merged 3 commits into
mainfrom
reusable
Oct 14, 2026
Merged

kanywst merged 3 commits into
mainfrom
reusable

Conversation

@kanywst

@kanywst kanywst commented Oct 14, 2026

Copy link
Copy Markdown
Member

The script linked every entry to 0-draft/guestbook, so a copy elsewhere would link its visitors' messages to issues here. It now takes the repository from GITHUB_REPOSITORY, which Actions sets.

The README gets a short section on which three files to copy and where the markers go. Checked by running the script against a README that has only the two markers: it builds the table and links the entry to the given repository.

@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e0233ee0-8269-4307-99aa-26039b1f520a
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Comment thread README.md

## Your own

Copy these three files into your repository, your profile repository included:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This promises that copying the three files gives you a working guest book, but .github/workflows/guestbook.yml still hardcodes this repository:

  • Line 81 links the thank-you comment to https://github.com/0-draft/guestbook#guestbook. Every visitor to a copy is sent to this repo's book instead of theirs. This is the same problem the PR fixes in scripts/update_guestbook.py.
  • Lines 34, 52 and 53 hardcode main. A copy whose default branch is master fails at checkout.

Either use ${{ github.repository }} and ${{ github.event.repository.default_branch }} in the workflow, or list these as things to change here. As written, the "Your own" section outruns the code.

@claude

claude Bot commented Oct 14, 2026

Copy link
Copy Markdown

One finding: the new "Your own" section says copying three files is enough, but guestbook.yml still hardcodes 0-draft/guestbook in the thank-you link and main as the branch (inline on README.md:29). The script change itself (GITHUB_REPOSITORY for issue links) is correct, and the markers and sign-link snippet match what the script expects.

@claude

claude Bot commented Oct 14, 2026

Copy link
Copy Markdown

No findings: the default-branch and repository changes are consistent across the workflow, script and README, and the new values reach the shell only through env vars.

@kanywst
kanywst merged commit ed4117c into main Oct 14, 2026
3 checks passed
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