GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Fix cleanup action for already merged pull requests by perlan · Pull Request #9133 · updatecli/updatecli

Conversation

@perlan

@perlan perlan commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Fix #9003

This pull request ensure that the CleanAction does not fail if the pull request is auto-merged in CreateAction by using merge.strategy: client in combination with merge.after: 0s.

In my efforts to auto-merge a pull request I tested both auto and client strategies but had no success with either. Looking through the code I actually think that this fix is relevant to auto-merging via server-side merging as well, but I haven't tested that use-case.

Test

There is currently no test provided since the fix is a one-liner and adding a test requires refactoring more code. I did an attempt to create a test case that changes the query struct to a type. If that's fine, I can provide a test-case as well.

Additional Information

Checklist

  • I have updated the documentation via pull request in website repository.

Tradeoff

Potential improvement

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@perlan
Fix cleanup action for already merged pull requests
8e8864f
@olblak

olblak commented Jun 4, 2026

Copy link
Copy Markdown
Member

Thanks for the pullrequest, I would need to test it because it touches a critical part of Updatecli which is difficult to test

perlan reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@olblak olblak added bug Something isn't working pullrequest-github labels Jun 4, 2026
olblak added 3 commits June 28, 2026 20:11
@olblak
Merge branch 'main' into client-auto-merge
3db1201
@olblak
Merge branch 'main' into client-auto-merge
a79bb49
@olblak
Merge branch 'main' into client-auto-merge
ce9027e
olblak
olblak approved these changes Jul 4, 2026
View reviewed changes

@olblak olblak left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Thanks for the fix, that's a very good catch and sorry that it took me so long to test it.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@olblak
olblak enabled auto-merge (squash) July 4, 2026 14:24
@olblak
olblak merged commit ba6be27 into updatecli:main Jul 4, 2026
8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@perlan

perlan commented Jul 4, 2026

Copy link
Copy Markdown
Contributor Author

Great to see this merged. Thank you for making such a useful tool available.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@olblak olblak olblak approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

bug Something isn't working pullrequest-github

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Github/pullrequest action using merge.strategy: client with after: 0m — "Pull Request is not mergeable" error in clean stage after successful merge

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@perlan @olblak
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.