Skip to content

[Feature Request] Add flag to enable/disable auto-merge logic#1

Open
kentwelcome wants to merge 2 commits intocycleapple:mainfrom
kentwelcome:feature/add-flag-to-disable-auto-merge
Open

[Feature Request] Add flag to enable/disable auto-merge logic#1
kentwelcome wants to merge 2 commits intocycleapple:mainfrom
kentwelcome:feature/add-flag-to-disable-auto-merge

Conversation

@kentwelcome
Copy link

What does this PR do?

In this PR, we add a flag autoMerge to configure the PR-Update action.
Once the autoMerge flag has been set to false, the action will post a comment on PR to remind the user instead of merging the base branch directly.
Also, the user can use descriptionMerged and descriptionMerged to customize the output message of git commit and PR comment.
By the way, the default value of auto merge will be true, and it's not a required field.
Adding this flag wrong changes the existing behavior if the user doesn't modify their GitHub action workflow.

Why is this PR needed?

It's great to know if a PR branch is up-to-date.
However, in some cases, auto-merging the base branch without user interaction is too aggressive.
By using autoMerge flag, the user can configure the action behavior based on the need.

- Once the auto merge is disabled, will command on the PR to remind
  users this PR branch is not up to date.

Signed-off-by: Kent Huang <kent@infuseai.io>
Signed-off-by: Kent Huang <kent@infuseai.io>
@kentwelcome kentwelcome force-pushed the feature/add-flag-to-disable-auto-merge branch from bcb9d52 to 0c3d7d4 Compare November 6, 2024 03:39
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.

1 participant