Skip to content

Add news release actions#459

Draft
jezdez wants to merge 5 commits into
mainfrom
feature/news-release-actions
Draft

Add news release actions#459
jezdez wants to merge 5 commits into
mainfrom
feature/news-release-actions

Conversation

@jezdez

@jezdez jezdez commented Jun 5, 2026

Copy link
Copy Markdown
Member

Description

Adds conda-owned release-notes actions for the fragment-first news flow:

  • check-news validates sectioned conda news snippets on pull requests without writing files and honors the no-news label.
  • prepare-release runs only from a trusted workflow_run release-branch push context, aggregates existing snippets into CHANGELOG.md, deletes consumed snippets, and opens or updates a release-notes PR.
  • Shared parsing lives in news_common so PR-time validation and release-time rendering use the same section rules.

Refs conda/infrastructure#556

Related PRs:

Validation:

  • uv run --with ruff ruff check check-news prepare-release news_common
  • uv run --with pytest --with pytest-cov --with pytest-mock python -m pytest check-news prepare-release
  • Full suite currently has 111 passing tests and 2 unrelated existing Rich ANSI assertion failures in template-files/test_template_files.py.

@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jun 5, 2026
@github-project-automation github-project-automation Bot moved this to 🆕 New in 🔎 Review Jun 5, 2026
@dholth

dholth commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Does it continue updating a release PR as PR's are merged into main?

Comment thread prepare-release/README.md
Comment on lines +3 to +15
Generate release notes from conda news fragments and open or update a release
PR. The action is intended to run from a trusted `workflow_run` event after the
test workflow succeeds on a protected release branch.

```yaml
name: Prepare release notes

on:
workflow_run:
workflows: [Tests]
types: [completed]
branches:
- '[0-9]*.[0-9]*.x'

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.

@dholth yeah it looks like it's designed to continuously update the release PR anytime the test suite completes on the release branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed [bot] added once the contributor has signed the CLA

Projects

Status: 🆕 New

Development

Successfully merging this pull request may close these issues.

4 participants