Skip to content

[CI] Fix check-commit-message#37

Merged
dayo09 merged 2 commits intoSamsung:mainfrom
dayo09:0410-test
Apr 10, 2025
Merged

[CI] Fix check-commit-message#37
dayo09 merged 2 commits intoSamsung:mainfrom
dayo09:0410-test

Conversation

@dayo09
Copy link
Contributor

@dayo09 dayo09 commented Apr 10, 2025

Let's fix it to run.

TICO-DCO-1.0-Signed-off-by: Dayoung Lee dayoung.lee@samsung.com


✔️ Checked that it does not skip
✔️ Checked that it fails without signoff
✔️ Checked that it passes with signoff

@dayo09 dayo09 marked this pull request as ready for review April 10, 2025 01:50
name: Check commit message
runs-on: ubuntu-22.04
# Skip on draft, check on draft -> ready
if: github.repository_owner == 'Samsung' && github.event.pull_request.draft == false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It keeps skipping without this change.

@dayo09 dayo09 changed the title [CI] Test [CI] Fix check-commit-message Apr 10, 2025
run: |
# Get commit body
git log origin/${GITHUB_BASE_REF}..HEAD --format=%b > commit_msg.txt
git log origin/"$GITHUB_BASE_REF"..HEAD --format=%b > commit_msg.txt
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's for actionlint linter warning.

Copy link
Contributor

@miusic miusic Apr 10, 2025

Choose a reason for hiding this comment

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

(Just out of curiosity)
Does it require to remove braces or to add double quotes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@miusic It asked me to add double quotes. And the bracket looked redundant to me so I removed it :-D


# Check string starting from "TICO-DCO-1.0-Signed-off-by:"
count=$(grep -c "TICO-DCO-1.0-Signed-off-by:" commit_body.txt)
count="$(grep -c "TICO-DCO-1.0-Signed-off-by:" commit_body.txt)"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's for actionlint linter warning.

Let's fix it to run.

TICO-DCO-1.0-Signed-off-by: Dayoung Lee <dayoung.lee@samsung.com>
@dayo09 dayo09 requested a review from a team April 10, 2025 02:07
miusic
miusic previously approved these changes Apr 10, 2025
Copy link
Contributor

@miusic miusic left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jinevening jinevening left a comment

Choose a reason for hiding this comment

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

LGTM

@dayo09 dayo09 merged commit 2105a34 into Samsung:main Apr 10, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants