Skip to content

Commit

Permalink
add errata data
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjing1 committed Jan 21, 2019
1 parent a6788a0 commit 611cfcb
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Makefile.errata
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
install:
test -d ./node_modules/md2gslides/bin/ || npm install md2gslides
test -d venv || virtualenv venv
venv/bin/pip install -Ur requirements.txt

buildstatus: install
venv/bin/python finishline \
--config errata.conf > foo.md

uploadstatus: buildstatus
./node_modules/md2gslides/bin/md2gslides.js foo.md \
-t "ET-QE-OKRs, FY19Q4" \
-e -a 1T1jKJAk6_3puf1vpV2L7YEqLv5wamh22bPt-zldGUi4

buildemail: install
venv/bin/python finishline \
--config ${YOUR_CONFIG_FILE} > report-$(shell date '+%F').md
13 changes: 13 additions & 0 deletions templates/errata/query.errata.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
project = {{ project }}
AND (
resolution is EMPTY OR (
resolution is not EMPTY
AND resolutiondate >= {{ since }}
)
)
AND (
"Epic Link" in (ERRATA-7106,ERRATA-7078,ERRATA-7083,ERRATA-7077,ERRATA-7123,ERRATA-6689,ERRATA-6622
)
)
AND status != Dropped

38 changes: 38 additions & 0 deletions templates/errata/slides.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# {{title}}
{% if subtitle %}
## {{subtitle}}
{% endif %}
---
# OKR Summary
{% for objective in objectives | sort %}
* {{objective}}{% for key, epic in epics.items() if epic and key in objectives[objective] %}
* [{{ epic.raw['fields']['summary'].split('\n')[0] }}]({{ server }}/browse/{{ key }}) **{{epic.percent_complete}}%**{% endfor %}
{% endfor %}
---
{% for objective in objectives | sort %}# {{ objective }} {.big}
---
{% for key, epic in epics.items() if epic and key in objectives[objective] %}
# [{{ epic.raw['fields']['summary'].split('\n')[0].split('KR:')[-1].strip() }}]({{ server }}/browse/{{ key }})

* **Progress**: {{epic.percent_complete}}%{% if epic.target_date %}
* **Target**: {{ epic.target_date}}{% endif %}{% if epic.mvp_status %}
* **Status**: **{{ epic.mvp_status['value']}}**{% endif %}{% if epic.status_update %}
* **Update**: (*{{epic.status_update.updated.split('T')[0]}}*) {{epic.status_update.cleaned}}{% if attribution %} — *{{epic.status_update.author}}*{% endif %}{% endif %}

{.column}
{% for category in by_epic[key] | sort %}
**{{ category }}**:
{% for issue in by_epic[key][category] %}
* ([{{ issue.key }}]({{ server }}/browse/{{ issue.key }}))
{{ issue['summary'].replace('[', '').replace(']', ':') }}{% endfor %}
{% endfor %}
{% if epic.image_url %}![]({{epic.image_url}}){.background}{% endif %}
---{% endfor %}
{% endfor %}
# Thank you {.big}

Auto-generated from JIRA data with [finishline](https://github.com/ralphbean/finishline).
{% if references %}
---
{{references}}
{% endif %}

0 comments on commit 611cfcb

Please sign in to comment.