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

Add logic to avoid duplicated comments about limit of lines exceeded in the same PR #208

Merged
merged 6 commits into from
Oct 26, 2021

Conversation

ariskataoka
Copy link
Member

@ariskataoka ariskataoka commented Sep 10, 2021

Currently, whenever the vip-go-ci scans the repository and finds file(s) that contain more than the limit of lines, it posts a comment on the PR, saying that they have been skipped due to the maximum lines permitted reached.
If the file is not fixed, it will repeat the message for each build scan.
This PR adds the logic to avoid that message duplication.

TODO:

  • Implement [ logic]
  • Add/update unit-tests
  • Changelog entry [Changelog for version 1.0.9 #206]
  • Run full-unit tests
  • Check automated unit-tests
  • Manual testing
    • Pull request with PHP linting issues
    • Pull request with PHPCS issues
    • Pull request with large file to be skipped

Current behavior: duplicated comments

Screen Shot 2021-10-26 at 4 11 15 pm

This PR behavior:

Screen Shot 2021-10-26 at 4 07 03 pm

Copy link
Collaborator

@wpcomvip-vipgoci-bot wpcomvip-vipgoci-bot left a comment

Choose a reason for hiding this comment

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

phpcs scanning turned up:

🚫 1 error


This bot provides automated PHP linting and PHPCS scanning. For more information about the bot and available customizations, see our documentation.

tests/VipgociSkipFileTest.php Outdated Show resolved Hide resolved
skip-file.php Outdated Show resolved Hide resolved
skip-file.php Outdated Show resolved Hide resolved
@ariskataoka ariskataoka force-pushed the add-logic-pr-comment-line-limit-1-0-9 branch from aee12e5 to c3fceb0 Compare October 22, 2021 05:11
@wpcomvip-vipgoci-bot wpcomvip-vipgoci-bot dismissed their stale review October 22, 2021 05:15

Dismissing review as all inline comments are obsolete by now

@ariskataoka ariskataoka force-pushed the add-logic-pr-comment-line-limit-1-0-9 branch 2 times, most recently from 8e899b6 to fb87ce9 Compare October 22, 2021 05:45
@ariskataoka ariskataoka force-pushed the add-logic-pr-comment-line-limit-1-0-9 branch from fb87ce9 to 6ec66c0 Compare October 22, 2021 05:49
@ariskataoka ariskataoka force-pushed the add-logic-pr-comment-line-limit-1-0-9 branch from a2988ac to d61bfad Compare October 25, 2021 01:04
@ariskataoka ariskataoka force-pushed the add-logic-pr-comment-line-limit-1-0-9 branch from 18e2a10 to 8ec2804 Compare October 26, 2021 04:49
@ariskataoka ariskataoka marked this pull request as ready for review October 26, 2021 06:37
ariskataoka added a commit that referenced this pull request Oct 26, 2021
@ariskataoka ariskataoka merged commit 6cf5a75 into main Oct 26, 2021
@ariskataoka ariskataoka deleted the add-logic-pr-comment-line-limit-1-0-9 branch October 26, 2021 09:29
@ariskataoka ariskataoka added this to the 1.0.9 milestone Oct 27, 2021
ariskataoka added a commit that referenced this pull request Nov 10, 2021
* Changelog for version 1.0.9

* Adding version 1.0.9

* Add #204 to the 1.0.9 changelog

* Add #209 to the 1.0.9 changelog

* Add #217 to the 1.0.9 changelog

* Remove #205 changelog

It's been postponed and won't be part of the 1.0.9 version.

* Add #208 to the 1.0.9 changelog

* Add #214 to the 1.0.9 changelog

* Add release date to the change log

Co-authored-by: Ariana Kataoka <aris.kataoka@gmail.com>
Co-authored-by: Ariana Kataoka <ariana.kataoka@automattic.com>
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.

4 participants