Skip to content

Conversation

@TooAngel
Copy link
Contributor

Summary

The permission check now uses the worlddriven-migrate app credentials to verify if the app is installed on the source repository, rather than checking if worlddrivenbot has collaborator access.

This fixes the migration flow:

  1. User creates PR adding repo to REPOSITORIES.md with Origin field
  2. CI runs and fails (app not installed)
  3. User installs worlddriven-migrate app on their repo
  4. CI reruns and passes (app detected)
  5. PR merges, sync workflow transfers the repository

Changes

  • check-transfer-permissions.js: Add app-based auth using JWT to check app installation
  • sync-repositories.js: Pass app credentials to permission check function
  • drift-detection.yml: Add MIGRATE_APP_ID/PRIVATE_KEY env vars
  • sync-repositories.yml: Add MIGRATE_APP_ID/PRIVATE_KEY env vars

Required Secrets

  • MIGRATE_APP_ID - GitHub App ID
  • MIGRATE_APP_PRIVATE_KEY - GitHub App private key (PEM format)

Test Plan

  • CI passes with app credentials configured
  • Permission check detects app installation on test repository
  • Migration flow works end-to-end with migration-test repository

The permission check now uses the worlddriven-migrate app credentials
to verify if the app is installed on the source repository, rather than
checking if worlddrivenbot has collaborator access.

This fixes the migration flow:
1. User creates PR adding repo to REPOSITORIES.md with Origin field
2. CI runs and fails (app not installed)
3. User installs worlddriven-migrate app on their repo
4. CI reruns and passes (app detected)
5. PR merges, sync workflow transfers the repository

Changes:
- check-transfer-permissions.js: Add app-based auth using JWT
- sync-repositories.js: Pass app credentials to permission check
- drift-detection.yml: Add MIGRATE_APP_ID/PRIVATE_KEY env vars
- sync-repositories.yml: Add MIGRATE_APP_ID/PRIVATE_KEY env vars

Requires secrets: MIGRATE_APP_ID, MIGRATE_APP_PRIVATE_KEY
@worlddriven
Copy link
Contributor

worlddriven bot commented Jan 18, 2026

🤖 Worlddriven Status

📊 Live Status Dashboard

🗓️ Merge Date: 2026-01-19 at 06:38:41 UTC (today)
📅 Started: 2026-01-18 at 06:38:41 UTC
Speed Factor: 0.10 (90% faster due to reviews)
Positive votes: 18/20 contribution weight (coefficient: 0.90)
📈 Base Merge Time: 10 days → Current: 1 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

2026-01-18, 06:35:06 - Pull request opened
2026-01-18, 06:35:07 - Pull request opened
2026-01-18, 06:38:48 - Branch synchronized (merge timer reset)
2026-01-18, 06:38:50 - Branch synchronized (merge timer reset)
2026-01-19, 06:51:39 - Pull request merged by worlddriven ✅


This comment is automatically updated by worlddriven

@worlddriven worlddriven bot merged commit 9de75e0 into worlddriven:main Jan 19, 2026
3 checks passed
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