Skip to content

CLI wrapper to rebase, pre-fill and run CI on PRs #325

@silverwind

Description

@silverwind

Spawned off #324 (comment)

The basic idea would be a CLI script that does:

  1. Take a PR number argument
  2. Pull patches from Github
  3. Aks y/N if commits shall be squashed
  4. Rebase commits and apply metadata (use GitHub API to parse for LGTMs)
  5. Preview commit messages and ask y/N if they shall be further edited in $EDITOR
  6. Start a Jenkins job, possibly authorized through a user's SSH key or other token
  7. Sleep the process until Jenkins is complete
  8. If CI is green, ask y/N whether the commits shall be landed

The only step on which I'm unsure on how to do would be step 5. Can anyone think of a git workflow to add metadata to existing commits without rebase --interactive?

cc: @jbergstroem

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