Skip to content

put automated PRs in slow queue#753

Merged
smonero merged 3 commits intomainfrom
slowQForAutomatedPrs
May 7, 2024
Merged

put automated PRs in slow queue#753
smonero merged 3 commits intomainfrom
slowQForAutomatedPrs

Conversation

@smonero
Copy link
Contributor

@smonero smonero commented May 6, 2024

It was said that we can use the slow task queue for automated PRs aka refactorator PRs.

@smonero
Copy link
Contributor Author

smonero commented May 6, 2024

The more I think about this, the more I wonder if instead of this approach we should have a third queue that is like in between normal and slow. Maybe semi-slow? I just wonder if we actually have to slow down as much as we are. Maybe a future action item.

@smonero smonero changed the title put automatetd PRs in slow queue put automated PRs in slow queue May 7, 2024
miguelmolina95
miguelmolina95 previously approved these changes May 7, 2024
}

func IsPRAutomated(pr *github.PullRequest) bool {
if pr.Labels == nil {

Choose a reason for hiding this comment

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

https://pkg.go.dev/github.com/google/go-github/v45/github#PullRequest

Labels              []*[Label](https://pkg.go.dev/github.com/google/go-github/v45/github#Label)              `json:"labels,omitempty"`

it's better to check zero length for a slice instead of nil, because there can be empty allocated slice.

@smonero smonero merged commit 3910895 into main May 7, 2024
@smonero smonero deleted the slowQForAutomatedPrs branch May 7, 2024 15:48
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.

3 participants