Describe the bug
PR eligibility should be sorted by maturity not submission date. Due to retrospective tagging in non-topic repos, submission is not always equal to maturity.
To Reproduce
Steps to reproduce the behavior:
Repo A - Tagged with hacktoberfest topic
Repo B - Untagged
- Submit PR i to repo A which gets merged
- Submit PR ii to repo B which gets merged
- PR ii gets tagged as hacktoberfest-accepted
- Submit PR iii to repo B which gets merged
- Submit PR iv to repo A which gets merged
- Submit PR v to repo A which gets merged
- Time passes
- PR iii gets tagged as hacktoberfest-accepted
- Time passes
- PRs i, ii, iv mature
Expected behavior
Currently PRs listed as the four eligible ones are i, ii, iii and iv; however PR v should be listed before iii as it will mature first as it was either merge in an hacktoberfest topic repo, or tagged hacktoberfest-accepted first.
Should show as complete when the first four PRs have matured. Should show total matured count as progress rather than total by submit date.
Additional context
I attempted a fix in #689, but it seems my Ruby-foo is pretty rubbish!
I'll find out in a few hours if this matters in terms of actual eligibility or just the maturity countdown display.
Describe the bug
PR eligibility should be sorted by maturity not submission date. Due to retrospective tagging in non-topic repos, submission is not always equal to maturity.
To Reproduce
Steps to reproduce the behavior:
Repo A - Tagged with hacktoberfest topic
Repo B - Untagged
Expected behavior
Currently PRs listed as the four eligible ones are i, ii, iii and iv; however PR v should be listed before iii as it will mature first as it was either merge in an hacktoberfest topic repo, or tagged hacktoberfest-accepted first.
Should show as complete when the first four PRs have matured. Should show total matured count as progress rather than total by submit date.
Additional context
I attempted a fix in #689, but it seems my Ruby-foo is pretty rubbish!
I'll find out in a few hours if this matters in terms of actual eligibility or just the maturity countdown display.