Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/ai-context/releasing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,24 @@

ConfluencePS delegates release planning and publication to the reusable workflow in [AtlassianPS.Standards](https://github.com/AtlassianPS/AtlassianPS.Standards/blob/master/docs/ReleaseBlueprint.md).

## Current v3 rollout guard

ConfluencePS will collect the `v3.0.0` change set on `master`.
Automatic releases stay off until that version is intentionally published.

- Keep the repository variable `CONFLUENCEPS_CD_ENABLED` unset or set to `false` until the prepared v3 release commit and its CI artifact have been reviewed.
- Do not create a release tag manually.
- When the v3 release is approved, manually dispatch `Continuous Release` with `major` to prepare `v3.0.0` from the full `Unreleased` changelog.
- Let CI finish while the gate remains disabled, then review the prepared commit and its release artifact.
- Set `CONFLUENCEPS_CD_ENABLED=true` and rerun CI for the prepared release commit; the successful rerun publishes that exact artifact.
- Verify PSGallery and the GitHub release, then leave the variable enabled for normal post-merge releases.

## Release flow

Pull requests declare exactly one `release:*` label.
User-facing changes also use a `changelog:*` label or add a `.changelog/<pr>.<impact>.<type>.md` fragment.

After a releasing pull request merges:
After a releasing pull request merges, and while `CONFLUENCEPS_CD_ENABLED` is `true`:

1. CI validates the merged commit.
2. The shared workflow reconciles merged release intent and commits the next version and changelog.
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/continuous_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ permissions:

jobs:
release:
if: github.event_name == 'workflow_dispatch' || vars.CONFLUENCEPS_CD_ENABLED == 'true'
uses: AtlassianPS/AtlassianPS.Standards/.github/workflows/module_release.yml@fa0c5f72ddb2b96712ffb8f8f0623fa7220d9dd8 # v0.4.1
with:
module-name: ConfluencePS
Expand Down
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ Before merging: ensure the Windows PowerShell 5.1 CI test job is green.
- `.github/workflows/integration_tests.yml` runs full integration suites weekly (Cloud + Dockerized Data Center) and by manual dispatch.
- `.github/workflows/release_intent.yml` validates release labels and changelog fragments.
- `.github/workflows/continuous_release.yml` delegates release orchestration to the pinned reusable Standards workflow.
- A merge to `master` starts no release while the repository variable `CONFLUENCEPS_CD_ENABLED` is not `true` (see `.github/ai-context/releasing.md`).
- `.github/ai-context/releasing.md` keeps ConfluencePS-specific release steps and links to the canonical AtlassianPS Standards release blueprint.
- Branch protection requires both `CI Result` and `Release Intent` before merge.
- For instruction-only changes, run local validation before opening/updating a PR.
Expand Down
1 change: 1 addition & 0 deletions Tests/GitHubActions.Unit.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Describe 'GitHub Actions release contract' -Tag Unit {
$script:continuousRelease | Should -Match '(?ms)workflow_run:.*?branches:\s*\[master\]'
$script:continuousRelease | Should -Match 'uses:\s+AtlassianPS/AtlassianPS\.Standards/\.github/workflows/module_release\.yml@[0-9a-f]{40}'
$script:continuousRelease | Should -Match 'module-name:\s+ConfluencePS'
$script:continuousRelease | Should -Match "vars\.CONFLUENCEPS_CD_ENABLED == 'true'"
$script:continuousRelease | Should -Match 'release-impact:\s+\$\{\{\s*inputs\.release_impact\s*\}\}'
$script:continuousRelease | Should -Match 'secrets:\s+inherit'
$script:continuousRelease | Should -Not -Match '(?m)^ (prepare|publish):|Publish-Module|create-github-app-token|actions/download-artifact'
Expand Down
Loading