Skip to content

GitHub organisation and repositories

Status: plan. Steps 1 to 3 are free and safe to do now. Step 5 (the transfer of the two repositories) is a later task and is not part of the Lightsail migration (backlog N-02). Each GitHub step was checked against GitHub’s documentation on 29 Nov 2026; where a screen differs, use the closest option and tell me.

Format of each step, as in the migration guide: EXPLAIN (why), DO (what to click or type), VERIFY (what you should see).

What GitHub’s free plan does and does not give you

Section titled “What GitHub’s free plan does and does not give you”
Fact Source
A free organisation can have unlimited private repositories “with a limited feature set”. GitHub plans page
GitHub Actions: 2,000 minutes a month on Free, 3,000 on Team. GitHub plans page
Protected branches on private repositories are listed only under the Team plan. Rulesets for private repositories are available with Pro, Team and Enterprise Cloud, not Free. GitHub plans page; GitHub rulesets page
Requiring two-factor authentication for everyone in the organisation is available on the Free plan. GitHub two-factor page
An outside collaborator on a private repository does not use a paid licence on a free plan. GitHub outside-collaborators page

What this means. On the free plan GitHub cannot stop a direct push to main in a private repository. The rule “no direct pushes, everything through a pull request” is therefore a working agreement you keep (git workflow), not something GitHub enforces. Upgrade to Team when other people write to a repository or when you want GitHub to enforce it. Team is billed per user; the price is on github.com/pricing (not stated on the page I checked).

EXPLAIN — why: you will be the only owner of the organisation, so your personal account is the key to everything. GitHub’s documentation requires you to enable two-factor authentication on your own account before you can require it for others.

DO:

  1. GitHub → your profile picture → Settings → Password and authentication.
  2. Turn on two-factor authentication with an authenticator app and save the recovery codes offline (not in Drive, not in chat).

VERIFY — you should see: two-factor authentication shown as enabled on that page.

EXPLAIN — why: an organisation is the container for the repositories, the people and the rules. A separate organisation named bideward keeps the product’s code, access and settings apart from everything else you own.

DO (GitHub’s documented path):

  1. Top right, your profile picture → Settings.
  2. In the Access section of the sidebar, click Organizations.
  3. Next to the “Organizations” header, click New organization.
  4. Follow the prompts. GitHub’s page does not list the fields, so read each screen: choose the Free plan, the name bideward, and a contact e-mail that you control. If the name is taken, stop and tell me.

VERIFY — you should see: github.com/bideward opening with no repositories, and you listed as an owner.

EXPLAIN — why: these settings make the safe choice the default before any repository exists.

DO (GitHub’s documented path):

  1. Profile picture → Organizations → select bideward.
  2. Under the organisation name click Settings (open the dropdown if the tab is not visible).
  3. In the Security section of the sidebar click Authentication security.
  4. Under “Two-factor authentication”, select Require two-factor authentication for everyone in your organization. You may also select Only allow secure two-factor methods. Click Save.
  5. If it lists members or outside collaborators who would be removed, review the list and click Confirm. Today it is only you.

VERIFY — you should see: the setting saved. From then on anyone added later, including an outside collaborator, must have two-factor authentication on before accepting.

3b. Base permission and repository creation

Section titled “3b. Base permission and repository creation”

DO (GitHub’s documented path):

  1. In the organisation’s Settings, Access section, click Member privileges.
  2. Under Base permissions, open the dropdown and choose the lowest level offered (No permission). GitHub’s page does not list the levels; read the dropdown. Confirm with the button that names the new default.
  3. Under Repository creation, clear the options that let members create repositories. Click Save. (Owners can always create repositories.)

VERIFY — you should see: base permission “No permission” and no member-creation options ticked.

EXPLAIN — what it protects: with base permission “No permission”, a member sees only the repositories you grant them, and outside collaborators are not affected by it at all. A repository stays invisible to everyone you did not add to it.

Create nothing yet. The two existing repositories arrive by transfer in step 5, which keeps their history. The names and rules are fixed now so the transfer is mechanical.

Name Holds Visibility Who may open it
platform The receiver, the Node hub, the dashboard, the loader endpoints, the docs, the docs site, server files and the migration Private Owners and people you add one by one
script The betting script versions, the loader, bootstrap and userscript, tests, tools and data Private, never public, never forked Owner only. It is the product’s secret. Nobody else gets access without a written reason.
site (later) The public website Private until launch Owners and the designer you add

Rules that apply to every repository:

  1. Every change goes through a branch and a pull request. No direct push to main (agreement, see above).
  2. No force-push to main.
  3. Tests pass before a pull request is opened.
  4. No secret, key or token is ever committed. Secrets live in root-only files on the server (Part F).
  5. The script is delivered to users only through the sealed loader, never by sharing the repository.

5. Later: transfer the two repositories into the organisation

Section titled “5. Later: transfer the two repositories into the organisation”

Not part of the migration. Do it after the migration is stable, as backlog task N-02. Claude prepares the exact commands for your IDE at that time. This section records the verified facts so nothing surprises you.

EXPLAIN — why: a transfer moves a repository with its commits, issues, pull requests, wiki, stars and watchers. Old links, git clone, git fetch and git push keep working through redirects, so nothing breaks at once.

Before you start (checked against GitHub’s documentation):

  • You need administrator access to the repository and permission to create repositories in the target organisation (you are an owner, so you have both).
  • The target must not already have a repository with the same name.
  • You can rename the repository during the transfer if you are an owner of the target organisation, so bot-stats-server can become platform in the same step.
  • Webhooks, secrets and deploy keys stay associated after the transfer.
  • Redirects are permanently deleted if you create a new repository or fork at the old location, so never reuse the old name.
  • Transferring a private repository to a Free organisation removes protected branches and GitHub Pages. You do not use either today, so nothing is lost.
  • GitHub Pages sites are not redirected. You use Cloudflare Pages, not GitHub Pages.

DO (GitHub’s documented path), once per repository:

  1. Open the repository → Settings.
  2. At the bottom, in the Danger Zone, click Transfer.
  3. Under “New owner”, choose Select one of my organizations and pick bideward.
  4. Optionally enter the new name (platform or script).
  5. Read the warnings, type the repository name to confirm and click I understand, transfer this repository.

Then, in this order:

  1. Local copies: in every folder that has a clone, run git remote set-url origin [email protected]:bideward/NEWNAME.git (use the URL you normally use) and git fetch.
  2. The server: the deploy key keeps working. Update the remote on the server with the same command (Part F).
  3. Cloudflare Pages: a Pages project cannot change its repository (Cloudflare’s documented behaviour), so delete the docs project and create it again from the new repository (docs site page). Authorise the Cloudflare Pages GitHub app for the bideward organisation and limit it to the one repository.
  4. Documents: run the rename task (backlog N-01) so every name in the docs and code matches the new repository names.

VERIFY — you should see: the repository at github.com/bideward/NEWNAME with its full history, and git push from your IDE working through the new URL.

EXPLAIN — why: someone who works on one repository should see only that repository.

DO (GitHub’s documented rule: people with admin access to a repository can add an outside collaborator to it):

  1. Make sure the person has two-factor authentication on, because the organisation requires it before they can accept.
  2. Open the repository → Settings → access settings, add the person by GitHub username and choose the lowest level that lets them do the job (read to review, write to contribute). GitHub’s page does not give the click path; use the repository’s Collaborators or Manage access screen.
  3. For the script repository, do not add anyone without a reason you have written down.

VERIFY — you should see: the person listed on that repository only. They cannot see the organisation’s other repositories. Outside collaborators cannot be added to teams, which is expected.

Task Where it is tracked
Create the organisation and secure it (steps 1 to 3) You, now (backlog G-01)
Rename code, versions and files from titan to bideward Backlog N-01
Transfer the repositories (step 5) Backlog N-02
Upgrade to GitHub Team and add branch protection Backlog N-05, when a second person writes code