Skip to content

Make sure Feishu notification gets sent on 'main' branch push - #39

Open
wilhelm-tiger wants to merge 1 commit into
mainfrom
ci-cd-simplification
Open

Make sure Feishu notification gets sent on 'main' branch push#39
wilhelm-tiger wants to merge 1 commit into
mainfrom
ci-cd-simplification

Conversation

@wilhelm-tiger

@wilhelm-tiger wilhelm-tiger commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Chores
    • Updated automated notification workflows to run based on test results.
    • Notifications are no longer blocked by the separate code review workflow.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The CI workflow’s notify job now depends only on test; its dependency on code-review and prior conditional gating expression were removed.

Changes

CI notification flow

Layer / File(s) Summary
Notification job gating
.github/workflows/ci-cd.yml
The notify job now declares only test as a dependency and no longer uses the previous success/skipped result condition.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested reviewers: cazerme

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly matches the main change: ensuring the Feishu notification runs on main branch pushes.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/ci-cd.yml:
- Line 64: Update the notify job’s needs configuration to depend on both test
and code-review, and adjust its condition to allow execution when code-review is
skipped while preserving notification after successful tests or completed
review.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 38cab1de-ffd5-412a-9894-05c03b730d52

📥 Commits

Reviewing files that changed from the base of the PR and between d3085fd and a7a76b9.

📒 Files selected for processing (1)
  • .github/workflows/ci-cd.yml

notify:
needs: [test, code-review]
if: ${{ always() && needs.test.result == 'success' && (needs.code-review.result == 'success' || needs.code-review.result == 'skipped') }}
needs: [test]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

printf '\n== Files ==\n'
git ls-files .github/workflows/ci-cd.yml AGENTS.md

printf '\n== .github/workflows/ci-cd.yml (relevant lines) ==\n'
nl -ba .github/workflows/ci-cd.yml | sed -n '1,220p'

printf '\n== AGENTS.md (relevant lines) ==\n'
nl -ba AGENTS.md | sed -n '1,240p'

Repository: Waybox-AI/roadtrip-skill

Length of output: 305


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path
p = Path('.github/workflows/ci-cd.yml')
text = p.read_text()
for key in ['notify:', 'code-review:', 'needs:', 'if:']:
    print(f'-- {key} occurrences --')
    for i, line in enumerate(text.splitlines(), 1):
        if key in line:
            print(f'{i}: {line}')
PY

Repository: Waybox-AI/roadtrip-skill

Length of output: 459


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path
for name in ['.github/workflows/ci-cd.yml', 'AGENTS.md']:
    p = Path(name)
    print(f'## {name}')
    if p.exists():
        for i, line in enumerate(p.read_text().splitlines(), 1):
            if 'notify' in line or 'code-review' in line or 'needs:' in line or 'if:' in line or 'feishu' in line.lower():
                print(f'{i}: {line}')
    else:
        print('MISSING')
PY

Repository: Waybox-AI/roadtrip-skill

Length of output: 585


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path
p = Path('.github/workflows/ci-cd.yml')
lines = p.read_text().splitlines()
for start, end in [(1, 120)]:
    for i in range(start, min(end, len(lines)) + 1):
        print(f"{i:>4}: {lines[i-1]}")
PY

Repository: Waybox-AI/roadtrip-skill

Length of output: 2457


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path
p = Path('.github/workflows/ci-cd.yml')
lines = p.read_text().splitlines()
for i in range(35, 76):
    if i <= len(lines):
        print(f"{i:>4}: {lines[i-1]}")
PY

Repository: Waybox-AI/roadtrip-skill

Length of output: 1467


🏁 Script executed:

#!/bin/bash
set -euo pipefail

python3 - <<'PY'
from pathlib import Path
p = Path('.github/workflows/ci-cd.yml')
print(p.read_text())
PY

Repository: Waybox-AI/roadtrip-skill

Length of output: 2044


Keep notify waiting on code-review

needs: [test] lets notify start as soon as tests pass, even while code-review is still running or has failed. Add code-review back to needs and allow the skipped case so push builds still notify:

Suggested change
-    needs: [test]
+    needs: [test, code-review]
+    if: ${{ always() && needs.test.result == 'success' && (needs.code-review.result == 'success' || needs.code-review.result == 'skipped') }}

This keeps the tests → PR-agent review → Feishu notification order intact.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
needs: [test]
needs: [test, code-review]
if: ${{ always() && needs.test.result == 'success' && (needs.code-review.result == 'success' || needs.code-review.result == 'skipped') }}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/ci-cd.yml at line 64, Update the notify job’s needs
configuration to depend on both test and code-review, and adjust its condition
to allow execution when code-review is skipped while preserving notification
after successful tests or completed review.

Source: MCP tools

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.

2 participants