Skip to content

Commit

Permalink
structurizr-client: Workspace archive file now includes the branch na…
Browse files Browse the repository at this point in the history
…me in the filename.
  • Loading branch information
simonbrowndotje committed Sep 20, 2024
1 parent 6697b08 commit 75d3d13
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ subprojects { proj ->

description = 'Structurizr'
group = 'com.structurizr'
version = '3.0.0'
version = '3.0.1'

repositories {
mavenCentral()
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.0.1 (unreleased)

- structurizr-client: Workspace archive file now includes the branch name in the filename.

## 3.0.0 (19th September 2024)

- structurizr-client: Adds support to get/put workspace branches on the [cloud service](https://docs.structurizr.com/cloud/workspace-branches) and [on-premises installation](https://docs.structurizr.com/onpremises/workspace-branches).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ private void debugArchivedWorkspaceLocation(File archiveFile) {

private String createArchiveFileName(long workspaceId) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
return "structurizr-" + workspaceId + "-" + sdf.format(new Date()) + ".json";
return "structurizr-" + workspaceId + "-" + (StringUtils.isNullOrEmpty(branch) ? "" : (branch + "-")) + sdf.format(new Date()) + ".json";
}

public void setUser(String user) {
Expand Down

0 comments on commit 75d3d13

Please sign in to comment.