Skip to content

Commit

Permalink
Cookie initialy baked by NetworkToCode Cookie Drift Manager Tool (#210)
Browse files Browse the repository at this point in the history
* Cookie initialy baked by NetworkToCode Cookie Drift Manager Tool

Template:

```
{
    "template": "https://github.com/nautobot/cookiecutter-nautobot-app.git",
    "dir": "nautobot-app",
    "ref": "develop",
    "path": null
}
```

Cookie:

```
{
    "remote": "https://github.com/nautobot/nautobot-app-version-control.git",
    "path": "/opt/ntc/drift-manager/outputs/nautobot-app-version-control",
    "repository_path": "/opt/ntc/drift-manager/outputs/nautobot-app-version-control",
    "dir": "",
    "branch_prefix": "drift-manager",
    "context": {
        "codeowner_github_usernames": "@smith-ntc",
        "full_name": "Network to Code, LLC",
        "email": "opensource@networktocode.com",
        "github_org": "nautobot",
        "app_name": "nautobot_version_control",
        "verbose_name": "Nautobot Version Control",
        "app_slug": "nautobot-version-control",
        "project_slug": "nautobot-app-version-control",
        "repo_url": "https://github.com/nautobot/nautobot-app-version-control",
        "base_url": "version-control",
        "min_nautobot_version": "2.0.3",
        "max_nautobot_version": "2.9999",
        "camel_name": "NautobotVersionControl",
        "project_short_description": "Nautobot Version Control with Dolt",
        "model_class_name": "None",
        "open_source_license": "Apache-2.0",
        "docs_base_url": "https://docs.nautobot.com",
        "docs_app_url": "https://docs.nautobot.com/projects/version-control/en/latest",
        "_template": "https://github.com/nautobot/cookiecutter-nautobot-app.git",
        "_output_dir": "/opt/ntc/drift-manager/outputs",
        "_repo_dir": "/opt/ntc/drift-manager/outputs/.cookiecutters/cookiecutter-nautobot-app/nautobot-app",
        "_checkout": "develop"
    },
    "base_branch": "develop",
    "remote_name": "origin",
    "pull_request_strategy": "PullRequestStrategy.CREATE",
    "post_actions": [
        "PostAction.BLACK"
    ],
    "baked_commit_ref": "",
    "draft": true
}
```

CLI Arguments:

```
{
    "cookie_dir": "",
    "input": false,
    "json_filename": "json/version-control.json",
    "output_dir": "./outputs",
    "push": true,
    "template": "https://github.com/nautobot/cookiecutter-nautobot-app.git",
    "template_dir": "nautobot-app",
    "template_ref": "develop",
    "pull_request": null,
    "post_action": [
        "black"
    ],
    "disable_post_actions": false,
    "draft": true
}
```

* chore: Manual fixes

* chore: Lock poetry

* chore: Changelog fragment

* fix: linters

* fix: Added changelog fragment

* fix: Remove mysql and postgresql from CI

* Review feedback

---------

Co-authored-by: bakebot <info@networktocode.com>
Co-authored-by: Glenn Matthews <glenn.matthews@networktocode.com>
  • Loading branch information
3 people authored Jul 1, 2024
1 parent 50df6b2 commit bbbd6d4
Show file tree
Hide file tree
Showing 44 changed files with 1,521 additions and 829 deletions.
58 changes: 34 additions & 24 deletions .cookiecutter.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,35 @@
{
"cookiecutter": {
"codeowner_github_usernames": "@smith-ntc",
"full_name": "Network to Code, LLC",
"email": "info@networktocode.com",
"github_org": "nautobot",
"plugin_name": "nautobot_version_control",
"verbose_name": "Nautobot Version Control",
"plugin_slug": "nautobot-version-control",
"project_slug": "nautobot-plugin-version-control",
"repo_url": "https://github.com/nautobot/nautobot-plugin-version-control",
"base_url": "nautobot-version-control",
"min_nautobot_version": "1.5.3",
"max_nautobot_version": "1.9999",
"nautobot_version": "latest",
"camel_name": "NautobotVersionControl",
"project_short_description": "Nautobot Version Control",
"version": "0.1.0",
"model_class_name": "None",
"open_source_license": "Apache-2.0",
"docs_base_url": "https://docs.nautobot.com",
"docs_app_url": "https://docs.nautobot.com/projects/nautobot-version-control/en/latest",
"_template": "../cookiecutter-ntc/nautobot-plugin"
}
}
"cookiecutter": {
"codeowner_github_usernames": "@smith-ntc",
"full_name": "Network to Code, LLC",
"email": "opensource@networktocode.com",
"github_org": "nautobot",
"app_name": "nautobot_version_control",
"verbose_name": "Nautobot Version Control",
"app_slug": "nautobot-version-control",
"project_slug": "nautobot-app-version-control",
"repo_url": "https://github.com/nautobot/nautobot-app-version-control",
"base_url": "version-control",
"min_nautobot_version": "2.0.3",
"max_nautobot_version": "2.9999",
"camel_name": "NautobotVersionControl",
"project_short_description": "Nautobot Version Control with Dolt",
"model_class_name": "None",
"open_source_license": "Apache-2.0",
"docs_base_url": "https://docs.nautobot.com",
"docs_app_url": "https://docs.nautobot.com/projects/version-control/en/latest",
"_drift_manager": {
"template": "https://github.com/nautobot/cookiecutter-nautobot-app.git",
"template_dir": "nautobot-app",
"template_ref": "develop",
"cookie_dir": "",
"branch_prefix": "drift-manager",
"pull_request_strategy": "create",
"post_actions": [
"black"
],
"draft": true,
"baked_commit_ref": "e400b7359a805402f1ec49a9555424e6bfce3856"
}
}
}
6 changes: 3 additions & 3 deletions .flake8
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[flake8]
# E501: Line length is enforced by Black, so flake8 doesn't need to check it
# W503: Black disagrees with this rule, as does PEP 8; Black wins
ignore = E501, W503
ignore =
E501, # Line length is enforced by Black, so flake8 doesn't need to check it
W503 # Black disagrees with this rule, as does PEP 8; Black wins
exclude =
migrations,
__pycache__,
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ about: Report a reproducible bug in the current release of nautobot-version-cont
---

### Environment
* Python version: <!-- Example: 3.7.7 -->
* Nautobot version: <!-- Example: 1.5.3 -->
* nautobot-version-control version: <!-- Example: 0.1.0 -->
* Python version: <!-- Example: 3.11.4 -->
* Nautobot version: <!-- Example: 2.0.3 -->
* nautobot-version-control version: <!-- Example: 1.0.0 -->

<!-- What did you expect to happen? -->
### Expected Behavior
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ about: Propose a new feature or enhancement
---

### Environment
* Nautobot version: <!-- Example: 1.5.3 -->
* nautobot-version-control version: <!-- Example: 0.1.0 -->
* Nautobot version: <!-- Example: 2.0.3 -->
* nautobot-version-control version: <!-- Example: 1.0.0 -->

<!--
Describe in detail the new functionality you are proposing.
Expand Down
38 changes: 31 additions & 7 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,34 @@
## New Pull Request
<!--
Thank you for your interest in contributing to Nautobot Version Control! Please note
that our contribution policy recommends that a feature request or bug
report be opened for approval prior to filing a pull request. This
helps avoid wasting time and effort on something that we might not
be able to accept.
Have you:
- [ ] Updated the README if necessary?
- [ ] Updated any configuration settings?
- [ ] Written a unit test?
Please indicate the relevant feature request or bug report below.
-->

## Change Notes
# Closes: #<ISSUE NUMBER GOES HERE>

## Justification
## What's Changed

<!--
Please include:
- A summary of the proposed changes
- A sectioned breakdown for larger features under ## subheadings
- Screenshots, example payloads where relevant:
- Before/After for bugfixes
- Using a new feature
-->

## To Do

<!--
Please feel free to update todos to keep track of your own notes for WIP PRs.
-->
- [ ] Explanation of Change(s)
- [ ] Added change log fragment(s) (for more information see [the documentation](https://docs.nautobot.com/projects/core/en/stable/development/#creating-changelog-fragments))
- [ ] Attached Screenshots, Payload Example
- [ ] Unit, Integration Tests
- [ ] Documentation Updates (when adding/changing features)
- [ ] Outline Remaining Work, Constraints from Design
Loading

0 comments on commit bbbd6d4

Please sign in to comment.