Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alystair opened this issue Apr 26, 2020 · 0 comments
Open

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

alystair opened this issue Apr 26, 2020 · 0 comments

Comments

@alystair
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant