← Back to Pull requests

chore: release-please and shared release workflows #13

Closed
unknown closed this pull request without merging on Oct 13, 2026 16:56 UTC
View on GitHub
unknown unknown commented on Oct 13, 2026 16:04 UTC
Author

Why

plugin-jira (batch 1) joins the release train: releases now come from release-please PRs and the shared
compliance-framework/workflows release callers instead of the old tag-push workflow. The default branch is
main, so every push trigger and the PR base use main.

What

  • release-please-config.json: the shared defaults from workflows release-please/defaults.json at v1.5.2

  • (top-level keys identical), plus packages: {".": {"release-type": "go"}}.
  • .release-please-manifest.json seeded at 0.2.2: releases/latest is v0.2.2 (a final release, tag

  • vX.Y.Z), and v0.2.2 is an ancestor of main. No bootstrap-sha needed. Two commits since then
    (#10, a fix, and #11, a ci change), so the first release PR should propose 0.2.3.
  • New callers, all pinned to 6e7fc9c04b59c7d1117938da397f8a6f8df036ab # v1.5.2, copied from mock-plugin-1

  • (cut-prerelease.yml from mock-plugin-policies-1):
    - release-please.yml (push to main);
    - release.yml, replaced: release: published calls release-go-plugin.yml with protocol-version: "2";
    - preview.yml with kind: go-plugin, on-main: false (only the preview label builds :pr-<n>);
    - cut-prerelease.yml (workflow_dispatch, rc tags vX.Y.Z-rcN).
  • .goreleaser.yaml: adds release: {prerelease: auto, replace_existing_artifacts: true}. Builds, binary: plugin

  • and archive names are unchanged.
  • ci.yml is unchanged: it already pins v1.5.2 and calls release-checks.yml.

  • README is unchanged: it doesn't describe releasing.
  • Deleted

  • .github/workflows/build-and-upload.yml: reusable job that ran goreleaser (~> v2), then gooci upload of

  • dist/ to :<ref_name> and :latest with the protocol v2 annotation.
  • The old .github/workflows/release.yml (replaced in place): ran build-and-upload.yml on every pushed tag ('*').
  • Artifact comparison (old tag-push workflow vs release-go-plugin.yml at v1.5.2)

  • Trigger and GitHub release: old: a tag push; goreleaser created the GitHub release. New: release-please

  • creates the release and goreleaser attaches the archives to it (release.mode unset, so it keeps the notes).
  • Release assets: same. A local goreleaser release --snapshot --clean gives plugin-jira_{Darwin_arm64,

  • Darwin_x86_64,Linux_arm64,Linux_i386,Linux_x86_64}.tar.gz
    , each holding LICENSE, README.md and plugin,
    plus the checksums file. Those are the asset names on the v0.2.2 release.
  • OCI upload: same content: gooci upload dist/ with org.ccf.plugin.protocol.version=2.

  • OCI tags: old: two separate uploads, :<tag> and :latest, so two digests. And because the trigger was a

  • tag push, github.event.release.prerelease was unset, so any tag (rc included) moved :latest. New:
    one upload to :vX.Y.Z, then crane points :latest at the same digest for final tags only. rc tags
    (vX.Y.Z-rcN) publish just that tag, with :latest untouched. Because of the shared digest, :latest's
    org.opencontainers.image.ref.name/version annotations read vX.Y.Z.
  • Tag format: old: any tag. New: vX.Y.Z[-rcN] only.

  • Pins: goreleaser ~> v2 became v2.18.2, gooci@latest became v0.0.7, and actions are pinned by SHA.

  • Go now comes from go.mod (go-version-file); the old job used setup-go's default.

    These all match the batch-1 pilot's known differences; nothing specific to this repo.

    Verified locally

  • actionlint v1.7.12: clean.

  • go build ./..., go test ./...: pass.

  • goreleaser check and goreleaser release --snapshot --clean (local goreleaser v2.16.0; CI uses v2.18.2):

  • pass, with the archives listed above.
  • release-please-config.json minus packages equals defaults.json at v1.5.2.
  • This PR stays open until batch 1's repo settings are applied: release-please needs the release environment
    secrets.

    Task: W3-S2-T01 (local-dev/docs/release-automation/workstream-3-plugins-in-train.md)

    🤖 Generated with Claude Code

    Diff: 501 lines (+375 / -126) across 6 files Reviewer: gusfcarvalho Review duration: 52m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 501 lines diff across 6 files
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.372
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #13"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 47.5% (MEDIUM) · Higher = larger blast radius
    47.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.8% · Safe to merge
    18.8%