mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 22:17:51 +01:00
Allow emoji 🆑 tags
See https://github.com/tgstation/tgstation/pull/80115
This commit is contained in:
@@ -2,21 +2,21 @@
|
||||
|
||||
[Release Notes]: # (Your PR should contain a detailed list of notable changes, titled appropriately. This includes any observable changes to the server or DMAPI. See examples below.)
|
||||
|
||||
:cl:
|
||||
🆑
|
||||
Description of your change.
|
||||
Each newline corresponds to a release note in the release your change is included in.
|
||||
/:cl:
|
||||
/🆑
|
||||
|
||||
:cl:
|
||||
🆑
|
||||
You can also have multiple sets of release notes per pull request.
|
||||
They will be amalgamated together in the end.
|
||||
/:cl:
|
||||
/🆑
|
||||
|
||||
:cl: Categories
|
||||
🆑 Categories
|
||||
Categories are used by [the release notes tool](../tools/Tgstation.Server.ReleaseNotes) to generate formatted changelists used in releases.
|
||||
The default category is Core.
|
||||
Only one category may be specified for a :cl: block.
|
||||
Only one category may be specified for a 🆑 block.
|
||||
Valid categories are Core, DreamMaker API, HTTP API, Host Watchdog, Web Control Panel, Configuration, Nuget: Api, Nuget: Client, and Nuget: Common.
|
||||
/:cl:
|
||||
/🆑
|
||||
|
||||
[Why]: # (If this does not close or work on an existing GitHub issue, please add a short description [two lines down] of why you think these changes would benefit the server. If you can't justify it in words, it might not be worth adding.)
|
||||
|
||||
@@ -682,7 +682,7 @@ namespace Tgstation.Server.ReleaseNotes
|
||||
var trimmedLine = line.Trim();
|
||||
if (targetComponent == null)
|
||||
{
|
||||
if (trimmedLine.StartsWith(":cl:", StringComparison.Ordinal))
|
||||
if (trimmedLine.StartsWith(":cl:", StringComparison.Ordinal) || trimmedLine.StartsWith("🆑", StringComparison.Ordinal))
|
||||
{
|
||||
targetComponent = trimmedLine[4..].Trim();
|
||||
if (targetComponent.Length == 0)
|
||||
@@ -690,7 +690,7 @@ namespace Tgstation.Server.ReleaseNotes
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (trimmedLine.StartsWith("/:cl:", StringComparison.Ordinal))
|
||||
if (trimmedLine.StartsWith("/:cl:", StringComparison.Ordinal) || trimmedLine.StartsWith("/🆑", StringComparison.Ordinal))
|
||||
{
|
||||
if(!Enum.TryParse<Component>(targetComponent, out var component))
|
||||
component = targetComponent.ToUpperInvariant() switch
|
||||
|
||||
Reference in New Issue
Block a user