Skip to content

Commit

Permalink
chore: use the main branch instead of master. (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
YumoImer authored Sep 4, 2024
1 parent 997843e commit 9cd8c4f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
[npm-url]: http://npmjs.org/package/@ant-design/x
[github-action-image]: https://github.com/ant-design/x/workflows/%E2%9C%85%20test/badge.svg
[github-action-url]: https://github.com/ant-design/x/actions?query=workflow%3A%22%E2%9C%85+test%22
[codecov-image]: https://img.shields.io/codecov/c/github/ant-design/x/master.svg?style=flat-square
[codecov-url]: https://codecov.io/gh/ant-design/x/branch/master
[codecov-image]: https://img.shields.io/codecov/c/github/ant-design/x/main.svg?style=flat-square
[codecov-url]: https://codecov.io/gh/ant-design/x/branch/main
[download-image]: https://img.shields.io/npm/dm/@ant-design/x.svg?style=flat-square
[download-url]: https://npmjs.org/package/@ant-design/x
[fossa-image]: https://app.fossa.io/api/projects/git%2Bgithub.com%2Fant-design%2Fant-design.svg?type=shield
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Crafting AI-driven interfaces with React, seamlessly integrating smart chat comp
[npm-url]: http://npmjs.org/package/@ant-design/x
[github-action-image]: https://github.com/ant-design/x/workflows/%E2%9C%85%20test/badge.svg
[github-action-url]: https://github.com/ant-design/x/actions?query=workflow%3A%22%E2%9C%85+test%22
[codecov-image]: https://img.shields.io/codecov/c/github/ant-design/x/master.svg?style=flat-square
[codecov-url]: https://codecov.io/gh/ant-design/x/branch/master
[codecov-image]: https://img.shields.io/codecov/c/github/ant-design/x/main.svg?style=flat-square
[codecov-url]: https://codecov.io/gh/ant-design/x/branch/main
[download-image]: https://img.shields.io/npm/dm/@ant-design/x.svg?style=flat-square
[download-url]: https://npmjs.org/package/@ant-design/x
[fossa-image]: https://app.fossa.io/api/projects/git%2Bgithub.com%2Fant-design%2Fant-design.svg?type=shield
Expand Down
6 changes: 3 additions & 3 deletions scripts/check-repo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ async function checkBranch({ current }: StatusResult) {
version.includes('-experimental.')
) {
spinner.info(chalk.cyan('😃 Alpha version. Skip branch check.'));
} else if (current !== 'master') {
spinner.fail(chalk.red('🤔 You are not in the master branch!'));
} else if (current !== 'main') {
spinner.fail(chalk.red('🤔 You are not in the main branch!'));
exitProcess();
}
spinner.succeed('分支检查通过');
Expand All @@ -59,7 +59,7 @@ async function checkCommit({ files }: StatusResult) {

async function checkRemote() {
spinner.start('正在检查远程分支');
const { remote } = await git.fetch('origin', 'master');
const { remote } = await git.fetch('origin', 'main');
if (!remote?.includes('ant-design/x')) {
const { value } = await git.getConfig('remote.origin.url');
if (!value?.includes('ant-design/x')) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/pre-publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ const runPrePublish = async () => {
firstArtifactFile = await Promise.any([downloadArtifactPromise, downloadOSSPromise]);
} catch (error) {
showMessage(
chalk.bgRedBright(`下载失败,请确认你当前 ${sha.slice(0, 6)} 位于 master 分支中`),
chalk.bgRedBright(`下载失败,请确认你当前 ${sha.slice(0, 6)} 位于 main 分支中`),
'fail',
);
process.exit(1);
Expand Down
2 changes: 1 addition & 1 deletion scripts/visual-regression/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ ${fullReport}
}

async function boot() {
const { prId, baseRef: targetBranch = 'master', currentRef } = await parseArgs();
const { prId, baseRef: targetBranch = 'main', currentRef } = await parseArgs();

const baseImgSourceDir = path.resolve(ROOT_DIR, `./imageSnapshots-${targetBranch}`);

Expand Down

0 comments on commit 9cd8c4f

Please sign in to comment.