Skip to content

Make default-branch references rename-safe - #502

Merged
obenland merged 1 commit into
trunkfrom
update/default-branch-references
Sep 1, 2026
Merged

obenland merged 1 commit into
trunkfrom
update/default-branch-references

Conversation

@obenland

@obenland obenland commented Sep 1, 2026

Copy link
Copy Markdown
Member

Fixes #484.

Follow-up to renaming the default branch to trunk: removes the remaining master references so nothing points at a dead branch.

  • readme.txt: the changelog link now points at blob/HEAD/changelog.txt, which GitHub resolves to whatever the default branch is — correct now and after any future rename. (This link is also published on the wp.org plugin page.)
  • .github/CONTRIBUTING.md: reworded the "master" mentions to "default branch"; the guidance is about a contributor's own fork, so branch-neutral wording is clearer and rename-proof.

No workflow changes are needed — phpcs.yml runs on [push, pull_request] and deploy.yml on release: published, both branch-agnostic.

Point the readme changelog link at blob/HEAD (resolves to whatever the default
branch is) and reword the contributing guide to say "default branch" instead of
"master", so both survive a default-branch rename.

Co-Authored-By: Claude Fable 5 <[email protected]>
Copilot AI lite review requested due to automatic review settings September 1, 2026 15:39
@obenland
obenland merged commit 04a31ad into trunk Sep 1, 2026
3 checks passed
@obenland
obenland deleted the update/default-branch-references branch September 1, 2026 15:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR makes default-branch references rename-safe after the repository’s default branch rename by removing remaining master references and using a branch-agnostic GitHub link.

Changes:

  • Updated readme.txt changelog link to use blob/HEAD/... so it follows the repository’s default branch.
  • Reworded .github/CONTRIBUTING.md to refer to a contributor’s “default branch” instead of “master”.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
readme.txt Updates the changelog URL to be default-branch/rename safe via HEAD.
.github/CONTRIBUTING.md Rewords contributor guidance to avoid master terminology and be branch-neutral.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/CONTRIBUTING.md

1. A pull request should encompass only a *single* idea. Not "general cleanup" or "a bunch of assorted changes I made to my fork of the repository". One pull request = one change.
2. A pull request should come from a *branch* you made in your fork of the repository. Not from your master copy. If you want to work on a specific problem, then make a fork of the repo, and then branch that fork to encompass what you're going to be working on. Then, when you submit the pull-request, you can switch back to your master or another branch and work on something else without polluting the pull request with other unrelated changes.
2. A pull request should come from a *branch* you made in your fork of the repository. Not from your default branch. If you want to work on a specific problem, then make a fork of the repo, and then branch that fork to encompass what you're going to be working on. Then, when you submit the pull-request, you can switch back to your default or another branch and work on something else without polluting the pull request with other unrelated changes.
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.

Change master to trunk

2 participants