@@ -4,7 +4,7 @@ Making a Pull Request
44Actions to take on each PR that modifies the schema and does not prepare the schema for a public release
55(this is also in the `GitHub PR template `_):
66
7- If the current schema version on "master " is a public release, then:
7+ If the current schema version on "main " is a public release, then:
88
991. Update the version string in ``docs/source/conf.py `` and ``common/namespace.yaml `` to the next version with the
1010 suffix "-alpha"
@@ -17,7 +17,7 @@ Always:
1717Documentation or internal changes to the repo (i.e., changes that do not affect the schema files)
1818do not need to be accompanied with a version bump or addition to the release notes.
1919
20- .. _`GitHub PR template` : https://github.com/hdmf-dev/hdmf-common-schema/blob/master /.github/PULL_REQUEST_TEMPLATE.md
20+ .. _`GitHub PR template` : https://github.com/hdmf-dev/hdmf-common-schema/blob/main /.github/PULL_REQUEST_TEMPLATE.md
2121
2222
2323Merging PRs and Making Releases
@@ -27,22 +27,22 @@ Merging PRs and Making Releases
2727such as "-alpha". The current "dev" branch of HDMF and all HDMF releases MUST point to a public release of
2828hdmf-common-schema. All schema that use hdmf-common-schema as a submodule MUST also point only to public releases.
2929
30- **Internal release **: a state of the schema "master " branch where the version string ends with "-alpha".
30+ **Internal release **: a state of the schema "main " branch where the version string ends with "-alpha".
3131
32- The default branch of hdmf-common-schema is "master ". **The "master " branch holds the bleeding edge version of
32+ The default branch of hdmf-common-schema is "main ". **The "main " branch holds the bleeding edge version of
3333the hdmf-common schema specification. **
3434
35- PRs should be made to "master ". Every PR should include an update to ``docs/source/format_release_notes.rst ``.
35+ PRs should be made to "main ". Every PR should include an update to ``docs/source/format_release_notes.rst ``.
3636If the current version is a public release, then the PR should also update the version of the schema in two places:
3737``docs/source/conf.py `` and ``common/namespace.yaml ``. The new version should be the next bugfix/minor/major version
38- of the schema with the suffix "-alpha". For example, if the current schema on "master " has version "2.2.0",
38+ of the schema with the suffix "-alpha". For example, if the current schema on "main " has version "2.2.0",
3939then a PR implementing a bug fix should update the schema version from "2.2.0" to "2.2.1-alpha". Appending the "-alpha"
40- suffix ensures that any person or API accessing the default "master " branch of the repo containing an internal release
40+ suffix ensures that any person or API accessing the default "main " branch of the repo containing an internal release
4141of the schema receives the schema with a version string that is distinct from public releases of the schema. If the
42- current schema on "master " is already an internal release, then the version string does not need to be updated unless
42+ current schema on "main " is already an internal release, then the version string does not need to be updated unless
4343the PR requires an upgrade in the version (e.g., from bugfix to minor).
4444
45- HDMF should contain a branch and PR that tracks the "master " branch of hdmf-common-schema. Before
45+ HDMF should contain a branch and PR that tracks the "main " branch of hdmf-common-schema. Before
4646a public release of hdmf-common-schema is made, this HDMF branch should be checked to ensure that when the new release
4747is made, the branch can be merged without issue.
4848
@@ -51,7 +51,7 @@ suffix and the documentation and release notes should be updated as needed (see
5151
5252The current "dev" branch of HDMF and all HDMF releases MUST always point to a public release of hdmf-common-schema. If
5353a public release contains an internally released version of hdmf-common-schema, e.g., from an untagged commit on the
54- "master " branch, then it will be difficult to find the version (commit) of hdmf-common-schema that was used to create
54+ "main " branch, then it will be difficult to find the version (commit) of hdmf-common-schema that was used to create
5555an HDMF file when the schema is not cached.
5656
5757Making a Release Checklist
@@ -66,17 +66,16 @@ Before merging:
66664. Update the version string in ``docs/source/conf.py `` and ``common/namespace.yaml `` (remove "-alpha" suffix)
67675. Update ``docs/source/conf.py `` as needed
68686. Update release notes (set release date) in ``docs/source/format_release_notes.rst `` and any other docs as needed
69- 7. Test docs locally (``cd docs; make fulldoc ``)
69+ 7. Test docs locally (``cd docs; make fulldoc ``) where the hdmf-common-schema submodule in the local version of HDMF
70+ is fully up-to-date with the head of the main branch.
70718. Push changes to a new PR and make sure all PRs to be included in this release have been merged. Add
7172 ``?template=release.md `` to the PR URL to auto-populate the PR with this checklist.
72- 9. Point the HDMF submodule to this branch in the HDMF branch corresponding to this schema version and check
73- that HDMF tests succeed
74- 10. Check that the readthedocs build for this PR succeeds (build latest to pull the new branch, then activate and
75- build docs for new branch): https://readthedocs.org/projects/hdmf-common-schema/builds/
73+ 9. Check that the readthedocs build for this PR succeeds (build latest to pull the new branch, then activate and
74+ build docs for new branch): https://readthedocs.org/projects/hdmf-common-schema/builds/
7675
7776After merging:
7877
79- 1. Create a new git tag. Pull the latest master branch locally, run ``git tag [version] --sign ``, copy and paste the
78+ 1. Create a new git tag. Pull the latest main branch locally, run ``git tag [version] --sign ``, copy and paste the
8079 release notes into the tag message, and run ``git push --tags ``.
81802. On the `GitHub tags `_ page, click "..." -> "Create release" for the new tag on the right side of the page.
8281 Copy and paste the release notes into the release message, update the formatting if needed (reST to Markdown),
@@ -90,4 +89,4 @@ This checklist can also be found in the `GitHub release PR template`_.
9089The time between merging this PR and creating a new public release should be minimized.
9190
9291.. _`GitHub tags` : https://github.com/hdmf-dev/hdmf-common-schema/tags
93- .. _`GitHub release PR template` : https://github.com/hdmf-dev/hdmf-common-schema/blob/master /.github/PULL_REQUEST_TEMPLATE/release.md
92+ .. _`GitHub release PR template` : https://github.com/hdmf-dev/hdmf-common-schema/blob/main /.github/PULL_REQUEST_TEMPLATE/release.md
0 commit comments