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

Ak/clean up hub_validation print output. Deprecate file_modification_check argument "warn" #117

Merged
merged 3 commits into from
Sep 11, 2024

Conversation

annakrystalli
Copy link
Member

This PR cleans up a few rough edges from the previous two PRs

  • Changed file name header colour in hub_validations object print() method from br_cyan to magenta to make more visible on lighter backgrounds.
  • Soft deprecated file_modification_check argument "warn" option and replaced it with "failure" in validate_pr() function. Also I updated the output documentation so reflect the new error/check_failure class.

@annakrystalli annakrystalli changed the title Ak/clean up print Ak/clean up hub_validation print output. Deprecate file_modification_check argument "warn" Sep 6, 2024
Copy link

github-actions bot commented Sep 6, 2024

Copy link
Member

@zkamvar zkamvar left a comment

Choose a reason for hiding this comment

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

This looks good to me.

My only comment is to remove the coloring from the heading class since the surrounding dashes and underline distinguish it from the other content.

@annakrystalli
Copy link
Member Author

Thanks for the review @zkamvar ! I tried it with the colour removed but I feel it still adds some useful contrast so I've left it for now.

@annakrystalli annakrystalli merged commit 7411a71 into main Sep 11, 2024
8 checks passed
@zkamvar zkamvar deleted the ak/clean-up-print branch September 11, 2024 15:32
@zkamvar
Copy link
Member

zkamvar commented Sep 11, 2024

I tried it with the colour removed but I feel it still adds some useful contrast so I've left it for now.

It's minor, but it will be a good idea to revisit this decision because it may be an accessibility issue in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants