-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Quick notes while I'm brainstorming.
- Use GitHub api to pull all PRs on JuliaLang/julia that are LESS than M days old for some value of M. E.g. M=30. If we are smart about our query parameters, we can make it so the number of GitHub api calls we need is low, and the number of results is also low.
- Exclude PRs where the PR author is a committer.
- For each PR:
a. Check how old the PR is. If PR is less than N days old, we are done. Set e.g. N = 3 or 4 days. Or even N = 7 days. N must be less than our search/lookback period M.
b. Check if PR has assignee. If PR does have assignee, and if assignee is committer, then we are done.
c. Grab username of all people commenting on PR. If any of those people are a committer, we are done
d. Grab username of all people that have left review on PR. If any of those people are a committer, we are done.
e. If none of the above have been satisfied, then pick a random person from https://github.com/JuliaLang/pr-assignment and assign them. At this point, I think the bot should also post a comment that username-pings the assignee, so that they become more aware that they've been assigned.
Run this as a cron job, e.g. every 24 hours.
Metadata
Metadata
Assignees
Labels
No labels