Skip to content

Conversation

@TooAngel
Copy link
Owner

Summary

  • Skip draft PRs in scheduled PR processing to avoid 405 merge errors
  • Skip draft PRs in webhook handlers (pull_request and pull_request_review)
  • Log when draft PRs are skipped for visibility

Context

Draft PRs cannot be merged by GitHub API and attempting to do so results in a 405 error. The system was trying to merge draft PRs like worlddriven/documentation#16, causing unnecessary API calls and error logs.

Test plan

  • Deploy to production and verify draft PRs show "Skipping draft PR" in logs
  • Verify non-draft PRs continue to be processed normally

Closes #199

Draft PRs cannot be merged by GitHub and attempting to do so results
in a 405 error. This change skips draft PRs in both scheduled processing
and webhook handling to avoid unnecessary API calls and error logs.

Closes #199
@worlddriven
Copy link
Contributor

worlddriven bot commented Dec 14, 2025

🤖 Worlddriven Status

📊 Live Status Dashboard

🗓️ Merge Date: 2025-12-16 at 04:14:14 UTC (today)
📅 Started: 2025-12-14 at 08:43:02 UTC
Speed Factor: 0.18 (82% faster due to reviews)
Positive votes: 307/375 contribution weight (coefficient: 0.82)
📈 Base Merge Time: 10 days → Current: 2 days

🎯 Want to influence when this merges?

Your review matters! As a contributor to this project, your voice helps determine the merge timeline.

How to review:

  1. Check the changes
    Files changed

  2. Leave your review
    Review changes

Your options:

  • ✅ Agree & Speed Up: Approve Approving makes this merge faster
  • ❌ Disagree & Slow Down: Request changes Requesting changes delays the merge

💡 Pro tip: The more contributors who agree, the faster this gets merged!

📊 View detailed stats on the dashboard

📋 Recent Activity

2025-12-14, 08:43:10 - Pull request opened
2025-12-14, 08:43:11 - Pull request opened
2025-12-16, 04:52:09 - Pull request merged by worlddriven ✅


This comment is automatically updated by worlddriven

@worlddriven worlddriven bot merged commit 25cdc01 into master Dec 16, 2025
2 checks passed
@worlddriven worlddriven bot deleted the fix/skip-draft-prs branch December 16, 2025 04:52
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.

Do not write a comment in Draft pull requests

2 participants