-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
472 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# These are supported funding model platforms | ||
|
||
#github: [dansheps] | ||
patreon: dansheps | ||
#open_collective: dansheps | ||
#ko_fi: # Replace with a single Ko-fi username | ||
#tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
#community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
#liberapay: # Replace with a single Liberapay username | ||
#issuehunt: # Replace with a single IssueHunt username | ||
#otechie: # Replace with a single Otechie username | ||
custom: https://paypal.me/dansheps84?country.x=CA&locale.x=en_US |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
--- | ||
name: 🐛 Bug Report | ||
description: Report a reproducible bug in the current release of the plugin | ||
labels: ["type: bug"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
**NOTE:** This form is only for reporting _reproducible bugs_ in a current NetBox installation | ||
with the plugin-extensions plugin. If you're having trouble with installation or just looking for | ||
assistance with using NetBox, please visit our | ||
[discussion forum](https://github.com/netbox-community/netbox/discussions) instead. | ||
- type: input | ||
attributes: | ||
label: Plugin version | ||
description: > | ||
What version of the plugin are you running? | ||
placeholder: v1.0.0 | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: NetBox version | ||
description: > | ||
What version of NetBox are you currently running? (If you don't have access to the most | ||
recent NetBox release, consider testing on our [demo instance](https://demo.netbox.dev/) | ||
before opening a bug report to see if your issue has already been addressed.) | ||
placeholder: v3.2.0 | ||
validations: | ||
required: true | ||
- type: dropdown | ||
attributes: | ||
label: Python version | ||
description: What version of Python are you currently running? | ||
options: | ||
- 3.8 | ||
- 3.9 | ||
- 3.10 | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Steps to Reproduce | ||
description: > | ||
Describe in detail the exact steps that someone else can take to | ||
reproduce this bug using the current stable release of NetBox and the plugin. | ||
Begin with the creation of any necessary database objects and call out every | ||
operation being performed explicitly. If reporting a bug in the REST API, be | ||
sure to reconstruct the raw HTTP request(s) being made: Don't rely on a client | ||
library such as pynetbox. Additionally, **do not rely on the demo instance** | ||
for reproducing suspected bugs, as its data is prone to modification or | ||
deletion at any time. | ||
placeholder: | | ||
1. Click on "create widget" | ||
2. Set foo to 12 and bar to G | ||
3. Click the "create" button | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Expected Behavior | ||
description: What did you expect to happen? | ||
placeholder: A new widget should have been created with the specified attributes | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Observed Behavior | ||
description: What happened instead? | ||
placeholder: A TypeError exception was raised | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Reference: https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: 💬 Community Slack | ||
url: https://netdev.chat/ | ||
about: "Join #netbox on the NetDev Community Slack for assistance with installation issues and other problems" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
--- | ||
name: ✨ Feature Request | ||
description: Propose a new Plugin feature or enhancement | ||
labels: ["type: feature"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
**NOTE:** This form is only for submitting well-formed proposals to extend or modify | ||
the plugin in some way. If you're trying to solve a problem but can't figure out how, | ||
or if you still need time to work on the details of a proposed new feature, please | ||
start a [discussion](https://github.com/netbox-community/netbox/discussions) instead. | ||
- type: input | ||
attributes: | ||
label: Plugin version | ||
description: What version of the plugin are you currently running? | ||
placeholder: v1.0.0 | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: NetBox version | ||
description: What version of NetBox are you currently running? | ||
placeholder: v3.2.0 | ||
validations: | ||
required: true | ||
- type: dropdown | ||
attributes: | ||
label: Feature type | ||
options: | ||
- Data model extension | ||
- New functionality | ||
- Change to existing functionality | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Proposed functionality | ||
description: > | ||
Describe in detail the new feature or behavior you are proposing. Include any specific changes | ||
to work flows, data models, and/or the user interface. The more detail you provide here, the | ||
greater chance your proposal has of being discussed. Feature requests which don't include an | ||
actionable implementation plan will be rejected. | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Use case | ||
description: > | ||
Explain how adding this functionality would benefit NetBox users. What need does it address? | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Database changes | ||
description: > | ||
Note any changes to the database schema necessary to support the new feature. For example, | ||
does the proposal require adding a new model or field? (Not all new features require database | ||
changes.) | ||
- type: textarea | ||
attributes: | ||
label: External dependencies | ||
description: > | ||
List any new dependencies on external libraries or services that this new feature would | ||
introduce. For example, does the proposal require the installation of a new Python package? | ||
(Not all new features introduce new dependencies.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
################################################################### | ||
# This file serves as a base configuration for testing purposes # | ||
# only. It is not intended for production use. # | ||
################################################################### | ||
|
||
ALLOWED_HOSTS = ['*'] | ||
|
||
DATABASE = { | ||
'NAME': 'netbox', | ||
'USER': 'netbox', | ||
'PASSWORD': 'netbox', | ||
'HOST': 'localhost', | ||
'PORT': '', | ||
'CONN_MAX_AGE': 300, | ||
} | ||
|
||
PLUGINS = [ | ||
'netbox_plugin_extensions', | ||
] | ||
|
||
REDIS = { | ||
'tasks': { | ||
'HOST': 'localhost', | ||
'PORT': 6379, | ||
'PASSWORD': '', | ||
'DATABASE': 0, | ||
'SSL': False, | ||
}, | ||
'caching': { | ||
'HOST': 'localhost', | ||
'PORT': 6379, | ||
'PASSWORD': '', | ||
'DATABASE': 1, | ||
'SSL': False, | ||
} | ||
} | ||
|
||
SECRET_KEY = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name-template: 'v$RESOLVED_VERSION' | ||
tag-template: 'v$RESOLVED_VERSION' | ||
categories: | ||
- title: '🚀 Features' | ||
labels: | ||
- 'type: feature' | ||
- 'type: enhancement' | ||
- title: '🐛 Bug Fixes' | ||
labels: | ||
- 'type: bug' | ||
- title: '🧰 Maintenance' | ||
labels: | ||
- 'type: housekeeping' | ||
- 'type: documentation' | ||
change-template: '- $TITLE @$AUTHOR (#$NUMBER)' | ||
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. | ||
version-resolver: | ||
minor: | ||
labels: | ||
- 'type: feature' | ||
patch: | ||
labels: | ||
- 'type: enhancement' | ||
- 'type: bug' | ||
- 'type: housekeeping' | ||
- 'type: documentation' | ||
default: patch | ||
template: | | ||
## Changes | ||
$CHANGES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: PyPI Build | ||
on: | ||
release: | ||
types: released | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.7] | ||
steps: | ||
|
||
- name: Checkout repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install --upgrade --force-reinstall setuptools wheel | ||
- name: Build | ||
run: python setup.py sdist bdist_wheel | ||
|
||
- name: Publish package to TestPyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
skip_existing: true | ||
|
||
- name: Publish package | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_API_TOKEN }} | ||
skip_existing: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: release-drafter/release-drafter@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include README.md | ||
include LICENSE | ||
recursive-include netbox_routing/templates * | ||
recursive-include netbox_routing/static * |
Oops, something went wrong.