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

Implement setting review assignment limit #1919

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Mar 11, 2025

This PR takes the logic from #1854 and updates it to the updated DB schema. It also handles upsert of users into the DB, as we don't know in advance if they will be present there or not.

I renamed the command from work set to work set-pr-limit, but I don't care much about the naming here. I also added an option to reset the limit to unlimited (NULL) using work set-pr-limit none.

I don't think that we need a set of testing users here, as the limit is not taken into account when doing reviews yet. But it would be nice to have some data in the DB before we implement that (I plan to refactor PR assignment as a next step).

Best reviewed commit by commit.

@Kobzol Kobzol requested a review from apiraino March 11, 2025 16:58
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