Skip to content
This repository was archived by the owner on Mar 29, 2022. It is now read-only.
This repository was archived by the owner on Mar 29, 2022. It is now read-only.

PR eligibility should be sorted by maturity not submission date #700

Description

@peternewman

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

  1. Submit PR i to repo A which gets merged
  2. Submit PR ii to repo B which gets merged
  3. PR ii gets tagged as hacktoberfest-accepted
  4. Submit PR iii to repo B which gets merged
  5. Submit PR iv to repo A which gets merged
  6. Submit PR v to repo A which gets merged
  7. Time passes
  8. PR iii gets tagged as hacktoberfest-accepted
  9. Time passes
  10. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-reportUnverified user submitted bug that needs verification

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions