palantir / bulldozer

GitHub Pull Request Auto-Merge Bot
Apache License 2.0
746 stars 100 forks source link

delete_after_merge being ignored #112

Open kevinohara80 opened 5 years ago

kevinohara80 commented 5 years ago

I'm not sure what we're doing wrong here. The branches are being merged but the delete_after_merge flag is being ignored and the branches aren't being deleted. I also can't see anything in the logs that mention deletion of the branch.

Here's the project .bulldozer.yml

version: 1

merge:
  whitelist:
    branches: ["develop", "master"]
  blacklist:
    labels: ["no merge"]
    comment_substrings: ["==DO_NOT_MERGE=="]
  method: squash
  branch_method:
    develop: squash
    master: merge
  options:
    squash:
      title: "pull_request_title"
      body: "pull_request_body"
      message_delimiter: ==COMMIT_MSG==
  delete_after_merge: true

update:
  whitelist:
    branches: ["develop", "master"]
  blacklist:
    labels: ["no update"]
bluekeyes commented 5 years ago

That's strange. The config looks correct to me and from the deletion code, the only case where nothing is logged is if the option is not enabled. The other cases where deletion will not happen are:

Something should be logged in all of those cases, including that deletion was attempted even if the API call then fails for some reason.

Would it possible to share the log output for a full evaluation that merged a PR?

kevinohara80 commented 5 years ago

Yeah, I'll try to get the full output. None of the situations you mentioned apply here.

kevinohara80 commented 5 years ago

Here's an output of the logs...

https://docs.google.com/spreadsheets/d/1c2w_OEzYKp2hyXmqGRXU4TG5NHlvl0ow15iEnhkh_1w/edit?usp=sharing

kevinohara80 commented 5 years ago

One more thing to note...I'm using the current snapshot docker image

bluekeyes commented 5 years ago

I just published a new snapshot image that has the additional logging you proposed in #113 along with some changes to the configuration loading logs. Hopefully that will reveal something helpful here.