Remove PR summary messages and updates from devprod-status-bot Worker#10269
Remove PR summary messages and updates from devprod-status-bot Worker#10269petebacondarwin merged 6 commits intomainfrom
Conversation
- Remove sendStartThreadMessage function that creates daily PR review threads - Remove sendReviewMessage function that handles PR webhook events - Remove scheduled cron job for daily PR summaries - Remove PR-related helper functions and type imports - Preserve security analysis and project management functionality Co-Authored-By: smacleod@cloudflare.com <smacleod@cloudflare.com>
🤖 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:
|
🦋 Changeset detectedLatest commit: 21736a4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
wrangler
commit: |
Addresses GitHub comment from penalosa about removing the '0 10 * * MON-FRI' cron trigger that was used for the sendStartThreadMessage function which was removed in the previous commit. Co-Authored-By: smacleod@cloudflare.com <smacleod@cloudflare.com>
Co-Authored-By: smacleod@cloudflare.com <smacleod@cloudflare.com>
| ], | ||
| "triggers": { | ||
| "crons": ["0 10 * * MON-FRI", "0 10 * * TUE,THU", "0 15 * * MON,WED,FRI"], | ||
| "crons": ["0 17 * * MON,WED", "0 15 * * MON,WED,FRI"], |
There was a problem hiding this comment.
(aside) 0 17 * * MON,WED is unrelated to this PR, but I noticed it was wrong, so might as well be fixed
There was a problem hiding this comment.
So I think this means that recently we have not been getting the release announcements?
I actually think that is a good thing since they are not so useful. So I would be in favour of removing that functionality too rather than reenabling it via a fixed cron schedule.
(Devin don't apply this suggestion unless @penalosa agrees)
| ], | ||
| "triggers": { | ||
| "crons": ["0 10 * * MON-FRI", "0 10 * * TUE,THU", "0 15 * * MON,WED,FRI"], | ||
| "crons": ["0 17 * * MON,WED", "0 15 * * MON,WED,FRI"], |
There was a problem hiding this comment.
So I think this means that recently we have not been getting the release announcements?
I actually think that is a good thing since they are not so useful. So I would be in favour of removing that functionality too rather than reenabling it via a fixed cron schedule.
(Devin don't apply this suggestion unless @penalosa agrees)
Replace 'as unknown as' type casting with cleaner generic syntax
as suggested by petebacondarwin in GitHub PR comment.
Changes:
- .json() as unknown as { html_url: string; body: string }[]
+ .json<{ html_url: string; body: string }[]>()
Co-Authored-By: smacleod@cloudflare.com <smacleod@cloudflare.com>
- Remove sendUpcomingReleaseMessage function and getVersionPackagesPR dependency - Remove '0 17 * * MON,WED' cron trigger from wrangler.jsonc - Update remaining cron trigger to match actual schedule '0 12 * * MON,WED,FRI' - Preserve security alerts and meeting reminder functionality As suggested by petebacondarwin in PR review - release announcements are not useful Co-Authored-By: smacleod@cloudflare.com <smacleod@cloudflare.com>
|
Congratulations @devin-ai-integration[bot], the maintainer of this repository has issued you a holobyte! Here it is: https://holopin.io/holobyte/cme1mudis083307l5vh0l2tzt This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account. |
This PR removes PR summary messages and PR update notifications from the devprod-status-bot Worker while preserving all other functionality like security alerts, project management, release notifications, and meeting reminders.
Changes Made
Removed PR Messaging Functions
sendStartThreadMessage: Daily PR review thread creation with team member filtering and age-based prioritizationsendReviewMessage: PR webhook event handling for opened/ready-for-review eventsgetPrs: Function to fetch open PRs from workers-sdk and wrangler-action reposisPullRequestOpenedEvent,isPullRequestReadyForReviewEventRemoved Scheduled Job
0 10 * * MON-FRIthat triggered daily PR summary messageswrangler.jsoncCleanup
PullRequestOpenedEvent,PullRequestReadyForReviewEvent,EndpointsPRListONE_DAYgetVersionPackagesPRfunctionPreserved Functionality
✅ Security analysis:
analyzeIssueSecurityandsendSecurityAlert✅ Project management:
addPRToProjectvia/pr-projectendpoint✅ Release notifications:
sendUpcomingReleaseMessage✅ Meeting reminders:
sendUpcomingMeetingMessage✅ Other endpoints:
/release-failureand logo servingKey Review Points
🔍 Most Important to Review:
getVersionPackagesPRfunction now usesas unknown as { html_url: string; body: string }[]- review if this is the right approachsendReviewMessagefrom the GitHub webhook handler doesn't affect security analysis flowgetVersionPackagesPRmight mask actual type issuesLink to Devin run: https://app.devin.ai/sessions/bd1871591ffb475a870bba799b6fe744
Requested by: smacleod@cloudflare.com