Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 10, 2026

Updates the default branch from master to main throughout the package for both the command behavior and scaffolded packages.

Command behavior:

  • wp scaffold package-readme now defaults to --branch=main (previously master)
  • Custom branch names remain supported via --branch parameter

Template changes:

  • .travis.yml: Updates branches: only: to main
  • composer.json: Changes branch alias from dev-master to dev-main

Documentation updates:

  • Parameter docs, inline examples, and test expectations updated to reflect main as default

Example of generated README install command:

# Before
wp package install vendor/package:dev-master

# After
wp package install vendor/package:dev-main

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • api.wordpress.org
    • Triggering command: /usr/bin/curl curl -s REDACTED (dns block)
    • Triggering command: /usr/bin/curl curl -s REDACTED git old-�� --local credential.helper and/vendor/wp-cli/wp-cli-tests/bin/run-behat-tests (dns block)
  • wp-cli.org
    • Triggering command: /usr/bin/php /usr/bin/php /home/REDACTED/work/scaffold-package-command/scaffold-package-command/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php scaffold package wp-cli/default-readme d -n 10 (dns block)
    • Triggering command: /usr/bin/php /usr/bin/php /home/REDACTED/work/scaffold-package-command/scaffold-package-command/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php scaffold package wp-cli/custom-branch (dns block)
    • Triggering command: /usr/bin/php /usr/bin/php /home/REDACTED/work/scaffold-package-command/scaffold-package-command/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php scaffold package wp-cli/foo --dir=foo --require_wp_cli=>=0.24.0-alpha password=$GITHUB_TOKEN"; }; f (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Change default branch to main</issue_title>
<issue_description>The default branch used by the command as well as in scaffolded packages should be main.
</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Change default branch to main Change default branch to main Jan 10, 2026
Copilot AI requested a review from swissspidy January 10, 2026 10:23
@github-actions
Copy link
Contributor

Hello! 👋

Thanks for opening this pull request! Please check out our contributing guidelines. We appreciate you taking the initiative to contribute to this project.

Contributing isn't limited to just code. We encourage you to contribute in the way that best fits your abilities, by writing tutorials, giving a demo at your local meetup, helping other users with their support questions, or revising our documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change default branch to main

2 participants