Skip to content

Choose a tag to compare

@suzuki-shunsuke suzuki-shunsuke released this 24 Nov 01:14
· 13 commits to main since this release
Immutable release. Only release title and notes can be modified.
v0.8.0
6774841

Issues | Pull Requests | v0.7.1...v0.8.0 | Base revision

⚠️ Breaking Changes

#956 When the commit is pushed to a branch of the client repository which doesn't exist:

  1. The branch is created from the head commit of the client workflow run (head_sha), not from the latest commit of the default branch. If the pull request's base differs from the client workflow run's branch (e.g. a run on a release branch creates a pull request to main), the pull request includes commits of the client workflow run's branch which aren't in the base.
  2. prepare outputs base_sha. Custom workflows that use base_sha behave differently.
  3. A request is accepted even if the client workflow run's branch has been updated, as long as all of the following are met. So a request for an old client workflow run which meets them, including one whose artifact was made before a fix of the client workflow, is accepted. With allow_workflow_fix, it can create a branch which changes workflows.
    • head_sha is on the first-parent history of the branch
    • head_sha is within 250 commits of the latest commit of the branch
    • The client workflow run was created within 6 hours (created_at, which doesn't change on re-runs). 6 hours is the maximum execution time of a job on GitHub-hosted runners

Pushing to the same branch, an existing branch, or another repository is unchanged.

This change is in the server (prepare action) only. You don't need to update the client workflow.

🐛 Bug Fixes

#954 #956 Requests to push to another branch no longer fail when the client workflow run's branch has advanced

A request to push to a branch other than the client workflow run's failed with the following error if the client workflow run's branch had advanced after the run started:

The client workflow run must be for the latest commit <latest SHA of the branch> of the branch <branch>, but got <head_sha of the workflow run>

A typical case is a workflow triggered by pushes to the default branch that creates a follow-up pull request on a new branch when it fails (e.g. when terraform apply fails after merge). In repositories with frequent merges, the default branch often advances while the workflow is running, so follow-up pull requests weren't created.

The check added in #898 prevents a request for an old workflow run from reverting changes pushed after it. When the destination is a new branch, that is now prevented by creating the branch from head_sha instead: the fixed files are made from the tree of head_sha, so the branch has only the fix, and merging it is a normal 3-way merge.

See Push a commit to the other repository and branch for details.

Others

#960 Remove the Recent Important Updates section from README