Skip to content

Commit

Permalink
Rename 'latest' branch to 'main'
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed May 31, 2021
1 parent 3af0916 commit d64e467
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs-lint.yml
Expand Up @@ -15,7 +15,7 @@ jobs:

- uses: github/super-linter@v3
env:
DEFAULT_BRANCH: latest
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
LINTER_RULES_PATH: '.' # From https://github.com/github/super-linter/pull/859#issuecomment-709625090

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Expand Up @@ -4,7 +4,7 @@ on:
schedule:
- cron: '0 0 * * *'
push:
branches: [latest]
branches: [main]
release:

jobs:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -247,4 +247,4 @@ The following things have been deprecated and will not be supported in v3.0:
- Alternative 1: Use `CommonMarkConverter` or `GithubFlavoredMarkdownConverter` if you don't need to customize the environment
- Alternative 2: Instantiate a new `Environment` and add the necessary extensions yourself

[unreleased]: https://github.com/thephpleague/commonmark/compare/1.6...latest
[unreleased]: https://github.com/thephpleague/commonmark/compare/1.6...main
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -3,7 +3,7 @@
[![Latest Version](https://img.shields.io/packagist/v/league/commonmark.svg?style=flat-square)](https://packagist.org/packages/league/commonmark)
[![Total Downloads](https://img.shields.io/packagist/dt/league/commonmark.svg?style=flat-square)](https://packagist.org/packages/league/commonmark)
[![Software License](https://img.shields.io/badge/License-BSD--3-brightgreen.svg?style=flat-square)](LICENSE)
[![Build Status](https://img.shields.io/github/workflow/status/thephpleague/commonmark/Tests/latest.svg?style=flat-square)](https://github.com/thephpleague/commonmark/actions?query=workflow%3ATests+branch%3Alatest)
[![Build Status](https://img.shields.io/github/workflow/status/thephpleague/commonmark/Tests/main.svg?style=flat-square)](https://github.com/thephpleague/commonmark/actions?query=workflow%3ATests+branch%3Amain)
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/thephpleague/commonmark.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/commonmark/code-structure)
[![Quality Score](https://img.shields.io/scrutinizer/g/thephpleague/commonmark.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/commonmark)
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/126/badge)](https://bestpractices.coreinfrastructure.org/projects/126)
Expand Down Expand Up @@ -142,7 +142,7 @@ Contributions to this library are **welcome**, especially ones that:

Major refactoring to core parsing logic should be avoided if possible so that we can easily follow updates made to [the reference implementation][commonmark.js]. That being said, we will absolutely consider changes which don't deviate too far from the reference spec or which are favored by other popular CommonMark implementations.

Please see [CONTRIBUTING](https://github.com/thephpleague/commonmark/blob/latest/.github/CONTRIBUTING.md) for additional details.
Please see [CONTRIBUTING](https://github.com/thephpleague/commonmark/blob/main/.github/CONTRIBUTING.md) for additional details.

## 🧪 Testing

Expand Down
4 changes: 2 additions & 2 deletions RELEASE_CHECKLIST.md
Expand Up @@ -6,13 +6,13 @@
- [ ] Ensure changes are documented in `CHANGELOG.md`. Release titles should be linked to GitHub.
- [ ] If breaking changes or deprecations are introduced, document the upgrade process in the doc site's upgrade page.
- [ ] Bump the `branch-alias` in `composer.json` and the dev `VERSION` in `CommonMarkConverter` if needed.
- [ ] Ensure all changes above make it into the `latest` branch
- [ ] Ensure all changes above make it into the `main` branch

## Documentation

- [ ] Update the relevant documentation in `./docs/`
- [ ] Remember to note the upgrade changes in the docs too
- [ ] If releasing a new major or minor version, make sure to clone the previous one and make the necessary changes. This will allow people to submit new features to the dev-latest version. Don't forget to update version numbers in project.yml! And update the redirects too. Especially for /security/.
- [ ] If releasing a new major or minor version, make sure to clone the previous one and make the necessary changes. This will allow people to submit new features to the dev-main version. Don't forget to update version numbers in project.yml! And update the redirects too. Especially for /security/.
- [ ] Build and preview the docs locally

## Release
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -100,7 +100,7 @@
},
"extra": {
"branch-alias": {
"dev-latest": "2.0-dev"
"dev-main": "2.0-dev"
}
},
"config": {
Expand Down
2 changes: 1 addition & 1 deletion docs/2.0/index.md
Expand Up @@ -11,7 +11,7 @@ title: Overview
[![Latest Version](https://img.shields.io/packagist/v/league/commonmark.svg?style=flat-square)](https://packagist.org/packages/league/commonmark)
[![Total Downloads](https://img.shields.io/packagist/dt/league/commonmark.svg?style=flat-square)](https://packagist.org/packages/league/commonmark)
[![Software License](https://img.shields.io/badge/License-BSD--3-brightgreen.svg?style=flat-square)](LICENSE)
[![Build Status](https://img.shields.io/github/workflow/status/thephpleague/commonmark/Tests/latest.svg?style=flat-square)](https://github.com/thephpleague/commonmark/actions?query=workflow%3ATests+branch%3Alatest)
[![Build Status](https://img.shields.io/github/workflow/status/thephpleague/commonmark/Tests/main.svg?style=flat-square)](https://github.com/thephpleague/commonmark/actions?query=workflow%3ATests+branch%3Amain)
[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/thephpleague/commonmark.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/commonmark/code-structure)
[![Quality Score](https://img.shields.io/scrutinizer/g/thephpleague/commonmark.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/commonmark)

Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Expand Up @@ -4,4 +4,4 @@

This branch is automatically generated by Jekyll via GitHub Actions.

To make changes, please go back to the `latest` branch and make changes within the `docs` folder.
To make changes, please go back to the `main` branch and make changes within the `docs` folder.
4 changes: 2 additions & 2 deletions docs/_layouts/homepage.html
Expand Up @@ -49,8 +49,8 @@ <h2>{{ site.data.project.tagline }}</h2>
<a href="https://twitter.com/{{ site.data.project.author.twitter_account }}"><img src="https://img.shields.io/badge/author-@{{ site.data.project.author.twitter_account }}-blue.svg?style=flat-square" alt="Author"></a>
<a href="https://github.com/thephpleague/{{ site.data.project.repository }}/releases"><img src="https://img.shields.io/packagist/v/league/{{ site.data.project.repository }}.svg?style=flat-square" alt="Latest Version"></a>
<a href="https://packagist.org/packages/league/{{ site.data.project.repository }}"><img src="https://img.shields.io/packagist/dt/league/{{ site.data.project.repository }}.svg?style=flat-square" alt="Total Downloads"></a>
<a href="https://github.com/thephpleague/{{ site.data.project.repository }}/blob/latest/LICENSE"><img src="https://img.shields.io/badge/license-BSD--3-orange.svg?style=flat-square" alt="Software License"></a>
<a href="https://github.com/thephpleague/commonmark/actions?query=workflow%3ATests+branch%3Alatest"><img src="https://img.shields.io/github/workflow/status/thephpleague/{{ site.data.project.repository }}/Tests/latest.svg?style=flat-square" alt="Build Status"></a>
<a href="https://github.com/thephpleague/{{ site.data.project.repository }}/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-BSD--3-orange.svg?style=flat-square" alt="Software License"></a>
<a href="https://github.com/thephpleague/commonmark/actions?query=workflow%3ATests+branch%3Amain"><img src="https://img.shields.io/github/workflow/status/thephpleague/{{ site.data.project.repository }}/Tests/main.svg?style=flat-square" alt="Build Status"></a>
<a href="https://scrutinizer-ci.com/g/thephpleague/{{ site.data.project.repository }}/code-structure"><img src="https://img.shields.io/scrutinizer/coverage/g/thephpleague/{{ site.data.project.repository }}.svg?style=flat-square" alt="Coverage Status"></a>
<a href="https://scrutinizer-ci.com/g/thephpleague/{{ site.data.project.repository }}"><img src="https://img.shields.io/scrutinizer/g/thephpleague/{{ site.data.project.repository }}.svg?style=flat-square" alt="Quality Score"></a>
</div>
Expand Down

0 comments on commit d64e467

Please sign in to comment.