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

ci: Make badges consistent, run markdownlint all .md files #631

Merged
merged 3 commits into from
Aug 24, 2023

Conversation

spetrosi
Copy link
Collaborator

  • Consistently generate badges for GH workflows in roles' RHELPLAN-146921
  • Run markdownlint on all .md files

Signed-off-by: Sergei Petrosian [email protected]

@codecov
Copy link

codecov bot commented Aug 18, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (751c3ff) 43.28% compared to head (35b77fa) 43.28%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #631   +/-   ##
=======================================
  Coverage   43.28%   43.28%           
=======================================
  Files          13       13           
  Lines        3068     3068           
  Branches      394      394           
=======================================
  Hits         1328     1328           
  Misses       1740     1740           
Flag Coverage Δ
sanity 19.82% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@spetrosi spetrosi force-pushed the update_role_files branch 8 times, most recently from 22f36dc to 7b339eb Compare August 18, 2023 11:55
@spetrosi spetrosi marked this pull request as draft August 18, 2023 11:55
@@ -1,5 +1,5 @@
# yamllint disable rule:line-length
name: Check for non-inclusive language
name: Woke
Copy link
Collaborator

Choose a reason for hiding this comment

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

The previous name is more descriptive as a task name IMHO.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The badge is generated with tha name, so I wanted to make the badge toe have woke in it. Although, woke is not a widely-know tool, so maybe better have something more descriptive like Detect non-inclusive language

Copy link
Contributor

Choose a reason for hiding this comment

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

Is there some way to have a different names for the badge, and the github workflow? I guess that would be confusing if you saw a badge called woke but no corresponding github action though

Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this possible to let the badge have a more descriptive name so that it can be consistent with github workflow ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think it's possible to have a different name for the badge, GitHub generates it and doesn't provide much controll.
I see two options:

  1. Have the badge and the workflow named Woke, which is pretty and after all easy to remember for linux-system-roles devs what woke does. We can have the name of the job to be Detect non-inclusive language for clarity. I think it's a compromis and I implemented it in this PR for now for illustration.
  2. Have the badge and the workflow named Detect non-inclusive language, the badge looks too descriptive in this case though.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Right now, the workflow name in PR CI jobs is Woke / Detect non-inclusive language, and the badge name is Woke. I think that's good enough.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for addressing this, I agree with the current change.

@liangwen12year
Copy link
Collaborator

And the CI task Markdown Lint detects some errors on README.md.

- Consistently generate badges for GH workflows in README RHELPLAN-146921
- Run markdownlint on all .md files
- Add custom-woke-action if not used already
- Rename woke action to Woke for a pretty badge

Signed-off-by: Sergei Petrosian <[email protected]>
@spetrosi spetrosi marked this pull request as ready for review August 23, 2023 15:06
Signed-off-by: Sergei Petrosian <[email protected]>
@spetrosi spetrosi merged commit cd7eafe into main Aug 24, 2023
24 checks passed
@spetrosi spetrosi deleted the update_role_files branch August 24, 2023 06:19
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.

3 participants