Skip to content

ci(release): auto-open a python-sdk incorporation issue on release - #53

Merged
rahlk merged 1 commit into
mainfrom
ci/notify-python-sdk-on-release
Jun 27, 2026
Merged

ci(release): auto-open a python-sdk incorporation issue on release#53
rahlk merged 1 commit into
mainfrom
ci/notify-python-sdk-on-release

Conversation

@rahlk

Copy link
Copy Markdown
Contributor

Adds a release-workflow job that opens a tracking issue on python-sdk whenever a new version ships, so the consumer's pin and integration get updated.

Motivation and Context

python-sdk consumes codeanalyzer-python as a library and pins it exactly. A release (especially a breaking one like 0.3.0) needs a matching change there. This makes that follow-up automatic instead of manual.

How Has This Been Tested?

YAML validated. The CHANGELOG extraction (awk pulls the section under ## [VERSION] up to the next ## [) was run against the current file and returns the full 0.3.0 section. The cross-repo issue creation cannot run until the token secret exists (see Breaking Changes).

Breaking Changes

None to the package. One setup step: add a repo secret SDK_ISSUE_TOKEN, a PAT (or fine-grained token) with Issues:write on codellm-devkit/python-sdk. Without it, the new job fails, but it is isolated (needs: release), so PyPI and the GitHub Release still succeed. Mirrors the existing HOMEBREW_TAP_TOKEN pattern.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the Codellm-Devkit Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

New job notify-python-sdk:

needs: release
extract: awk the "## [VERSION]" CHANGELOG block into a body file
create: gh issue create --repo codellm-devkit/python-sdk
--title "Incorporate codeanalyzer-python v<version>"
--body-file <changelog section>

Note: GitHub issues are repository-scoped, not branch-scoped, so the issue opens on the python-sdk repo (it cannot target a specific branch).

Adds a notify-python-sdk job (needs: release) that extracts the CHANGELOG
section for the released version and opens a tracking issue on
codellm-devkit/python-sdk so its codeanalyzer-python pin and integration can
be updated. Mirrors the homebrew job's cross-repo PAT pattern: needs a
SDK_ISSUE_TOKEN secret with Issues:write on python-sdk (the default
GITHUB_TOKEN cannot open issues cross-repo). Isolated in its own job so a
missing token does not affect the PyPI or GitHub Release steps.
@rahlk
rahlk merged commit 25763b6 into mainJun 27, 2026
@rahlkrahlk added the ci continuous integration goodies label Jun 27, 2026
@rahlkrahlk self-assigned this Jun 27, 2026
@rahlk
rahlk deleted the ci/notify-python-sdk-on-release branch June 27, 2026 20:38
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cicontinuous integration goodies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@rahlk