Skip to content

Support rerunning --pr-merge with --strategy append #283

@MPV

Description

@MPV

I'd like to be able to "rerun Octopilot, and have it attempt auto-merging again".

Steps to reproduce:

  1. Let Octopilot create PRs (with flags --pr-merge and --strategy append)
  2. Some PRs may not have auto-merged, for example/possibly due to outstanding issues as described in:
  3. Return a while later, rerunning step 1 above.

Expected results:

  1. PRs created (and some merged)
  2. PRs changing into a merge'able state (approved by codeowners, checks passing)
  3. PRs outstanding being merged.

Actual results:

  1. OK
  2. OK
  3. PRs outstanding are not touched by Octopilot, as it considers No changes recorded, nothing to push and Repository update has no changes, as seen in:
time="2023-11-20T15:15:31Z" level=debug msg="Git repository cloned" git-reference=HEAD git-url="https://github.com/my-org/my-repo.git" local-path=/tmp/octopilot1734020439/my-org/my-repo
time="2023-11-20T15:15:31Z" level=info msg="Found existing Pull Request" labels="[HAWK-1546 octopilot-update gha-workflows]" pull-request="https://github.com/my-org/my-repo/pull/310" repository=my-org/my-repo
time="2023-11-20T15:15:31Z" level=debug msg="Updater finished" changes=true repository=my-org/my-repo updater="Exec[cmd=sh,args=[-c git add .]]"
time="2023-11-20T15:15:31Z" level=debug msg="All updaters finished" repository=my-org/my-repo
time="2023-11-20T15:15:31Z" level=debug msg="No changes recorded, nothing to push" repository=my-org/my-repo
time="2023-11-20T15:15:31Z" level=warning msg="Repository update has no changes" repository=my-org/my-repo
time="2023-11-20T15:15:31Z" level=info msg="Updates finished" repositories-count=3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions