syncweaver patch mark-status

Record a lifecycle status tag (e.g. pending, contributed, merged) for a patch entry in the lockfile, enabling automated workflows to track contribution state.

Usage

Usage: syncweaver patch mark-status [OPTIONS]

  Record patch lifecycle status metadata in lockfile extension fields.

Options:
  --patch PATH                    Relative patch path, e.g.
                                  code/package1/.syncweaver/package1.diff.
                                  [required]
  --status [local|open|accepted|rejected]
                                  Patch lifecycle status to record in the
                                  lockfile.  [required]
  --pr-url TEXT                   Optional upstream pull request URL
                                  associated with this patch.
  --reason TEXT                   Optional free-text note, required for
                                  rejected patches.
  --lockfile PATH                 Path to .syncweaver-lock.json in the host
                                  repository.  [default: .syncweaver-
                                  lock.json]
  -h, --help                      Show this message and exit.

Examples

# Mark a patch as contributed upstream
syncweaver patch mark-status --path code/mypackage --status contributed

# Mark with a specific patch file reference
syncweaver patch mark-status \
  --path code/mypackage \
  --patch patches/mypackage.patch \
  --status merged