Skip to content

Commit

Permalink
ci: adjust issue/pr style checks
Browse files Browse the repository at this point in the history
Signed-off-by: Takeshi Yoneda <t.y.mathetake@gmail.com>
  • Loading branch information
mathetake committed Feb 3, 2025
1 parent 17ecbc3 commit 99dd80a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/issue_title_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
console.log(`Title: ${issueTitle}`);
console.log(`Length: ${length}`);
if (length >= 60) {
if (length > 80) {
await github.rest.issues.createComment({
owner: repoOwner,
repo: repoName,
issue_number: issueNumber,
body: "The issue title is too long (over 60 characters). Please shorten it and ensure it is well summarized."
body: "The issue title is too long (over 80 characters). Please shorten it and ensure it is well summarized."
});
}
4 changes: 2 additions & 2 deletions .github/workflows/pr_style_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
# be truncated in the git log as well as in the GitHub UI.
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=bc7938deaca7f474918c41a0372a410049bd4e13#n664
run: |
if (( ${#TITLE} >= 60 )); then
echo "The PR title is too long. Please keep it under 60 characters."
if (( ${#TITLE} > 60 )); then
echo "The PR title is too long. Please keep it <=60 characters."
exit 1
fi

0 comments on commit 99dd80a

Please sign in to comment.