Create Public Release PR
Developmentcreate-public-release-prCreate Public Release PR is an Agent Skill for development published in the dotnet/dotnet-docker repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Create a public PR to the dotnet-docker release branch with new .NET versions, and a follow-up PR from the release branch into main. Use when preparing the public release PR for a .NET containers servicing release.
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/dotnet/dotnet-docker/blob/HEAD/.github/skills/create-public-release-pr/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/create-public-release-pr, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Create Public Release PR
Workflow
-
Create a working branch - create a new branch based off of the public release branch (e.g.
release-$ReleaseName).- Run
pwsh ../shared/Get-ReleaseBranches.ps1to find the latest release branch. - The most recently created branch corresponds to the current release.
- Run
-
Collect stage container names - read
stage-containers.txtfrom the internal release branch get the stage container names for each release. -
Update Dockerfiles to new .NET versions - for each .NET version to be released, run the update-dependencies tool from the root of the dotnet-docker repo:
dotnet run --project ./eng/update-dependencies/update-dependencies.csproj -- from-staging-pipeline $StageContainerName --azdo-organization "https://dev.azure.com/dnceng" --azdo-project internal --source-branch "main"- Commit changes separately for each .NET version with this commit message format:
Update .NET X.0 to X.0.Y Runtime / X.0.ZZZ SDK. For previews:Update .NET X.0 to X.0 Preview N.
- Commit changes separately for each .NET version with this commit message format:
-
Confirm with the user — Let the user review the changes.
-
Submit the PR — Push the branch to
originand submit a PR tomain.