Skip to content

Automatically link/format labels, users/teams, etc #59

@alystair

Description

@alystair

Right now Yappy does not do anything special with comments. I believe they should be formatted and linked. This could be improved using some regex:

  • Labels
    ~"LABEL_TEXT" links to https://<DOMAIN>/<REPO_PATH>/-/issues?label_name=<LABEL_TEXT>. Labels can contain emojis. Strip ~"". Unsure how much customization Discord allows but webhook returns label color in hex, description (for title popup?), among other things.
  • Users/Teams
    @TEXT links to https://<DOMAIN>/<LABEL_TEXT>
  • Weight (issue only)
    If available could be listed next to title with :scales: ⚖ icon

Must ignore:

  • All text wrapped in ``` and ` (backtick contexts)
  • @all (entire team)

More details about formatting and additional types here: https://docs.gitlab.com/ee/user/markdown.html#special-gitlab-references

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