Github hook for adding "Logging" tag to logging PRs (#71633)

## About The Pull Request
Github hook to add the Logging tag to PRs with "log/logs/logging" in the
title.

## Why It's Good For The Game
Computers doing my dirty work for me

## Changelog
No player-facing changes

Co-authored-by: tattle <article.disaster@gmail.com>
This commit is contained in:
tattle
2022-12-01 19:40:48 -08:00
committed by GitHub
parent 04b9fd0fce
commit bb3e874841

View File

@@ -242,6 +242,8 @@ function tag_pr($payload, $opened) {
if($opened) { //you only have one shot on these ones so as to not annoy maintainers
$tags = checkchangelog($payload);
if(strpos(strtolower($title), 'logs') !== FALSE || strpos(strtolower($title), 'logging') !== FALSE)
$tags[] = 'Logging';
if(strpos(strtolower($title), 'refactor') !== FALSE)
$tags[] = 'Refactor';
if(strpos(strtolower($title), 'revert') !== FALSE)