Skip to content

ci: add http-client-python bump version workflow#9881

Draft
msyyc wants to merge 9 commits intomainfrom
yuchaoyan/add-python-bump-version-workflow
Draft

ci: add http-client-python bump version workflow#9881
msyyc wants to merge 9 commits intomainfrom
yuchaoyan/add-python-bump-version-workflow

Conversation

@msyyc
Copy link
Contributor

@msyyc msyyc commented Mar 3, 2026

Adds a new GitHub Actions workflow \http-client-python-bump-version.yml\ that automates the Python emitter release process:

  • Triggered manually via \workflow_dispatch\
  • Updates @typespec/\ and @azure-tools/\ dependencies (preserving newer dev versions)
  • Syncs peerDependencies
  • Runs chronus version bump
  • Builds and creates a draft PR

Translated from the existing Python script \http_client_python_release.py.

msyyc and others added 2 commits March 3, 2026 15:01
- Pin npm-check-updates to v17 to avoid breaking changes
- Add year and run number to branch name to prevent collisions
- Explicitly install semver instead of relying on hoisted dependency
- Add test step before creating PR
- Use git add -A to capture new files
- Auto-generate PR body with package.json diff
- Add pnpm install at root before npm install

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

No changes needing a change description found.

msyyc and others added 3 commits March 3, 2026 15:23
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-sdk
Copy link
Collaborator

azure-sdk commented Mar 3, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

msyyc and others added 4 commits March 3, 2026 15:40
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
--body "$PR_BODY" \
--base ${{ inputs.branch || github.ref_name }} \
--draft)
echo "✅ PR created: $PR_URL"
Copy link
Contributor Author

@msyyc msyyc Mar 3, 2026

Choose a reason for hiding this comment

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

Image

Hi @timotheeguerin, is it possible to enable pull request creation by Github Action? We want to automate http-client-python release with github action.

Image

according to doc, only admin could enable it for repo setting.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants