Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  (maint) Add GitReleaseManager templates
  (maint) Don't use ReleaseOfficial configuration
  • Loading branch information
vexx32 committed Jul 23, 2024
2 parents e4c95d6 + b99f692 commit 4403e80
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .templates/default/create/footer.sbn
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{ if config.create.include_footer }}

### {{ config.create.footer_heading }}

{{ if config.create.milestone_replace_text
replace_milestone_title config.create.footer_content config.create.milestone_replace_text milestone.target.title
else
config.create.footer_content
end
end }}
10 changes: 10 additions & 0 deletions .templates/default/index.sbn
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{-
include 'release-info'
if milestone.target.description
include 'milestone'
end
include 'issues' | string.rstrip
if template_kind == "CREATE"
include 'create/footer'
end
~}}
5 changes: 5 additions & 0 deletions .templates/default/issue-details.sbn
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### {{ issue_label }}

{{ for issue in issues.items[issue_label]
include 'issue-note'
end }}
6 changes: 6 additions & 0 deletions .templates/default/issue-note.sbn
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{{
if issue_label == "Bug" || issue_label == "Bug Fix" || issue_label == "Bug Fixes"
}}- Fix - {{ issue.title }} - see [#{{ issue.public_number }}]({{ issue.html_url }}).
{{ else
}}- {{ issue.title }} - see [#{{ issue.public_number }}]({{ issue.html_url }}).
{{ end -}}
4 changes: 4 additions & 0 deletions .templates/default/issues.sbn
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

{{ for issue_label in issue_labels
include 'issue-details'
end }}
2 changes: 2 additions & 0 deletions .templates/default/milestone.sbn
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

{{ milestone.target.description }}
10 changes: 10 additions & 0 deletions .templates/default/release-info.sbn
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{
if issues.count > 0
if commits.count > 0
}}As part of this release we had [{{ commits.count }} {{ commits.count | string.pluralize "commit" "commits" }}]({{ commits.html_url }}) which resulted in [{{ issues.count }} {{ issues.count | string.pluralize "issue" "issues" }}]({{ milestone.target.html_url }}?{{ milestone.query_string }}) being closed.
{{ else
}}As part of this release we had [{{ issues.count }} {{ issues.count | string.pluralize "issue" "issues" }}]({{ milestone.target.html_url }}?{{ milestone.query_string }}) closed.
{{ end
else if commits.count > 0
}}As part of this release we had [{{ commits.count }} {{ commits.count | string.pluralize "commit" "commits" }}]({{ commits.html_url }}).
{{ end -}}
2 changes: 1 addition & 1 deletion build.official.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ echo ============= WRAP POWERSHELL SCRIPT =============
echo ==================================================

echo calling %psscript% with args %*
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%psscript%' -Configuration ReleaseOfficial %*"
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%psscript%' -Configuration Release %*"
set buildstatus=%ERRORLEVEL%
echo ==================================================
exit /b %buildstatus%
2 changes: 1 addition & 1 deletion build.official.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
set -eo pipefail

./build.sh --configuration=ReleaseOfficial $*
./build.sh --configuration=Release $*

0 comments on commit 4403e80

Please sign in to comment.