# Create Public Release PR

> Create 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.

- Skill name: `create-public-release-pr`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/dotnet/dotnet-docker/blob/HEAD/.github/skills/create-public-release-pr/SKILL.md
- Repository: dotnet/dotnet-docker (4,857 GitHub stars when collected)

## SKILL.md

# Create Public Release PR

## Workflow

1. **Create a working branch** - create a new branch based off of the public release branch (e.g. `release-$ReleaseName`).
   - Run `pwsh ../shared/Get-ReleaseBranches.ps1` to find the latest release branch.
   - The most recently created branch corresponds to the current release.
2. **Collect stage container names** - read `stage-containers.txt` from the internal release branch get the stage container names for each release.
3. **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:

   ```bash
   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`.
4. **Confirm with the user** — Let the user review the changes.
5. **Submit the PR** — Push the branch to `origin` and submit a PR to `main`.

---

Source: https://www.openparable.com/skill/development/create-public-release-pr (OpenParable). Cite the canonical URL above.
