Skip to content

Commit

Permalink
Merge pull request #42 from Onemind-Services-LLC/dev
Browse files Browse the repository at this point in the history
Final release before application rename
  • Loading branch information
abhi1693 authored May 15, 2024
2 parents c7e4ba1 + 320ebc5 commit a31eb2a
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 248 deletions.
12 changes: 2 additions & 10 deletions .github/ISSUE_TEMPLATE/1-bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ body:
attributes:
label: NetBox Version
description: Indicate the version of NetBox you are currently running.
placeholder: v3.5.4
placeholder: v1.2.3
validations:
required: true

- type: input
attributes:
label: NetBox Plugin Version
description: Please specify the version of the NetBox plugin you are currently using.
placeholder: v1.3.0
placeholder: v1.2.3
validations:
required: true

Expand All @@ -48,11 +48,3 @@ body:
placeholder: A TypeError exception was raised
validations:
required: true

- type: input
attributes:
label: Resolve By
description: Please specify a date by which you expect this change to be implemented.
placeholder: '2021-01-01'
validations:
required: true
10 changes: 1 addition & 9 deletions .github/ISSUE_TEMPLATE/2-feature-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ body:
attributes:
label: Current NetBox Version
description: What version of NetBox are you currently running?
placeholder: v3.5.4
placeholder: v1.2.3
validations:
required: true

Expand Down Expand Up @@ -55,11 +55,3 @@ body:
description: >
Enumerate any new external libraries or services that this feature would necessitate.
For example, does it require installing a new Python package? (Not all new features introduce dependencies.)
- type: input
attributes:
label: Resolve By
description: Please specify a date by which you expect this change to be implemented.
placeholder: '2021-01-01'
validations:
required: true
8 changes: 0 additions & 8 deletions .github/ISSUE_TEMPLATE/3-documentation-change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,3 @@ body:
description: Please describe the proposed changes and explain their significance or necessity.
validations:
required: true

- type: input
attributes:
label: Resolve By
description: Please specify a date by which you expect this change to be implemented.
placeholder: '2021-01-01'
validations:
required: true
144 changes: 0 additions & 144 deletions .github/labels.toml

This file was deleted.

29 changes: 1 addition & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,40 +39,13 @@ jobs:
- name: Test the image
run: ./test.sh

release_notify:
name: "Release Notifier"
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs:
- test
steps:
- id: latest_release
uses: thebritican/[email protected]
- uses: dawidd6/[email protected]
with:
server_address: ${{ secrets.SMTP_HOST }}
server_port: ${{ secrets.SMTP_PORT }}
username: ${{ secrets.SMTP_USERNAME }}
password: ${{ secrets.SMTP_PASSWORD }}
subject: ${{ github.repository }} release is out!
convert_markdown: true
html_body: |
# Release ${{ steps.latest_release.outputs.tag_name }}
***
${{ steps.latest_release.outputs.body }}
to: ${{ secrets.MAIL_TO }}
from: OmsBot

changelog:
name: "Changelog Generator"
runs-on: ubuntu-latest
needs:
- test
- release_notify
timeout-minutes: 30
if: github.ref_protected != 'true'
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/labels.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/pr-assign.yml

This file was deleted.

7 changes: 6 additions & 1 deletion netbox_cloud_pilot/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
from django.core.validators import MinLengthValidator, MaxLengthValidator
from django.db import models
from django.urls import reverse
from django.utils.text import slugify
from jelastic.api.exceptions import JelasticApiError

import json
from netbox.models import ChangeLoggedModel, PrimaryModel
from netbox.models.features import JobsMixin
from taggit.managers import TaggableManager
from .constants import (
NETBOX_SUPERUSER_SETTINGS,
NETBOX_SETTINGS,
Expand Down Expand Up @@ -53,6 +53,11 @@ class NetBoxConfiguration(JobsMixin, PrimaryModel):
null=True,
)

tags = TaggableManager(
through='extras.TaggedItem',
related_name='netbox_cloud_pilot_netboxconfigurations',
)

class Meta:
verbose_name = "NetBox Configuration"
verbose_name_plural = "NetBox Configurations"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name="netbox-cloud-pilot",
version="0.1.20",
version="0.1.21",
description="Enhances NetBox on CloudMyDC's VAP with advanced management and control features.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit a31eb2a

Please sign in to comment.