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

fix: change to draft only on changes requested #65

Open
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

gentlementlegen
Copy link
Member

@gentlementlegen gentlementlegen commented Dec 13, 2024

Relates to #59 (comment)
Resolves #64

We turn the PR to draft only if changes were requested.

@gentlementlegen gentlementlegen marked this pull request as ready for review December 13, 2024 06:38
message.push(
`- Assignees will be disqualified after \`${formatMillisecondsToDaysAndHours(context.config.disqualification / priorityValue)}\` of inactivity.`
`- Assignees will be disqualified after \`${formatMillisecondsToHumanReadable(context.config.disqualification / priorityValue)}\` of inactivity.`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens on priority 0?

Copy link
Member Author

@gentlementlegen gentlementlegen Dec 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be considered as 1 for deadlines, is that ok?
Example with 0 prio: Meniole#7 (comment)

Copy link
Member

@0x4007 0x4007 Dec 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That or infinity. Let's try 1 for now then. I'm just considering the ability to set float levels like priority 0.5 and the system acting predictably. So 0 should predictably be infinity but it's also sort of rarely used so we'll see.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even when the priority is 0 we still want the disqualifier to run right? If so I don't think infinity makes sense, it should use the same timers as a priority 1.

@@ -34,6 +34,7 @@ const query = /* GraphQL */ `
id: databaseId
}
}
reviewDecision
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is based on the last review?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the docs it contains the last global state of the review: https://docs.github.com/en/graphql/reference/enums#pullrequestreviewdecision

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.

Only draft the pull-request if a review was requested
3 participants