Skip to content

If the first word at WORK_IN_PROGRESS_PREFIXES starts with <, the hint is shown incorrectly #4705

Closed
@InExtremaRes

Description

@InExtremaRes
  • Gitea version (or commit ref): 03e558c
    (the rest are not relevant or difficult)

Description

Since #4529 a commit can be marked as WIP. The WIP prefix can be configured. We have marked our PR with a <WIP> prefix format since a while, so we put that as the default. I have this in my app.ini:

[repository.pull-request]
; List of prefixes used in Pull Request title to mark them as Work In Progress
WORK_IN_PROGRESS_PREFIXES=<WIP>,WIP:,[WIP]

It works pretty well, except for the hint text that doesn't show the prefix to use:

image

You can see the hint only says Start the title with, without the <WIP>. For reference, here is how is showed with default values:

image

After a little of experimentation, it seems the problem occurs any time the prefix start with a < character.

@JulienTant

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions