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

Remove drafts from Ready column #394

Merged
merged 1 commit into from
Oct 19, 2023
Merged

Conversation

jordycosta
Copy link
Member

This will filter out draft pull requests out from the Ready column

Closes #393

This will remove pull requests that are drafts out of the 'Ready' column
Copy link
Member

@davidrans davidrans left a comment

Choose a reason for hiding this comment

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

CR ☕

@@ -123,6 +123,7 @@ export class Pull extends PullData {
isReady(): boolean {
return (
this.hasMetDeployRequirements() &&
!this.isDraft() &&
Copy link
Member

Choose a reason for hiding this comment

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

Maybe this should be in the hasMetDeployRequirements function?

Copy link
Member Author

Choose a reason for hiding this comment

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

We consider a draft as a type of dev-block so I think it would be best grouped with the other conditions that check for blocks

      !this.isDraft() &&
      !this.getDevBlock() &&
      !this.getDeployBlock() &&

Copy link
Member Author

Choose a reason for hiding this comment

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

It may be better to group those into their own hasBlock() function

@andyg0808
Copy link
Contributor

CR 👍 but I wouldn't oppose another PR to clean up the functions some way or other.

@deltuh-vee deltuh-vee self-assigned this Oct 17, 2023
@deltuh-vee deltuh-vee added QAing Under QA team review and removed QAing Under QA team review labels Oct 17, 2023
@kthaler kthaler self-assigned this Oct 18, 2023
@kthaler kthaler added QAing Under QA team review and removed QAing Under QA team review labels Oct 18, 2023
@jordycosta
Copy link
Member Author

@kthaler I resolved the external block if you'd like to test this one out

@deltuh-vee deltuh-vee added the QAing Under QA team review label Oct 19, 2023
@deltuh-vee
Copy link
Contributor

QA 🎬
Draft pulls are no longer showing up in the Ready column in pulldasher.

@deltuh-vee deltuh-vee removed the QAing Under QA team review label Oct 19, 2023
@deltuh-vee deltuh-vee merged commit 51692bc into master Oct 19, 2023
1 check passed
@deltuh-vee deltuh-vee deleted the remove-draft-pulls-from-ready branch October 19, 2023 17:22
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.

Draft pulls can end up in the Ready column
6 participants