Skip to content

[docs] Update git push script to check all branches#1585

Open
andrewnicols wants to merge 1 commit intomoodle:mainfrom
andrewnicols:rebaseBranchScript
Open

[docs] Update git push script to check all branches#1585
andrewnicols wants to merge 1 commit intomoodle:mainfrom
andrewnicols:rebaseBranchScript

Conversation

@andrewnicols
Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 5, 2026 07:10
@netlify
Copy link
Copy Markdown

netlify Bot commented May 5, 2026

Deploy Preview for moodledevdocs ready!

Name Link
🔨 Latest commit 35c592a
🔍 Latest deploy log https://app.netlify.com/projects/moodledevdocs/deploys/69f997ed1fe599000830f453
😎 Deploy Preview https://deploy-preview-1585--moodledevdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 updates the Git guide in the developer documentation so the example fork-sync script no longer relies on a hard-coded list of Moodle stable branches. It fits into the docs section that explains how contributors keep their GitHub forks aligned with upstream Moodle branches.

Changes:

  • Replaces the hard-coded MOODLE_*_STABLE branch list in the sync script with a dynamically generated branch list.
  • Updates the git push example to use ${BRANCH} interpolation in the refspec.

Comment thread docs/guides/git/index.md
git fetch upstream
for BRANCH in MOODLE_{19..39}_STABLE MOODLE_{310..311}_STABLE MOODLE_{400..405}_STABLE main; do
git push origin refs/remotes/upstream/$BRANCH:refs/heads/$BRANCH
for BRANCH in main `git branch --list 'MOODLE_*_STABLE'` main; do
Comment thread docs/guides/git/index.md
git fetch upstream
for BRANCH in MOODLE_{19..39}_STABLE MOODLE_{310..311}_STABLE MOODLE_{400..405}_STABLE main; do
git push origin refs/remotes/upstream/$BRANCH:refs/heads/$BRANCH
for BRANCH in main `git branch --list 'MOODLE_*_STABLE'` main; do
Comment thread docs/guides/git/index.md
Comment on lines +130 to +131
for BRANCH in main `git branch --list 'MOODLE_*_STABLE'` main; do
git push origin refs/remotes/upstream/${BRANCH}:refs/heads/${BRANCH}
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.

2 participants