Skip to content

chore(action): Polish review sticky comment with alerts and emoji#110

Merged
mhiro2 merged 1 commit into
mainfrom
chore/review-comment-alert-syntax
Apr 29, 2026
Merged

chore(action): Polish review sticky comment with alerts and emoji#110
mhiro2 merged 1 commit into
mainfrom
chore/review-comment-alert-syntax

Conversation

@mhiro2

@mhiro2 mhiro2 commented Apr 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replace the plain blockquote envelope around the sticky review comment with GitHub Alert syntax ([!CAUTION] / [!WARNING] / [!TIP]) so the three lifecycle states (blocking, non-blocking findings, clean) render with their own coloured headers and built-in icons.
  • Introduce a dedicated alert for the previously unstyled "findings detected but not blocking" state and wrap the clean state in a [!TIP] block so the comment never feels too sparse, with a leading emoji and short call-to-action on each state.
  • Apply the same treatment to the published action/examples/relune-review.yaml so the sample workflow stays in sync with the dogfood path under .github/workflows/dogfood-review.yaml.

Changes

  • 92f9716 : chore(action): polish review sticky comment with alerts and emoji
    • Switch the blocking-findings envelope from > ⚠️ **Blocking findings detected.** to a [!CAUTION] alert with a 🛑 emoji and "Resolve them before merging." follow-up.
    • Add an elif branch that wraps non-blocking findings in a [!WARNING] alert with a 🔍 emoji prompting the reviewer to read the report below.
    • Replace the bare ✅ No risk findings. line with a [!TIP] alert so resolved PRs still get a visually consistent sticky comment instead of a one-line message.

Switch the sticky-comment envelope from a plain blockquote to GitHub Alert
syntax (`[!CAUTION]` / `[!WARNING]` / `[!TIP]`) so blocking, non-blocking,
and clean states render with their own coloured headers and icons. Each
state now carries a leading emoji and a short call-to-action so the comment
is easier to scan at a glance.

Apply the same treatment to action/examples/relune-review.yaml so the
sample workflow stays in sync with the dogfood path.
@github-actions

Copy link
Copy Markdown

Code Metrics Report

main (24e0e79) #110 (806722a) +/-
Coverage 94.6% 94.6% 0.0%
Test Execution Time 1m31s 1m32s +1s
Details
  |                     | main (24e0e79) | #110 (806722a) | +/-  |
  |---------------------|----------------|----------------|------|
  | Coverage            |          94.6% |          94.6% | 0.0% |
  |   Files             |             81 |             81 |    0 |
  |   Lines             |          36827 |          36827 |    0 |
  |   Covered           |          34864 |          34864 |    0 |
- | Test Execution Time |          1m31s |          1m32s |  +1s |

Reported by octocov

@github-actions

Copy link
Copy Markdown

Schema review

Tip

✅ No risk findings — schema changes look safe to merge.

@mhiro2 mhiro2 self-assigned this Apr 29, 2026
@mhiro2
mhiro2 merged commit 87c2b43 into main Apr 29, 2026
6 checks passed
@mhiro2
mhiro2 deleted the chore/review-comment-alert-syntax branch April 29, 2026 04:02
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.

1 participant