I mostly play with ascii art
This commit is contained in:
parent
dc2b53318b
commit
866b0b6348
2 changed files with 50 additions and 29 deletions
|
@ -33,10 +33,10 @@ def getbylabel(label):
|
||||||
return json
|
return json
|
||||||
|
|
||||||
# new status labels:
|
# new status labels:
|
||||||
# labels = ['proposal-wip', 'proposal-ready-for-review',
|
labels = ['proposal-wip', 'proposal-ready-for-review',
|
||||||
# 'proposal-in-review', 'proposal-passed-review',
|
'proposal-in-review', 'proposal-passed-review',
|
||||||
# 'spec-pr-ready-for-review', 'spec-pr-in-review', 'merged', 'stalled', 'rejected' ]
|
'spec-pr-ready-for-review', 'spec-pr-in-review', 'merged', 'abandoned', 'rejected', 'blocked' ]
|
||||||
labels = ['p1', 'p2', 'p3', 'p4', 'p5']
|
#labels = ['p1', 'p2', 'p3', 'p4', 'p5']
|
||||||
issues = {}
|
issues = {}
|
||||||
|
|
||||||
for label in labels:
|
for label in labels:
|
||||||
|
@ -49,6 +49,9 @@ text_file.write("Tables\n------------------\n\n")
|
||||||
|
|
||||||
|
|
||||||
for label in labels:
|
for label in labels:
|
||||||
|
if (len(issues[label]) == 0):
|
||||||
|
continue
|
||||||
|
|
||||||
text_file.write(label + "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n")
|
text_file.write(label + "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n")
|
||||||
text_file.write(".. list-table::\n :header-rows: 1\n :widths: auto\n :stub-columns: 1\n\n")
|
text_file.write(".. list-table::\n :header-rows: 1\n :widths: auto\n :stub-columns: 1\n\n")
|
||||||
text_file.write(" * - MSC\n")
|
text_file.write(" * - MSC\n")
|
||||||
|
@ -68,10 +71,10 @@ for label in labels:
|
||||||
text_file.write(" - " + created.strftime('%Y-%m-%d') + "\n")
|
text_file.write(" - " + created.strftime('%Y-%m-%d') + "\n")
|
||||||
updated = datetime.strptime(item['updated_at'], "%Y-%m-%dT%XZ")
|
updated = datetime.strptime(item['updated_at'], "%Y-%m-%dT%XZ")
|
||||||
text_file.write(" - " + updated.strftime('%Y-%m-%d') + "\n")
|
text_file.write(" - " + updated.strftime('%Y-%m-%d') + "\n")
|
||||||
maindoc = re.search('Documentation: (.+?)\n', str(item['body']))
|
maindoc = re.search('^Documentation: (.+?)\n', str(item['body']))
|
||||||
if maindoc is not None: maindoc = maindoc.group(1)
|
if maindoc is not None: maindoc = maindoc.group(1)
|
||||||
text_file.write(" - " + str(maindoc) + "\n")
|
text_file.write(" - " + str(maindoc) + "\n")
|
||||||
author = re.search('Author: (.+?)\n', str(item['body']))
|
author = re.search('^Author: (.+?)\n', str(item['body']), flags=re.MULTILINE)
|
||||||
if author is not None: author = author.group(1)
|
if author is not None: author = author.group(1)
|
||||||
#if author is None: author = item['user']['login']
|
#if author is None: author = item['user']['login']
|
||||||
text_file.write(" - " + str(author) + "\n")
|
text_file.write(" - " + str(author) + "\n")
|
||||||
|
|
|
@ -21,26 +21,44 @@ We use labels and some metadata in the issue text to generate this page. When ad
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
+----------+ +-------------------+ +-----------+ +---------------+
|
+ +
|
||||||
| | | | | | | |
|
Proposals | Spec PRs | Other States
|
||||||
| Proposal +-----> Proposal +-----> Proposal +-----> Proposal +------+
|
+-------+ | +------+ | +----------+
|
||||||
| WIP | | Ready for Review | | In Review | | Passed Review | |
|
|
||||||
| | | | | | | | |
|
|
||||||
+----------+ +-------------------+ +-----------+ +---------------+ |
|
|
||||||
|
|
|
||||||
+---------------------------------------------------------------------------------------+
|
|
||||||
|
|
|
||||||
| +---------------------+ +-----------+ +-----------+
|
|
||||||
| | | | | |-----------|
|
|
||||||
+--> Spec +-----> Spec PR | || ||
|
|
||||||
| PR Ready for Review | | In Review +-----------------------> Merged ||
|
|
||||||
| | | | || ||
|
|
||||||
+---------------------+ +-+-------+-+ |-----------|
|
|
||||||
| | +-----------+
|
|
||||||
+-------+ +--------+
|
|
||||||
| |
|
| |
|
||||||
+-----v----+ +-----v----+
|
| |
|
||||||
|
+----------+ | +------------------+ | +---------+
|
||||||
|
| | | | | | | |
|
||||||
|
| Proposal | | +-> Spec PR | | | Blocked |
|
||||||
|
| WIP | | | | Ready for Review | | | |
|
||||||
|
| | | | | | | +---------+
|
||||||
|
+----+-----+ | | +---------+--------+ |
|
||||||
|
| | | | |
|
||||||
|
| | | | | +-----------+
|
||||||
|
+--------v----------+ | | +-----v-----+ | | |
|
||||||
|
| | | | | | | | Abandoned |
|
||||||
|
| Proposal | | | | Spec PR | | | |
|
||||||
|
| Ready for Review | | | | In Review | | +-----------+
|
||||||
|
| | | | | | |
|
||||||
|
+----------+--------+ | | +-----+-----+ | +-----------+
|
||||||
|
| | | | | | |
|
||||||
|
| | | | | | Obsolete |
|
||||||
|
+------v----+ | | | | | |
|
||||||
|
| | | | +-----------+ | +-----------+
|
||||||
|
| Proposal | | | |-----v-----| |
|
||||||
|
| In Review | | | || || |
|
||||||
|
| | | | || Merged || | +----------+
|
||||||
|
+----+------+ | | || || | | |
|
||||||
|
| | | |-----------| | | Rejected |
|
||||||
|
| | | +-----------+ | | |
|
||||||
|
+------v--------+ | | | +----------+
|
||||||
|
| | | | |
|
||||||
|
| Proposal | | | |
|
||||||
|
| Passed Review | | | |
|
||||||
|
| | | | |
|
||||||
|
+-------+-------+ | | |
|
||||||
| | | |
|
| | | |
|
||||||
| Stalled | | Rejected |
|
|
||||||
| | | |
|
| | | |
|
||||||
+----------+ +----------+
|
+---------------+ |
|
||||||
|
| |
|
||||||
|
+ +
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue