-
-
Notifications
You must be signed in to change notification settings - Fork 769
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
feature: new github action which limit the file changes in single PR to 20 #1316
feature: new github action which limit the file changes in single PR to 20 #1316
Conversation
…ange to 20 in a pull request
Our Pull Request Approval ProcessWe have these basic policies to make the approval process smoother for our volunteer team. Testing Your CodePlease make sure your code passes all tests. Our test code coverage system will fail if these conditions occur:
The process helps maintain the overall reliability of the code base and is a prerequisite for getting your PR approved. Assigned reviewers regularly review the PR queue and tend to focus on PRs that are passing. ReviewersWhen your PR has been assigned reviewers contact them to get your code reviewed and approved via:
Reviewing Your CodeYour reviewer(s) will have the following roles:
CONTRIBUTING.mdRead our CONTRIBUTING.md file. Most importantly:
Other
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the python script:
- Follow the Google Python style guide especially in the DocString area. https://google.github.io/styleguide/pyguide.html
- Make sure that the script is python
black
,pydocstring
,pylint
,flake8
andpycodestyle
compliant - Use the
countline.py
script in theworkflow
directory as a guide
Thanks for noticing , I made the python script |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1316 +/- ##
===========================================
+ Coverage 96.30% 97.22% +0.92%
===========================================
Files 137 137
Lines 3387 3429 +42
Branches 949 964 +15
===========================================
+ Hits 3262 3334 +72
+ Misses 119 90 -29
+ Partials 6 5 -1 ☔ View full report in Codecov by Sentry. |
Please work with @noman2002 on this. He'll be taking over the review of this PR |
Oh ok thanks for your time , but i dont think i can change the reviewers on my own right or can I ? @palisadoes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. But let someone else also review it.
Yeah sure , no hurry 🤞🏻 I'll be glad to hear some suggestions |
|
my bad there was a small typo in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- See comments
- Remove references to python black. It is causing the workflow to fail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
thanks for giving me info about
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
thanks for pointing out my mistakes and suggesting changes I made following changes in my most recent commit :
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
I made the changes sir , thanks for your constant feedback |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments. This should will be ready to merge very soon.
that sounds so good 🤩 , thank you for your constant guidance through out the issue
|
I just saw a PR #1317 where number of file changes my 23 these type of PR wont pass from git checks if merge the git hub action from this PR . should we increase the default value of number of file changes allowed to 30 currently its 20 ? |
This is meant to be a guide for reviewers |
We can adjust the number afterwards |
What kind of change does this PR introduce?
Feature
Issue Number:
Fixes #1276
Did you add tests for your changes?
Snapshots/Videos:
If relevant, did you update the documentation?
Summary
new contributors were creating PRs from branch whose source was not our
develop
branch which was causing PRs with hundreds of submitted files.To solve this issue I added a new github action which count the number of file-changes made in a single PR and if the number of changed file exceeds 20 it give user error message "Contributor may be merging into an incorrect branch"
Does this PR introduce a breaking change?
Changes Made:
check-changed-files.py
and modified thepull-request.yml
file to add the required actionCheck-Changed-File
job is dependent onCode-Quality-Check
job so it will only run ifCode-Quality-Check
is successfull.black
andpydocstyle
linting and formatting rules are applied on every PRHave you read the contributing guide?
YESSSSS