Class: Apadmi::Grout::DefaultTemplates

Inherits:
Object
  • Object
show all
Defined in:
lib/apadmi/grout/models/release_notes_templates.rb

Overview

Default baked in templates for generating release notes

Instance Method Summary collapse

Instance Method Details

#default_document_templateObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/apadmi/grout/models/release_notes_templates.rb', line 7

def default_document_template
  %{# {{config.title}}

### Version
{{config.app_version}}

### Release date
{{config.date}}

### Minimum Supported OS
{{config.min_os_version}}

### Build Details
Commit Hash: {{config.commit_hash}}
[CI/CD build \#{{config.ci_build_number}}]({{config.ci_build_url}})

## Tickets Moved By This Build
{{ rendered_moved_issues }}
## Sprint Release notes
{{ rendered_release_issues }} }
end

#default_list_templateObject



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/apadmi/grout/models/release_notes_templates.rb', line 29

def default_list_template
  %{### New functionality
{{# classified_issues.features.first}}
{{# classified_issues.features}}
* [{{ key }} - {{ summary }}]({{ url }})
{{/ classified_issues.features}}

{{/ classified_issues.features.first}}
{{# classified_issues.improvements.first}}
### Improvements
  {{# classified_issues.improvements}}
* [{{ key }} - {{ summary }}]({{ url }})
  {{/ classified_issues.improvements}}

{{/ classified_issues.improvements.first}}
{{# classified_issues.tasks.first}}
### Completed Tasks
  {{# classified_issues.tasks}}
* [{{ key }} - {{ summary }}]({{ url }})
  {{/ classified_issues.tasks}}

{{/ classified_issues.tasks.first}}
{{# classified_issues.defects.first}}
### Fixed defects
  {{# classified_issues.defects}}
* [{{ key }} - {{ summary }}]({{ url }})
  {{/ classified_issues.defects}}

{{/ classified_issues.defects.first}}
{{# classified_issues.others.first}}
### Other issue types
  {{# classified_issues.others}}
* [{{issue_type}} - {{ key }} - {{ summary }}]({{ url }})
  {{/ classified_issues.others}}

{{/ classified_issues.others.first}}}
end