Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort by open bot PRs #41

Merged
merged 6 commits into from
Sep 17, 2024
Merged

Sort by open bot PRs #41

merged 6 commits into from
Sep 17, 2024

Conversation

richpjames
Copy link
Contributor

@richpjames richpjames commented Sep 16, 2024

This checks how many of the open PRs for a repo are made by either dependabot or renovate and adds a sortable column for these PRs
image

@richpjames richpjames force-pushed the sort-by-open-bot-prs branch 2 times, most recently from 38df894 to 562d103 Compare September 16, 2024 13:07
@richpjames richpjames changed the title Sort by open bot prs Sort by open bot PRs Sep 17, 2024
@richpjames richpjames marked this pull request as ready for review September 17, 2024 08:09
rich added 6 commits September 17, 2024 11:02
Previously we mapped the repo from its API format to the format we want
in our JSON just before pushing into into our array. This meant we add
to re-add properties that we just added to the repo again (eg
Dependencies).
Now we convert it from the API shape to our JSON shape then add the
custom properties. This means we can make changes in getOpenPRsForRepo
to add properties without having to update `mapRepoFromApiForStorage`
too.
We will soon want to consume multiple values from this function so lets
convert its return type to be an object in order to make it possible
User need to know how many of the open PRs are automated depdency
updates.
This column shows how many open PRs exist for a repo where the user
login is either `renovate[bot]` or `dependabot[bot]`. This may need to
be finetuned later.
By adding this we ensure screen readers can comprehend the table
correctly
@richpjames richpjames merged commit 248ddfc into main Sep 17, 2024
3 checks passed
@richpjames richpjames deleted the sort-by-open-bot-prs branch September 17, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants