Skip to content

[RUN-4568] Add prepare-community-pr reusable workflow caller#46

Merged
Jesus-Osuna-M merged 1 commit into
mainfrom
RUN-4568-add-prepare-community-pr-workflow
Jul 1, 2026
Merged

[RUN-4568] Add prepare-community-pr reusable workflow caller#46
Jesus-Osuna-M merged 1 commit into
mainfrom
RUN-4568-add-prepare-community-pr-workflow

Conversation

@Jesus-Osuna-M

Copy link
Copy Markdown
Contributor

Summary

Adds the prepare-community-pr workflow to this repo by calling the centralized reusable workflow in rundeck/rundeck.

Tracks: https://pagerduty.atlassian.net/browse/RUN-4568

What this does

When a maintainer applies the prepare-community-pr label to a community PR (from a fork), this workflow:

  1. Verifies the PR has at least one approved review
  2. Creates an integration branch (bot/prep-community-pr-<number>)
  3. Merges the community PR into that branch
  4. Opens an internal PR so full CI (including jobs that need repo secrets) can run

Why

Community PRs from forks cannot access repository secrets directly. This is the secure pattern to run full CI on them without exposing secrets to untrusted code.

What changed

A single 15-line caller file: .github/workflows/prepare-community-pr.yml

All the actual logic lives in rundeck/rundeck and is called via uses: rundeck/rundeck/.github/workflows/prepare-community-pr.yml@main.

Post-merge step

Verify that this repo has access to reusable workflows from rundeck/rundeck:
Settings → Actions → General → Access → allow workflows from repos in the rundeck org.

Made with Cursor

Adds the centralized workflow from rundeck/rundeck so that community PRs
from forks can be securely run through full CI via an integration branch.

Co-authored-by: Cursor <cursoragent@cursor.com>
Copilot AI review requested due to automatic review settings July 1, 2026 15:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a repository-local GitHub Actions workflow that delegates to the centralized prepare-community-pr reusable workflow in rundeck/rundeck, enabling maintainers to prepare fork-based community PRs for internal CI via a label-triggered pull_request_target run.

Changes:

  • Introduces .github/workflows/prepare-community-pr.yml as a lightweight caller workflow.
  • Triggers on pull_request_target label events and runs only when prepare-community-pr is applied.
  • Grants contents: write and pull-requests: write permissions to support the called workflow’s branch/PR operations.

Comment on lines +1 to +2
# Calls the centralized workflow from rundeck/rundeck.
# To add this to another repo, copy this file — no changes needed.
Comment thread .github/workflows/prepare-community-pr.yml
@Jesus-Osuna-M Jesus-Osuna-M merged commit 6220d8b into main Jul 1, 2026
2 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.

3 participants