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).
1. Prepare your own account
Section titled “1. Prepare your own account”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:
- GitHub → your profile picture → Settings → Password and authentication.
- 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.
2. Create the organisation
Section titled “2. Create the organisation”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):
- Top right, your profile picture → Settings.
- In the Access section of the sidebar, click Organizations.
- Next to the “Organizations” header, click New organization.
- 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.
3. Secure the organisation
Section titled “3. Secure the organisation”EXPLAIN — why: these settings make the safe choice the default before any repository exists.
3a. Require two-factor authentication
Section titled “3a. Require two-factor authentication”DO (GitHub’s documented path):
- Profile picture → Organizations → select
bideward. - Under the organisation name click Settings (open the dropdown if the tab is not visible).
- In the Security section of the sidebar click Authentication security.
- 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.
- 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):
- In the organisation’s Settings, Access section, click Member privileges.
- 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.
- 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.
4. The repositories (plan)
Section titled “4. The repositories (plan)”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:
- Every change goes through a branch and a pull request. No direct push to
main(agreement, see above). - No force-push to
main. - Tests pass before a pull request is opened.
- No secret, key or token is ever committed. Secrets live in root-only files on the server (Part F).
- 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-servercan becomeplatformin 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:
- Open the repository → Settings.
- At the bottom, in the Danger Zone, click Transfer.
- Under “New owner”, choose Select one of my organizations and pick
bideward. - Optionally enter the new name (
platformorscript). - Read the warnings, type the repository name to confirm and click I understand, transfer this repository.
Then, in this order:
- Local copies: in every folder that has a clone, run
git remote set-url origin git@github.com:bideward/NEWNAME.git(use the URL you normally use) andgit fetch. - The server: the deploy key keeps working. Update the remote on the server with the same command (Part F).
- 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
bidewardorganisation and limit it to the one repository. - 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.
6. Adding a person later
Section titled “6. Adding a person later”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):
- Make sure the person has two-factor authentication on, because the organisation requires it before they can accept.
- 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.
- For the
scriptrepository, 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.
7. What changes later, and who does it
Section titled “7. What changes later, and who does it”| 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 |