Skip to content

Release workflow example uses regular pull request events - #114

Merged
Marius Storhaug (MariusStorhaug) merged 11 commits into
mainfrom
docs/pull-request-trigger
Nov 22, 2026
Merged

Marius Storhaug (MariusStorhaug) merged 11 commits into
mainfrom
docs/pull-request-trigger

Conversation

@MariusStorhaug

@MariusStorhaug Marius Storhaug (MariusStorhaug) commented Nov 4, 2026 •

Copy link
Copy Markdown
Member

The README example uses regular pull_request events and the PR base branch for its concurrency group. To adopt the example, change the trigger and concurrency key in your workflow. This PR changes guidance only; action code and repository workflows stay the same.

Fixed: Release workflow example uses regular pull request events

The example keeps pre-merge and merged PR runs in the same concurrency group. The branch filter and event types stay the same.

Existing workflows do not change automatically. Adoption is optional. Normal fork PR tokens are read-only, so release creation and PR comments can fail on those runs. This change does not add fork-publication support.

Migration guide

For workflows copied from the previous README example, make these edits:

  1. Replace pull_request_target with pull_request under on.
  2. Replace ${{ github.workflow }}-${{ github.ref }} with ${{ github.workflow }}-${{ github.event.pull_request.base.ref }} under concurrency.group.
  3. Retain the existing branch filter and event types.

Confirm that pre-merge and merged events use the same group for the same base branch. For example, workflow Release-GHRepository with base branch main uses group Release-GHRepository-main in both cases.

No action-version update or module installation is required for these example edits.

Technical details

The complete diff changes two lines in README.md. The scoped comparison is base 750abed0ecab02394554b610dc3aa191e75e3248 to head 5a1357144c38cb0fd74775fec7bbee711a008e94. All other tracked files match the base.

The base-branch concurrency key corrects the trigger-dependent difference between pre-merge and merged github.ref values. The earlier local experiment found two old keys and one shared base-branch key.

The versioned publication workflow, .github/workflows/Release.yml, selects only action.yml and src/**. This README-only diff does not match that path filter. The other workflows run validation or the action with WhatIf: true. No inspected publication route applies to this diff; this description makes no runtime, broader security, or release-readiness claim.

No closing delivery issue is specified. No additional issue closure is claimed.

Changed surface Standards checked Framework docs checked Result
README workflow guidance and PR text MSX PR Format and Technical Writing Guide at 11346421e56d062179ce6177d1b878ed08de7c53 Repository example and effective workflow routes Guidance and technical adoption steps described separately from runtime behavior

@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title Use pull_request in the release workflow example Release workflow example uses regular pull request events Nov 4, 2026
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title Release workflow example uses regular pull request events Release publishing isolates pull request code Nov 16, 2026
@MariusStorhaug Marius Storhaug (MariusStorhaug) added the Major Breaking changes label Nov 16, 2026
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title Release publishing isolates pull request code Pull request releases use one hardened workflow Nov 16, 2026
@MariusStorhaug Marius Storhaug (MariusStorhaug) removed the Major Breaking changes label Nov 16, 2026
@MariusStorhaug Marius Storhaug (MariusStorhaug) changed the title Pull request releases use one hardened workflow Release workflow example uses regular pull request events Nov 16, 2026
@MariusStorhaug
Marius Storhaug (MariusStorhaug) marked this pull request as ready for review November 21, 2026 16:08
Copilot AI balanced review requested due to automatic review settings November 21, 2026 16:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Different concurrency groups can leave prereleases behind, and the example omits fork-token and merge-conflict cleanup limitations.

3 open issues
What changed in this PR

Updates the Release-GHRepository README example to use regular pull request events. This changes the workflow consumers may copy; the action code and repository workflows remain unchanged.

Changes:

  • Replaces pull_request_target with pull_request.
  • Retains the main branch filter and existing event types.
File Description
README.md Switches the release workflow example to pull_request events.

Review effort: Balanced

Comment thread README.md Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved
Copilot AI balanced review requested due to automatic review settings November 21, 2026 19:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

On write-enabled same-repository runs, a prerelease-labeled PR can disable WhatIf in its unmerged configuration and publish before merge.

1 open issue
3 resolved since last review

Review effort: Balanced

Comment thread README.md Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approved

There are no active review issues for the README-only release workflow example update.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@MariusStorhaug
Marius Storhaug (MariusStorhaug) merged commit 0fbca9f into main Nov 22, 2026
19 checks passed
@MariusStorhaug
Marius Storhaug (MariusStorhaug) deleted the docs/pull-request-trigger branch November 22, 2026 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants