Skip to content

Conversation

@algojack
Copy link
Contributor

@algojack algojack commented Feb 17, 2022

We want to make PR Type labels required on PRs. This is a github action that will check for us if a correct label has been added"

Tested on this PR. Feel free to test it here too by adding a label or removing it.

@algojack algojack self-assigned this Feb 17, 2022
@algobarb
Copy link
Contributor

I'm good with this if we add the label and category to this PR per specs.

@yaovi-a
Copy link
Contributor

yaovi-a commented Feb 17, 2022

Same comment as Barbara. But would we just check that there's some text with a colon before the PR change?

@algojack algojack changed the title Adding PR Type label checker CICD: Adding PR Type label checker Feb 17, 2022
Copy link
Contributor

@egieseke egieseke left a comment

Choose a reason for hiding this comment

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

Should it check for only one type label?
Can we add a regex to check the PR title?

@yaovi-a
Copy link
Contributor

yaovi-a commented Feb 17, 2022

Should it check for only one type label? Can we add a regex to check the PR title?

Yea, only one type of label. We should also make sure that there is one label attached and only one. If there's more than one that return "Failed: Found more than one label. Please include only one label."

@algojack
Copy link
Contributor Author

added check to check that there's only one.

@algojack algojack changed the title CICD: Adding PR Type label checker Adding PR Type label checker Feb 17, 2022
@algojack algojack changed the title Adding PR Type label checker CICD: Adding PR Type label checker Feb 17, 2022
@algojack algojack changed the title CICD: Adding PR Type label checker Adding PR Type label checker Feb 17, 2022
@algojack algojack changed the title Adding PR Type label checker CICD: Adding PR Type label checker Feb 17, 2022
Copy link
Contributor

@algobarb algobarb left a comment

Choose a reason for hiding this comment

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

LGTM

@tsachiherman tsachiherman merged commit b4666bd into master Feb 22, 2022
@tsachiherman tsachiherman deleted the label-checker branch February 22, 2022 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants