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

OCM-6302 | ci: Prow job update to check PR author in commit check #1881

Merged
merged 1 commit into from Mar 28, 2024

Conversation

hunterkepley
Copy link
Contributor

https://issues.redhat.com/browse/OCM-6302

Updates the hack script, ran by prow, which checks PR commit msgs to also check PR author

Copy link

codecov bot commented Mar 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 21.81%. Comparing base (4a3534f) to head (374c1d5).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1881      +/-   ##
==========================================
- Coverage   21.82%   21.81%   -0.01%     
==========================================
  Files         117      117              
  Lines       18921    18929       +8     
==========================================
  Hits         4129     4129              
- Misses      14481    14489       +8     
  Partials      311      311              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

if ! echo "$message" | grep -qE "^[A-Z]+-[0-9]+ \| (feat|fix|docs|style|refactor|test|chore|build|ci|perf): .*$"; then
echo "Invalid commit message format. Expected format: JIRA_TICKET | TYPE: MESSAGE"
echo "Where:"
echo " JIRA_TICKET is jira ticket ID (for example OCM-xxx)"
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a question from my end on contributing.
If people outside the RH org wants to contribute to this open source project, does that imply that we supply the contributors with the JIRA number via "github issues" prior to allowing them to commit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As discussed in our call, im not too sure, but this logic was already in place, so the same system applies 😃

Copy link
Contributor

Choose a reason for hiding this comment

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

@davidleerh It's a good discussion point.

Our release notes for rosa as a product are generated from Jira issues, so I think a practice could be that if/when we had a community contribution, we could create a Jira on their behalf?

Wanna bring it up at office hours?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's discuss then, I think creating a ticket on their behalf is a great idea especially since the release notes are generated via jira issues

Copy link
Contributor

@robpblake robpblake left a comment

Choose a reason for hiding this comment

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

@hunterkepley Can you remove CodeCov bot as a PR author. It shouldn't have commit permissions on our repo.

Copy link
Contributor

openshift-ci bot commented Mar 28, 2024

@hunterkepley: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Copy link
Contributor

@robpblake robpblake left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 28, 2024
Copy link
Contributor

openshift-ci bot commented Mar 28, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hunterkepley, robpblake

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 28, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 0c0f1c3 into openshift:master Mar 28, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants