Is there an existing issue for this?
Current Behavior
When using merge.strategy: client (with any after value that allows immediate merging, e.g. after: 0m), the action correctly creates and merges the pull request, but the run still ends with an error during the clean stage:
ERROR: Failed to clean up action(s): merging pull request: Pull Request is not mergeable
ERROR: - merging pull request: Pull Request is not mergeable
ERROR: cleaning action stage: "failed to clean up action(s):\n\tmerging pull request: Pull Request is not mergeable"
Expected Behavior
updatecli pipeline apply should create and merge the pull request with out any error
Steps To Reproduce
actions:
myAction:
kind: github/pullrequest
scmID: myGithub
spec:
merge:
strategy: client
after: 0m
Run updatecli pipeline apply. The pull request is created and merged successfully, but the run exits with the error above.
Environment
- OS:Tested on macOS and GitHub action workflow using ubuntu
- updatecli: v0.117.1
Pipeline Graph
No response
OpenTelemetry Trace
No response
Anything else?
Looking through the code in pullrequest.go, it seems like the error is coming from CleanAction that calls mergeAfterDuration() on a PR that was already merged by CreateAction.
Is there an existing issue for this?
Current Behavior
When using merge.strategy: client (with any after value that allows immediate merging, e.g. after: 0m), the action correctly creates and merges the pull request, but the run still ends with an error during the clean stage:
ERROR: Failed to clean up action(s): merging pull request: Pull Request is not mergeable
ERROR: - merging pull request: Pull Request is not mergeable
ERROR: cleaning action stage: "failed to clean up action(s):\n\tmerging pull request: Pull Request is not mergeable"
Expected Behavior
updatecli pipeline apply should create and merge the pull request with out any error
Steps To Reproduce
Run updatecli pipeline apply. The pull request is created and merged successfully, but the run exits with the error above.
Environment
Pipeline Graph
No response
OpenTelemetry Trace
No response
Anything else?
Looking through the code in pullrequest.go, it seems like the error is coming from CleanAction that calls mergeAfterDuration() on a PR that was already merged by CreateAction.