diff --git a/analyze.py b/analyze.py index e8efb72..a63d675 100755 --- a/analyze.py +++ b/analyze.py @@ -43,8 +43,6 @@ def priority(pr): base_priority = 100 elif "opinion needed" in pr["labels"]: base_priority = 50 - elif "work needed" in pr["labels"]: - base_priority = -50 elif "postponed" in pr["labels"]: base_priority = -100 elif "inactive" in pr["labels"]: @@ -52,6 +50,9 @@ def priority(pr): else: base_priority = 0 + if "work needed" in pr["labels"]: + base_priority += -5 + if "dying" in pr["labels"] and base_priority > -100: base_priority += 5 diff --git a/www/template.html b/www/template.html index 58c946a..c437065 100644 --- a/www/template.html +++ b/www/template.html @@ -79,10 +79,10 @@
  • "opinion-needed" = medium priority
  • -
  • "work needed" = low priority
  • "inactive/postponed" = very low priority
  • +

    PR with 'work needed' have a small malus in priority

    +

    PR with 'dying' status have a small bonus in priority

    Then with creation time

    older PRs have higher priority than newer PR

    '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 - have a small boost in priority to be listed first -
    -

    Repos considered for now (completely arbitrary) : [yunohost, yunohost-admin, SSOwat, moulinette, doc, ynh-dev, - apps, CI_package_check, example_ynh, package_linter, Simone, - project-organization, build.yunohost.org, dynette, YunoPorts, - rebuildd, cd_build, install_script]

    + either revive it or flag it as inactive/postponed...