From 2b770bb8aefc5c39bb3b3ae2043a02be9fd28947 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 8 Mar 2017 09:35:17 -0500 Subject: [PATCH] Adjustemt for pr title display --- analyze.py | 4 ++-- www/template.html | 26 +++++++++++++++++--------- 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/analyze.py b/analyze.py index 72d38c1..45f6349 100755 --- a/analyze.py +++ b/analyze.py @@ -67,8 +67,8 @@ def main(): "url": issue["pull_request"]["html_url"] } - if len(pr["title"]) > 53: - pr["title"] = pr["title"][0:50] + "..." + #if len(pr["title"]) > 53: + # pr["title"] = pr["title"][0:50] + "..." if isPRDying(pr): pr["labels"].append("dying") diff --git a/www/template.html b/www/template.html index 3300310..7a4784f 100644 --- a/www/template.html +++ b/www/template.html @@ -17,7 +17,13 @@ background: #333333; } .container { - width:1500px; + width:1200px; + } + .pr-title { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + max-width: 350px; } @@ -37,14 +43,16 @@
- First with labels : -

"important" implies top-priority ------ - "opinion-needed" implies medium priority ------ - "work needed" implies low priority ------ - "inactive" / "postponed" implies very low priority.

- Then with creation time : + With labels +
    +
  • "important" = top priority
  • +
  • "opinion-needed" = medium priority
  • +
  • "work needed" = low priority
  • +
  • "inactive/postponed" = very low priority
  • +
+ Then with creation time

older PRs have higher priority than newer PR

- 'Dying' status + 'Dying' status

A PR is considered "dying" if it has been created more than 60 days ago and not updated since 30 days. This is meant to be an incentive to either revive it or flag it as inactive/postponed... 'Dying' PRs @@ -100,7 +108,7 @@ {% endif %} {% endif %}" href="{{ pr.url }}">{{ pr.id }} - {{ pr.title }} + {{ pr.title }} {{ pr.createdDaysAgo }} days ago {% for label in pr.labels %}