Skip to content

Add Aliases for Tags Support#2213

Merged
ChrisLovering merged 7 commits into
mainfrom
tag-aliases
Jul 11, 2022
Merged

Add Aliases for Tags Support#2213
ChrisLovering merged 7 commits into
mainfrom
tag-aliases

Conversation

@janine9vn
Copy link
Copy Markdown
Contributor

This PR adds support for adding aliases and alternative names for tags and showcases it with two existing tags.

It uses the metadata functionality and will look for the "aliases" key. It then adds the alias names to the Tags dictionary that gets searched through when trying to match a tag directly.

This doesn't check for duplicate aliases as there wasn't a good way to do that validation ahead of time. It also didn't feel like a good solution to iterate through all TagIdentifiers to find possible duplicate matches. So I'm relying on folks who are PRing things to not add conflicting aliases.

Example of the alias in action
image
image

Adds an "aliases" metadata option to provide alternative names for a
tag. Adds the alias names as additional identifiers to search for.
For our favorite bot admin and to showcase how aliases should look in
the tag file itself.
@janine9vn janine9vn added p: 2 - normal Normal Priority a: information Related to information commands: (doc, help, information, reddit, site, tags) a: tags Related to bot tags t: enhancement Changes or improvements to existing features labels Jul 11, 2022
@janine9vn janine9vn requested review from Den4200 and jb3 as code owners July 11, 2022 16:20
@Xithrius Xithrius requested review from Bluenix2, ChrisLovering and HassanAbouelela and removed request for Den4200 and jb3 July 11, 2022 16:22
Adds an "aliases" metadata option to provide alternative names for a
tag. Adds the alias names as additional identifiers to search for.
For our favorite bot admin and to showcase how aliases should look in
the tag file itself.
@ChrisLovering ChrisLovering enabled auto-merge (squash) July 11, 2022 16:53
@ChrisLovering ChrisLovering merged commit c199668 into main Jul 11, 2022
@ChrisLovering ChrisLovering deleted the tag-aliases branch July 11, 2022 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: information Related to information commands: (doc, help, information, reddit, site, tags) a: tags Related to bot tags p: 2 - normal Normal Priority t: enhancement Changes or improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants