pascalgn / automerge-action

GitHub action to automatically merge pull requests that are ready
MIT License
841 stars 207 forks source link

I am coping #206

Open RickyTheRacc opened 1 year ago

RickyTheRacc commented 1 year ago

Trying to make it just automatically merge every PR no matter what labels or anything it has, but this doesn't work, any idea why and how I would go about fixing it? image

pascalgn commented 1 year ago

We need some more information here, for example links to workflows where it wasn't running as expected, or output copied from the workflows

rbren commented 1 year ago

+1--MERGE_LABELS="" doesn't seem to works as documented.

I just copied the vanilla config, and added MERGE_LABELS: ""

pascalgn commented 1 year ago

This might be because MERGE_LABELS: "" might be treated as if no merge labels config is set, and then it uses the default setting. Try MERGE_LABELS: "!x" (merge every PR that does not have the x label set), I think it will work 👍

ifosch commented 11 months ago

We're facing the same issue. Using MERGE_LABELS="!x" doesn't work either. Apparently, automerge action still requires the automerge label to be set:

2023-10-23T14:10:38.439Z INFO  Skipping PR update, required label missing: automerge
ifosch commented 11 months ago

We have this working: Apparently, the problem is missing the default UPDATE_LABEL. When we set this environment variable to "", then everything seems to work well FYI @RickyTheRacc @rbren

q-yusufmahtab commented 1 month ago

@ifosch are you saying that MERGE_LABELS does not work unless you also set UPDATE_LABEL: ""?