Skip to content

Rename deprecated 'title-prefix' to 'required-title-prefix' on push-to-pull-request-branch (efficiency-/perf-/test-improver) #341

Description

@Evangelink

Summary

gh aw compile --strict (v0.75.0) emits a deprecation warning for the title-prefix field under safe-outputs.push-to-pull-request-branch in three workflows shipped from this repo:

⚠ 'title-prefix' is deprecated in safe-outputs.push-to-pull-request-branch. Use 'required-title-prefix' instead.

Affected workflows

  • workflows/efficiency-improver.md (1 occurrence)
  • workflows/perf-improver.md (1 occurrence)
  • workflows/test-improver.md (1 occurrence)

Example from workflows/perf-improver.md:

safe-outputs:
  push-to-pull-request-branch:
    target: "*"
    title-prefix: "[perf-improver] "
    max: 4

Fix

Rename title-prefix → required-title-prefix on push-to-pull-request-branch (the field has the same filter semantics — restrict pushes to PRs whose existing title starts with the prefix — so the rename preserves behavior):

safe-outputs:
  push-to-pull-request-branch:
    target: "*"
    required-title-prefix: "[perf-improver] "
    max: 4

Note: this is a different concern from #321/#323, which argued for removing the field on repo-assist because the filter semantics were undesirable there. For these three workflows the filter is intentional (they only push to PRs they themselves created with the same prefix), so a rename is the right minimal fix.

Downstream context

Filed for visibility — downstream fork applied locally in microsoft/testfx#8560.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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