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

github: workflows: Enable PR checks #2143

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

theComputeKid
Copy link
Contributor

@theComputeKid theComputeKid commented Oct 2, 2024

  • Enforce that the length of the commit title is at most 72.
  • Enforce comma/colon separated scopes as per contribution guidelines.

I promised @vpirogov that I would do this here.

For code reviewers, in order to test this on your local machine:

python3 .github/automation/pr-title-check.py "test: Should Pass"
python3 .github/automation/pr-title-check.py "Should Not Pass"
python3 .github/automation/pr-title-check.py "Really Loooooooooooooooooooooooooooooooooooooooooooooooooooooooooong commit"
python3 .github/automation/pr-title-check.py "Should, Not: Pass, and Error:  XYZ"
python3 .github/automation/pr-title-check.py "Should, Pass: All, good:  XYZ"

The free ubuntu github runners are sufficient for this purpose and have python natively installed so we are good.

TODO: Limit words before a colon (i.e. scopes) to allowed words.

@theComputeKid theComputeKid requested a review from a team as a code owner October 2, 2024 18:20
@theComputeKid theComputeKid force-pushed the pr-check branch 6 times, most recently from b6e46da to fe226da Compare October 2, 2024 18:30
@github-actions github-actions bot added the devops Github automation label Oct 2, 2024
- Enforce that the length of the commit title is at most 72.
- Enforce that the first word of the PR is followed by a colon.

Signed-off-by: Hamza Butt <[email protected]>
Copy link
Contributor

@Radu2k Radu2k left a comment

Choose a reason for hiding this comment

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

LGTM

@spalicki spalicki merged commit 193ce49 into oneapi-src:main Oct 3, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devops Github automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants