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

use pre-commit clang-format for format_header #1475

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

yhmtsai
Copy link
Member

@yhmtsai yhmtsai commented Nov 28, 2023

Use the pre-commit clang-format for format_header for consistent clang-format version and avoid no clang-format issue.
Also, fix the types_or

@yhmtsai yhmtsai added the 1:ST:ready-for-review This PR is ready for review label Nov 28, 2023
@yhmtsai yhmtsai requested review from MarcelKoch and a team November 28, 2023 09:20
@yhmtsai yhmtsai self-assigned this Nov 28, 2023
@ginkgo-bot ginkgo-bot added the reg:helper-scripts This issue/PR is related to the helper scripts mainly concerned with development of Ginkgo. label Nov 28, 2023
Copy link
Member

@MarcelKoch MarcelKoch left a comment

Choose a reason for hiding this comment

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

I guess this helps until we merge #1466

@yhmtsai yhmtsai added 1:ST:ready-to-merge This PR is ready to merge. 1:ST:no-changelog-entry Skip the wiki check for changelog update and removed 1:ST:ready-for-review This PR is ready for review labels Nov 28, 2023
@yhmtsai yhmtsai force-pushed the fix_clangformat_formatheader branch 10 times, most recently from d3b1419 to be2b564 Compare November 28, 2023 13:52
@@ -22,6 +22,7 @@ jobs:
name: check-format
if: github.event.issue.pull_request != '' && github.event.comment.body == 'check-format!' && (github.event.comment.author_association == 'COLLABORATOR' || github.event.comment.author_association == 'MEMBER' || github.event.comment.author_association == 'OWNER')
uses: ./.github/workflows/check-formatting.yml
secrets: inherit
Copy link
Member

Choose a reason for hiding this comment

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

I thought this would need to be in check-formatting.yml. And where is the token set to the bot token?

Copy link
Member

Choose a reason for hiding this comment

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

It never gets to check-formatting.yml, because we don't inherit the secrets to it

Copy link
Member

Choose a reason for hiding this comment

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

Oh, ok, secrets: inherit allows check-formatting.yml to access the secrets.

Copy link
Member Author

Choose a reason for hiding this comment

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

@yhmtsai yhmtsai merged commit cce0c5d into develop Nov 28, 2023
9 of 15 checks passed
@yhmtsai yhmtsai deleted the fix_clangformat_formatheader branch November 28, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1:ST:no-changelog-entry Skip the wiki check for changelog update 1:ST:ready-to-merge This PR is ready to merge. reg:helper-scripts This issue/PR is related to the helper scripts mainly concerned with development of Ginkgo.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants