Skip to content

Enable Python auto-release for labeled PRs#47988

Open
raych1 wants to merge 1 commit into
mainfrom
users/raych1/support-auto-release
Open

Enable Python auto-release for labeled PRs#47988
raych1 wants to merge 1 commit into
mainfrom
users/raych1/support-auto-release

Conversation

@raych1

@raych1 raych1 commented Jul 10, 2026

Copy link
Copy Markdown
Member

Description

Enables Python release stages to compile for internal post-merge CI runs on main so packages from PRs labeled auto-release can be released automatically.

Changes

  • Includes release stages for internal IndividualCI runs on refs/heads/main in addition to existing manual runs.
  • Adds the shared AutoReleasePrepare stage to resolve changed releasable packages from the merged PR.
  • Gates each Release_* stage on the prepare-stage output for auto-release runs while preserving existing manual release behavior.

Testing

Not run; YAML template-only change.

@raych1 raych1 marked this pull request as ready for review July 10, 2026 00:55
Copilot AI review requested due to automatic review settings July 10, 2026 00:55
@raych1 raych1 requested a review from benbp as a code owner July 10, 2026 00:55

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

This PR updates the Python release stage archetype to also compile release stages for internal post-merge CI runs on main, enabling “auto-release” behavior by adding an AutoReleasePrepare stage and gating each Release_* stage based on its output variables.

Changes:

  • Expand stage compilation to include internal IndividualCI runs on refs/heads/main in addition to internal manual runs.
  • Add the shared AutoReleasePrepare stage (only for post-merge CI on main) to resolve releasable artifacts from the merged PR with the auto-release label.
  • Gate each Release_* stage during auto-release CI using dependencies.AutoReleasePrepare.outputs[...] while preserving the existing manual-run release conditions.

Comment thread eng/pipelines/templates/stages/archetype-python-release.yml
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