[PR #18137] [CLOSED] 18136 Allow Script running within a Branch #15280

Closed
opened 2025-12-30 00:21:02 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/18137
Author: @arthanson
Created: 12/2/2024
Status: Closed

Base: developHead: 18136-script-branch


📝 Commits (4)

  • 51e770f 18136 Allow Script running within a Branch
  • 2da12ed 18136 Allow Script running within a Branch
  • 768d897 Merge branch 'develop' into 18136-script-branch
  • 03a769e 18136 update script runner to use SCRIPT_CONTEXT_MANAGERS

📊 Changes

3 files changed (+31 additions, -2 deletions)

View changed files

📝 docs/configuration/system.md (+8 -0)
📝 netbox/extras/jobs.py (+22 -2)
📝 netbox/netbox/settings.py (+1 -0)

📄 Description

Fixes: #18136

Adds a config parameter to NetBox for BranchingBackend that is called during script execution to get and switch the active branch. See also https://github.com/netboxlabs/netbox-branching/pull/184 for changes in the branching plugin to support this.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/18137 **Author:** [@arthanson](https://github.com/arthanson) **Created:** 12/2/2024 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `18136-script-branch` --- ### 📝 Commits (4) - [`51e770f`](https://github.com/netbox-community/netbox/commit/51e770fa9c7a5e5702ac84ce4b90c7be6e194e27) 18136 Allow Script running within a Branch - [`2da12ed`](https://github.com/netbox-community/netbox/commit/2da12ed677f576d7e953a1a86f4113feb90bc74b) 18136 Allow Script running within a Branch - [`768d897`](https://github.com/netbox-community/netbox/commit/768d89734cf81ded9e6813b0ab89fe84406a3d51) Merge branch 'develop' into 18136-script-branch - [`03a769e`](https://github.com/netbox-community/netbox/commit/03a769e8ec6f5238804c38eb96141871ce3cffc2) 18136 update script runner to use SCRIPT_CONTEXT_MANAGERS ### 📊 Changes **3 files changed** (+31 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/configuration/system.md` (+8 -0) 📝 `netbox/extras/jobs.py` (+22 -2) 📝 `netbox/netbox/settings.py` (+1 -0) </details> ### 📄 Description ### Fixes: #18136 Adds a config parameter to NetBox for BranchingBackend that is called during script execution to get and switch the active branch. See also https://github.com/netboxlabs/netbox-branching/pull/184 for changes in the branching plugin to support this. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-30 00:21:02 +01:00
adam closed this issue 2025-12-30 00:21:02 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#15280