Skip to content

Commit a62fd0f

Browse files
authored
Improved developer docs (#19)
1 parent fe992e6 commit a62fd0f

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ body:
3232
- type: textarea
3333
attributes:
3434
label: Example YAML
35-
description: Provide an example for the YAML file that is causing you issue
35+
description: Provide an example for the YAML file that is causing your issue
3636
placeholder: |
3737
---
3838
render: YAML

docs/dev/Branches.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Git branching model
2+
3+
## `main` branch
4+
5+
All new features and bugfixes will first be merged into the main branch. The `Major.Minor` version number will follow those from Netbox with which the plugin is compatible.
6+
7+
## `netbox/vX.Y` branches
8+
9+
After a new Netbox release is published the state of the main branch is copied into a new `netbox/vX.Y` branch. For example after the release of Netbox 3.4 the `main` branch will be copied to `netbox/v3.3`. Only after that copy is made changes for Netbox 3.4 can be merged into `main`.
10+
These branches are in maintenance mode. No new feature will be merged but bugfixes can be backported from `main` if they are relevant.

Release.md renamed to docs/dev/Release.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
1-
# Prepare a release
1+
# Release management
2+
3+
The version numbers will follow those of Netbox. A given release of netbox-initializers is only compatible with a Netbox release with a matching `Major.Minor` version. The patch release number will be used for bugfixes in the plugin.
4+
5+
## Prepare a release
26

37
Please follow these steps to produce a release
48

5-
## Checkout correct branch
9+
### Checkout correct branch
610

711
Checkout the branch for which the release is to be build. If no branch exists for the new release one must be created. The name must correspond to the Netbox version in the format "netbox/MAJOR.MINOR".
812

9-
## Set version number
13+
### Set version number
1014

1115
For patch releases the version number in `pyproject.toml` and the `NetBoxInitializersConfig` needs to be updated. If the release is for a new Netbox version additional changes need to be made in `README.md` and `Dockerfile` (for tests).
1216

13-
## Build the release automatically
17+
### Build the release automatically
1418

1519
After changing the version numbers and committing them create a new release with the GitHub Web UI. Configure the release to create a new tag with the name `vX.Y.Z`.
1620

17-
## Build the release manually
21+
### Build the release manually
1822

19-
### Build the packages
23+
#### Build the packages
2024

2125
Install the needed Python packages for the build:
2226

@@ -30,7 +34,7 @@ Then run the build for the wheel and source distributions:
3034
poetry build
3135
```
3236

33-
### Upload packages to PyPi
37+
#### Upload packages to PyPi
3438

3539
```bash
3640
poetry publish

0 commit comments

Comments
 (0)