-
Notifications
You must be signed in to change notification settings - Fork 32
chore: Add workflow to auto-label community PRs from forks #865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-Authored-By: AJ Steers <[email protected]>
Original prompt from AJ Steers |
🤖 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. Testing 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@devin/1765396828-label-community-prs#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 devin/1765396828-label-community-prsHelpful ResourcesPR Slash CommandsAirbyte Maintainers can execute the following slash commands on your PR:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a GitHub Actions workflow to automatically label PRs from forks with a community label, enabling tracking on the Community PRs project board.
- Introduces a new workflow that triggers on PR open/reopen events from forks
- Uses
pull_request_targetwith restricted permissions to safely handle fork PRs - Leverages a marketplace action pinned to a specific SHA for stability
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
📝 WalkthroughWalkthroughA new GitHub Actions workflow was added to label pull requests from forked repositories with the "community" label on opened and reopened events; it checks that the PR head repo is a fork and applies the label idempotently via an action. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
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. Comment |
Co-Authored-By: AJ Steers <[email protected]>
Summary
Adds a GitHub Actions workflow that automatically applies the
communitylabel to PRs opened from forks. This enables automatic tracking on the Community PRs project board.The workflow:
pull_request_targetevents (openedandreopened)if: github.event.pull_request.head.repo.fork == true)actions-ecosystem/action-add-labelsmarketplace action (v1.1.3, pinned by SHA)addLabelsAPI is idempotent—if the label already exists, it succeeds without errorReview & Testing Checklist for Human
pull_request_target)communitylabel exists in this repositorybd52874380e3909a1ac983768df6976535ece7f8) matches v1.1.3Test plan: After merging, open a PR from a fork (or close/reopen an existing fork PR) to verify the label is applied automatically.
Notes
This workflow cannot be tested via CI since it only triggers on actual fork PRs.
Requested by: @aaronsteers (AJ Steers)
Devin session: https://app.devin.ai/sessions/b0784474061f4084a04ce5251ce1e9f2
Important
Auto-merge enabled.
This PR is set to merge automatically when all requirements are met.
Note
Auto-merge may have been disabled. Please check the PR status to confirm.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.