Skip to content

ci: notify when fork PR workflows await maintainer approval - #1139

Draft
130s wants to merge 1 commit into
moveit:mainfrom
130s:ci/notify-awaiting-approval
Draft

130s wants to merge 1 commit into
moveit:mainfrom
130s:ci/notify-awaiting-approval

Conversation

@130s

@130s 130s commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator

Description

Related to moveit/moveit2#3995.

Adds a scheduled workflow (.github/workflows/notify-awaiting-approval.yml) using only GitHub's official actions/github-script@v7 (no third-party actions) to detect open PRs whose CI workflows are stuck in action_required ("Awaiting approval") and post a one-time notice per commit SHA.

Details

  • Queries GET /repos/{owner}/{repo}/actions/runs?status=action_required and matches head_sha against currently open PRs (ignoring historical completed/expired action_required runs).
  • Uses an HTML comment marker (<!-- awaiting-ci-approval: <sha> -->) so each commit SHA is notified at most once.
  • Supports workflow_dispatch with dry_run (default true) and optional target_repo for safe testing before merging.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

This branch has not been deployed

No deployments
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