Skip to content

Commit 0d6f281

Browse files
committed
Update software process
- Use "main" branch instead of "master" - Clarify how to test docs locally
1 parent 5fef0d5 commit 0d6f281

File tree

2 files changed

+18
-20
lines changed

2 files changed

+18
-20
lines changed

.github/PULL_REQUEST_TEMPLATE/release.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ Prepare for release of hdmf-common-schema [version]
88
- [ ] Update the version string in `docs/source/conf.py` and `common/namespace.yaml` (remove "-alpha" suffix)
99
- [ ] Update `docs/source/conf.py` as needed
1010
- [ ] Update release notes (set release date) in `docs/source/format_release_notes.rst` and any other docs as needed
11-
- [ ] Test docs locally (`cd docs; make fulldoc`)
11+
- [ ] Test docs locally (`cd docs; make fulldoc`) where the hdmf-common-schema submodule in the local version of HDMF
12+
is fully up-to-date with the head of the main branch.
1213
- [ ] Push changes to this PR and make sure all PRs to be included in this release have been merged
13-
- [ ] Point the HDMF submodule to this branch in the HDMF branch corresponding to this schema version and check
14-
that HDMF tests succeed
1514
- [ ] Check that the readthedocs build for this PR succeeds (build latest to pull the new branch, then activate and
1615
build docs for new branch): https://readthedocs.org/projects/hdmf-common-schema/builds/
1716

docs/source/software_process.rst

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Making a Pull Request
44
Actions 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

99
1. 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:
1717
Documentation or internal changes to the repo (i.e., changes that do not affect the schema files)
1818
do 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

2323
Merging PRs and Making Releases
@@ -27,22 +27,22 @@ Merging PRs and Making Releases
2727
such as "-alpha". The current "dev" branch of HDMF and all HDMF releases MUST point to a public release of
2828
hdmf-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
3333
the 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``.
3636
If 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",
3939
then 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
4141
of 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
4343
the 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
4646
a public release of hdmf-common-schema is made, this HDMF branch should be checked to ensure that when the new release
4747
is 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

5252
The current "dev" branch of HDMF and all HDMF releases MUST always point to a public release of hdmf-common-schema. If
5353
a 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
5555
an HDMF file when the schema is not cached.
5656

5757
Making a Release Checklist
@@ -66,17 +66,16 @@ Before merging:
6666
4. Update the version string in ``docs/source/conf.py`` and ``common/namespace.yaml`` (remove "-alpha" suffix)
6767
5. Update ``docs/source/conf.py`` as needed
6868
6. 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.
7071
8. 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

7776
After 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``.
8180
2. 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`_.
9089
The 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

Comments
 (0)