Skip to content

feat: add useMergedPullRequestHead input to get_values - #357

Merged
markubra merged 5 commits into
mainfrom
feat/get-values-merged-pr-head
Nov 19, 2026
Merged

markubra merged 5 commits into
mainfrom
feat/get-values-merged-pr-head

Conversation

@markubra

@markubra markubra commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Production releases that run on push to master need the commit the staging image was built for, which is the release branch head and not the merge commit. This puts the lookup in get_values, so repos don't each carry their own job for it.

  • new useMergedPullRequestHead input, off by default, so existing callers are unchanged
  • when on, push and manual runs return the head commit of the pull request whose merge created the current commit, in the same outputs as before
  • the run fails if no such pull request exists
  • callers that restrict token permissions need pull-requests: read on the calling job

Part of apify/apify-infra#1697

@markubra markubra changed the title feat: add merged pull request head lookup to get_values feat: add release_commit_sha output to get_values Nov 19, 2026
@markubra
markubra requested a review from seyhello November 19, 2026 09:10
@markubra markubra changed the title feat: add release_commit_sha output to get_values feat: add useMergedPullRequestHead input to get_values Nov 19, 2026
@markubra
markubra merged commit 4573327 into main Nov 19, 2026
1 check passed
@markubra
markubra deleted the feat/get-values-merged-pr-head branch November 19, 2026 12:22
markubra pushed a commit that referenced this pull request Nov 19, 2026
🤖 I have created a release *beep* *boop*
---


## [2.0.0](v1.4.1...v2.0.0)
(2026-11-19)


### ⚠ BREAKING CHANGES

* the serviceAccountGithubToken secret is replaced by the githubAppId
input and the githubAppPrivateKey secret. The workflow creates the
installation token in the job that creates the release branch.

### Features

* add useMergedPullRequestHead input to get_values
([#357](#357))
([4573327](4573327))
* authenticate create prod release with a GitHub App
([#359](#359))
([adbc771](adbc771))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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