Skip to content

Commit a44490c

Browse files
committed
Add Business Processess if they are not in source control
1 parent 730e6fe commit a44490c

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.9.1] - Unreleased
9+
10+
### Fixed
11+
- Fixed business processes not being added to source control automatically (#676)
12+
813
## [2.9.0] - 2025-01-09
914

1015
### Added

cls/SourceControl/Git/Extension.cls

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ Method UserAction(Type As %Integer, Name As %String, InternalName As %String, Se
5959
set filename = ##class(SourceControl.Git.Utils).FullExternalName(.InternalName)
6060
do ##class(SourceControl.Git.Change).GetUncommitted(filename,.tAction)
6161
do ..GetStatus(.InternalName, .isInSourceControl, .isEditable,.isCheckedOut,.userCheckedOut)
62+
63+
// Deal with Business Processes
64+
if (('isInSourceControl) && (##class(SourceControl.Git.Utils).Type(InternalName) = "cls")) {
65+
set name = $piece(InternalName,".CLS",1)
66+
set exists = ##class(%Dictionary.CompiledClass).%ExistsId(name)
67+
if (exists && $classmethod(name,"%Extends","Ens.BusinessProcess")) {
68+
do ..AddToSourceControl(InternalName)
69+
}
70+
}
71+
6272
if '$data(tAction) {
6373
set user = "", inNamespace = ""
6474
if 'isEditable || ##class(SourceControl.Git.Utils).Locked() {

module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<Document name="git-source-control.ZPM">
44
<Module>
55
<Name>git-source-control</Name>
6-
<Version>2.9.0</Version>
6+
<Version>2.9.1</Version>
77
<Description>Server-side source control extension for use of Git on InterSystems platforms</Description>
88
<Keywords>git source control studio vscode</Keywords>
99
<Packaging>module</Packaging>

0 commit comments

Comments
 (0)