ci: add weekday Slack digest of PRs marked ready for review - #1107
Draft
devin-ai-integration[bot] wants to merge 1 commit into
Draft
ci: add weekday Slack digest of PRs marked ready for review#1107devin-ai-integration[bot] wants to merge 1 commit into
devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: patrick.nilan@airbyte.io <patrick.nilan@airbyte.io>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
👋 Greetings, Airbyte Team Member!Here are some helpful tips and reminders for your convenience. 💡 Show Tips and TricksTesting This CDK VersionYou can test this version of the CDK using the following: # Run the CLI from this branch:
uvx 'git+https://github.com/airbytehq/airbyte-python-cdk.git@chore/slack-ready-for-review-digest#egg=airbyte-python-cdk[dev]' --help
# Update a connector to use the CDK from this branch ref:
cd airbyte-integrations/connectors/source-example
poe use-cdk-branch chore/slack-ready-for-review-digestPR Slash CommandsAirbyte Maintainers can execute the following slash commands on your PR:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
New scheduled workflow
.github/workflows/slack-ready-for-review-digest.ymlthat posts one digest to #dev-apis-prs (C0BHDAPNPCY) at 7:00 AM Pacific, Mon–Fri, listing every PR marked ready for review since the previous digest. It does not replace the existing per-PRslack-pr-notification.yml; it reuses that workflow's Slack action (same SHA pin), channel, and jq escaping conventions, but deliberately omits the<!subteam^…>mention so the daily digest stays quiet.Window semantics. Rather than assuming a fixed 24h/72h lookback, the window starts at the
created_atof the last successful scheduled run of this workflow, so a skipped or failed run is absorbed by the next one instead of dropping PRs:The cron carries a
timezone: "America/Los_Angeles"key, so Pacific 7 AM holds across DST without the two-cron PST/PDT workaround."Marked ready for review" is not a searchable field, so selection is two-phase:
gh pr list --search "updated:>=<window date>"narrows the candidate set, then each candidate'sissues/<n>/timelinesupplies the timestamp of its most recentready_for_reviewevent (falling back tocreatedAtfor PRs opened straight out of draft). Comparison is on epoch seconds, not ISO strings, since the API returns…Zwhiledate --iso-8601emits…+00:00.Each digest line renders
#N — title, author,+adds -dels across N file(s), and reviewers — the union of requested reviewers (teams included) and people who actually submitted a review, with bots stripped via a[bot]-suffix rule plus a small extensible$botsdenylist for apps likecoderabbitaiwhose login lacks the suffix.reviewers: unassignedis the signal worth scanning for. Merged/closed PRs stay in the digest but carry a state marker so finished work is skippable. When nothing qualifies, the Slack step is skipped rather than posting an empty digest.workflow_dispatchtakeslookback_hoursanddry_runfor testing.Verification
actionlint(v1.7.12), YAML parse, andbash -non allrun:blocks pass.dry_run=truedispatch after merge) is the remaining check.Link to Devin session: https://app.devin.ai/sessions/8690034cbdc9443ca2b1432dba20b892