mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 06:22:53 +00:00
feat: add timestamp to reports
This commit is contained in:
@@ -28,6 +28,7 @@ import {BOLD_LABELS, GROUPS, LABEL_WEIGHTS} from '../configuration';
|
|||||||
export interface StructureForTemplate {
|
export interface StructureForTemplate {
|
||||||
issuesByAssignee: AssigneeWithIssues[];
|
issuesByAssignee: AssigneeWithIssues[];
|
||||||
meetingDay: string;
|
meetingDay: string;
|
||||||
|
timestamp: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -343,6 +344,7 @@ export async function generateReport(api: Api, label: string, template: string):
|
|||||||
const structureForTemplate: StructureForTemplate = {
|
const structureForTemplate: StructureForTemplate = {
|
||||||
issuesByAssignee: issuesGroupedByAssignee,
|
issuesByAssignee: issuesGroupedByAssignee,
|
||||||
meetingDay: getNextMeetingDay(),
|
meetingDay: getNextMeetingDay(),
|
||||||
|
timestamp: moment().format('LLL'),
|
||||||
};
|
};
|
||||||
|
|
||||||
return render(
|
return render(
|
||||||
|
|||||||
@@ -12,3 +12,5 @@
|
|||||||
{{#issues}}| __[{{#$closed}}~~{{title}}~~{{/$closed}}{{^$closed}}{{title}}{{/$closed}}]({{&web_url}})__<br />__Labels:__{{#$labels}}{{#bold}} __{{label}}__ {{/bold}}{{^bold}} {{label}} {{/bold}}{{/$labels}} | {{#$branchExists}}<img src="https://cdn0.iconfinder.com/data/icons/octicons/1024/git-branch-512.png" height="30" alt="branch exists"/>{{/$branchExists}}{{#$mergeRequestUrl}}[<img src="https://cdn0.iconfinder.com/data/icons/octicons/1024/git-merge-512.png" height="30" alt="merge request exists"/>]({{&$mergeRequestUrl}}){{/$mergeRequestUrl}} | [{{$project}}](https://gitlab.com/{{&$project}}) | {{$weeksOpen}} |
|
{{#issues}}| __[{{#$closed}}~~{{title}}~~{{/$closed}}{{^$closed}}{{title}}{{/$closed}}]({{&web_url}})__<br />__Labels:__{{#$labels}}{{#bold}} __{{label}}__ {{/bold}}{{^bold}} {{label}} {{/bold}}{{/$labels}} | {{#$branchExists}}<img src="https://cdn0.iconfinder.com/data/icons/octicons/1024/git-branch-512.png" height="30" alt="branch exists"/>{{/$branchExists}}{{#$mergeRequestUrl}}[<img src="https://cdn0.iconfinder.com/data/icons/octicons/1024/git-merge-512.png" height="30" alt="merge request exists"/>]({{&$mergeRequestUrl}}){{/$mergeRequestUrl}} | [{{$project}}](https://gitlab.com/{{&$project}}) | {{$weeksOpen}} |
|
||||||
{{/issues}}
|
{{/issues}}
|
||||||
{{/issuesByAssignee}}
|
{{/issuesByAssignee}}
|
||||||
|
|
||||||
|
Generated {{timestamp}}.
|
||||||
|
|||||||
Reference in New Issue
Block a user