Skip to content

Commit a1a7f57

Browse files
authored
🚀 release: 1.0.0 (#97)
2 parents 4f698f3 + c8e6b9c commit a1a7f57

91 files changed

Lines changed: 12834 additions & 5689 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @leoparente @mfiedorowicz
1+
* @leoparente @ltucker @mfiedorowicz
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: ✨ Feature Request
3+
description: Propose a new Diode NetBox Plugin feature or enhancement
4+
labels: ["enhancement", "status: needs triage"]
5+
body:
6+
- type: input
7+
attributes:
8+
label: Diode NetBox Plugin version
9+
description: What version of Diode NetBox Plugin are you currently running?
10+
placeholder: v0.6.0
11+
validations:
12+
required: true
13+
- type: input
14+
attributes:
15+
label: NetBox version
16+
description: What version of NetBox are you currently running?
17+
placeholder: v4.1.3
18+
validations:
19+
required: true
20+
- type: dropdown
21+
attributes:
22+
label: Feature type
23+
options:
24+
- New functionality
25+
- Change to existing functionality
26+
validations:
27+
required: true
28+
- type: textarea
29+
attributes:
30+
label: Proposed feature or enhancement
31+
description: >
32+
Describe in detail the new feature or enhancement you are proposing. The more detail you provide here,
33+
the greater chance your proposal has of being discussed.
34+
validations:
35+
required: true
36+
- type: textarea
37+
attributes:
38+
label: Use case
39+
description: >
40+
Explain how adding this feature or enhancement would benefit Diode users. What need does it address?
41+
validations:
42+
required: true
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
name: 🐛 Bug Report
3+
description: Report a reproducible bug in the current release of Diode NetBox Plugin
4+
labels: ["bug", "status: needs triage"]
5+
body:
6+
- type: input
7+
attributes:
8+
label: Diode NetBox Plugin version
9+
description: What version of Diode NetBox Plugin are you currently running?
10+
placeholder: v0.6.0
11+
validations:
12+
required: true
13+
- type: input
14+
attributes:
15+
label: NetBox version
16+
description: What version of NetBox are you currently running?
17+
placeholder: v4.1.3
18+
validations:
19+
required: true
20+
- type: input
21+
attributes:
22+
label: Diode version
23+
description: What version of Diode are you currently running?
24+
placeholder: v0.6.0
25+
validations:
26+
required: true
27+
- type: dropdown
28+
attributes:
29+
label: Diode SDK type
30+
description: What type of Diode SDK are you currently running?
31+
options:
32+
- diode-sdk-python
33+
- diode-sdk-go
34+
validations:
35+
required: true
36+
- type: input
37+
attributes:
38+
label: Diode SDK version
39+
description: What version of Diode SDK are you currently running?
40+
placeholder: v0.4.0
41+
validations:
42+
required: true
43+
- type: textarea
44+
attributes:
45+
label: Steps to reproduce
46+
description: >
47+
Describe in detail the exact steps that someone else can take to reproduce this bug using given Diode NetBox
48+
Plugin, NetBox, Diode and Diode SDK versions.
49+
validations:
50+
required: true
51+
- type: textarea
52+
attributes:
53+
label: Expected behavior
54+
description: What did you expect to happen?
55+
validations:
56+
required: true
57+
- type: textarea
58+
attributes:
59+
label: Observed behavior
60+
description: What happened instead?
61+
validations:
62+
required: true
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: 📖 Documentation Change
3+
description: Suggest an addition or modification to the Diode NetBox Plugin documentation
4+
labels: ["documentation", "status: needs triage"]
5+
body:
6+
- type: dropdown
7+
attributes:
8+
label: Change type
9+
description: What type of change are you proposing?
10+
options:
11+
- Addition
12+
- Correction
13+
- Removal
14+
- Cleanup (formatting, typos, etc.)
15+
validations:
16+
required: true
17+
- type: dropdown
18+
attributes:
19+
label: Area
20+
description: To what section of the documentation does this change primarily pertain?
21+
options:
22+
- Features
23+
- Installation/upgrade
24+
- Getting started
25+
- Configuration
26+
- Development
27+
- Other
28+
validations:
29+
required: true
30+
- type: textarea
31+
attributes:
32+
label: Proposed changes
33+
description: Describe the proposed changes and why they are necessary.
34+
validations:
35+
required: true

.github/ISSUE_TEMPLATE/config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
blank_issues_enabled: false

.github/workflows/lint-tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: Lint and tests
22
on:
33
workflow_dispatch:
44
pull_request:
5+
paths:
6+
- "netbox_diode_plugin/**"
57
push:
68
branches:
79
- "!release"
10+
paths:
11+
- "netbox_diode_plugin/**"
812

913
concurrency:
1014
group: ${{ github.workflow }}
@@ -43,7 +47,7 @@ jobs:
4347
run: |
4448
make docker-compose-netbox-plugin-test-cover
4549
- name: Coverage comment
46-
uses: orgoro/coverage@v3.2
50+
uses: orgoro/coverage@3f13a558c5af7376496aa4848bf0224aead366ac # v3.2
4751
with:
4852
coverageFile: ./docker/coverage/report.xml
4953
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/manifest-modified.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ concurrency:
1010
group: ${{ github.workflow }}
1111
cancel-in-progress: false
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
manifest-modified:
1518
uses: netboxlabs/public-workflows/.github/workflows/reusable-plugin-manifest-modified.yml@release

.github/workflows/release.yaml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ concurrency:
99
cancel-in-progress: false
1010

1111
env:
12-
GH_TOKEN: ${{ secrets.ORB_CI_GH_TOKEN }}
12+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1313
SEMANTIC_RELEASE_PACKAGE: ${{ github.repository }}
1414
PYTHON_RUNTIME_VERSION: "3.11"
1515
APP_NAME: diode-netbox-plugin
16-
PYTHON_PACKAGE_NAME: netboxlabs-diode-netbox-plugin
16+
PYTHON_PACKAGE_NAME: netboxlabs_diode_netbox_plugin
17+
18+
permissions:
19+
id-token: write
20+
contents: write
1721

1822
jobs:
1923
get-python-package-name:
@@ -38,7 +42,7 @@ jobs:
3842
with:
3943
node-version: "lts/*"
4044
- name: Write package.json
41-
uses: DamianReeves/write-file-action@master
45+
uses: DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
4246
with:
4347
path: ./package.json
4448
write-mode: overwrite
@@ -52,7 +56,7 @@ jobs:
5256
}
5357
}
5458
- name: Write .releaserc.json
55-
uses: DamianReeves/write-file-action@master
59+
uses: DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
5660
with:
5761
path: ./.releaserc.json
5862
write-mode: overwrite
@@ -104,8 +108,10 @@ jobs:
104108
run: echo "::set-output name=short-sha::${GITHUB_SHA::7}"
105109
- name: Set release version
106110
id: release-version
111+
env:
112+
NEXT_RELEASE_VERSION: ${{ steps.get-next-version.outputs.new-release-version }}
107113
run: |
108-
echo "::set-output name=release-version::`echo ${{ steps.get-next-version.outputs.new-release-version }} | sed 's/v//g'`"
114+
echo "release-version=`echo $NEXT_RELEASE_VERSION | sed 's/v//g'`" >> $GITHUB_OUTPUT
109115
outputs:
110116
new-release-published: ${{ steps.get-next-version.outputs.new-release-published }}
111117
new-release-version: ${{ steps.release-version.outputs.release-version }}
@@ -119,16 +125,17 @@ jobs:
119125
if: needs.get-next-version.outputs.new-release-published == 'true'
120126
steps:
121127
- uses: actions/checkout@v4
122-
- run: echo "The new release version is ${{ needs.get-next-version.outputs.new-release-version }} commit ${{ needs.get-next-version.outputs.short-sha }}"
128+
- name: Confirm version
129+
env:
130+
NEXT_RELEASE_VERSION: ${{ needs.get-next-version.outputs.new-release-version }}
131+
NEXT_RELEASE_SHORT_SHA: ${{ needs.get-next-version.outputs.short-sha }}
132+
run: echo "The new release version is $NEXT_RELEASE_VERSION commit $NEXT_RELEASE_SHORT_SHA"
123133

124134
build:
125135
name: Build
126136
needs: [ get-python-package-name, get-next-version ]
127137
runs-on: ubuntu-latest
128138
timeout-minutes: 5
129-
permissions:
130-
id-token: write
131-
contents: read
132139
env:
133140
BUILD_VERSION: ${{ needs.get-next-version.outputs.new-release-version }}
134141
BUILD_TRACK: release
@@ -165,7 +172,7 @@ jobs:
165172
retention-days: 30
166173
if-no-files-found: error
167174
- name: Publish release distributions to PyPI
168-
uses: pypa/gh-action-pypi-publish@release/v1
175+
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v.1.12.3
169176
with:
170177
packages-dir: dist
171178

@@ -180,7 +187,7 @@ jobs:
180187
with:
181188
node-version: "lts/*"
182189
- name: Write package.json
183-
uses: DamianReeves/write-file-action@master
190+
uses: DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
184191
with:
185192
path: ./package.json
186193
write-mode: overwrite
@@ -194,7 +201,7 @@ jobs:
194201
}
195202
}
196203
- name: Write .releaserc.json
197-
uses: DamianReeves/write-file-action@master
204+
uses: DamianReeves/write-file-action@6929a9a6d1807689191dcc8bbe62b54d70a32b42 # v1.3
198205
with:
199206
path: ./.releaserc.json
200207
write-mode: overwrite

0 commit comments

Comments
 (0)