Skip to content

Make auto-merge more conservative#2204

Merged
thomas-zahner merged 1 commit into
lycheeverse:masterfrom
thomas-zahner:more-conservative-auto-merge
May 28, 2026
Merged

Make auto-merge more conservative#2204
thomas-zahner merged 1 commit into
lycheeverse:masterfrom
thomas-zahner:more-conservative-auto-merge

Conversation

@thomas-zahner

@thomas-zahner thomas-zahner commented May 21, 2026

Copy link
Copy Markdown
Member

Only do auto-merges when the pull-request contains exactly one commit author. This prevents pull-requests which are manually amended from being merged automatically.

This prevents me and others from redoing the mistake done in #2199 (comment)

@thomas-zahner thomas-zahner requested review from katrinafyi and mre May 21, 2026 12:35

@katrinafyi katrinafyi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I might be mistaken, but I believe each run step uses its own shell so an early exit 0 won't stop the next step from running?

@thomas-zahner thomas-zahner force-pushed the more-conservative-auto-merge branch from 936806d to 3e5edec Compare May 22, 2026 07:23
@thomas-zahner

Copy link
Copy Markdown
Member Author

@katrinafyi Oh, thank you, I think you are totally right. It would have to exit with a non-zero code, which is what I did first. But then I realised that the action should probably not fail. Using an if should do.

Btw, renovate bot would apparently handle such cases. So we could think about replacing dependabot with renovate bot. But I thought to keep the changes minimal for now.

Only do auto-merges when the pull-request contains exactly one commit
author. This prevents pull-requests which are manually amended from
being merged automatically.
@thomas-zahner thomas-zahner force-pushed the more-conservative-auto-merge branch from 3e5edec to 3b49f10 Compare May 22, 2026 07:48
@thomas-zahner thomas-zahner merged commit e7ce2eb into lycheeverse:master May 28, 2026
7 checks passed
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