Skip to content

fix: update trigger event for PR label synchronization#70

Merged
Zahnentferner merged 1 commit into
AOSSIE-Org:mainfrom
rahul-vyas-dev:fix/label-issue
Jun 8, 2026
Merged

fix: update trigger event for PR label synchronization#70
Zahnentferner merged 1 commit into
AOSSIE-Org:mainfrom
rahul-vyas-dev:fix/label-issue

Conversation

@rahul-vyas-dev

@rahul-vyas-dev rahul-vyas-dev commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Additional Notes:

This PR updates the label synchronization workflow by replacing pull_request with pull_request_target for safer and more reliable repository-level operations.

Checklist

  • My code follows the project's code style and conventions
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have joined the Discord server and I will share a link to this PR with the project maintainers there
  • I have read the Contributing Guidelines

⚠️ AI Notice - Important!

We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact.

Summary by CodeRabbit

  • Chores
    • Updated pull request workflow trigger configuration to support additional event types for improved automation coverage.

@coderabbitai

coderabbitai Bot commented Jun 7, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 78095a86-d16a-4e1f-885a-f948cc081fb2

📥 Commits

Reviewing files that changed from the base of the PR and between 9299487 and 066857b.

📒 Files selected for processing (1)
  • .github/workflows/sync-pr-labels.yml
💤 Files with no reviewable changes (1)
  • .github/workflows/sync-pr-labels.yml

Walkthrough

The sync-pr-labels GitHub Actions workflow is extended to respond to both pull_request and pull_request_target events with matching event types, ensuring label synchronization works consistently across standard and external contributor scenarios.

Changes

Workflow Trigger Configuration

Layer / File(s) Summary
Pull request trigger expansion
.github/workflows/sync-pr-labels.yml
Added pull_request_target trigger to the workflow on: section with event types opened, reopened, synchronize, and edited, mirroring the existing pull_request trigger behavior.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested reviewers

  • bhavik-mangla
  • Zahnentferner

Poem

🐰 A workflow now listens with ears twice as keen,
Pull request and pull\_request\_target convene,
Both hear the same calls when changes appear,
Labels sync onward, crystal and clear! ✨

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: updating the trigger event for PR label synchronization from pull_request to pull_request_target.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added no-issue-linked PR has no linked issue ci-cd CI/CD changes configuration Config file changes github-actions GitHub Actions changes size/XS 1-10 lines changed external-contributor External contributor labels Jun 7, 2026
@github-actions github-actions Bot added size/XS 1-10 lines changed and removed size/XS 1-10 lines changed labels Jun 7, 2026
@Zahnentferner Zahnentferner merged commit 775f7ad into AOSSIE-Org:main Jun 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-cd CI/CD changes configuration Config file changes external-contributor External contributor github-actions GitHub Actions changes no-issue-linked PR has no linked issue size/XS 1-10 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants