Fixes the changelogs being absolutely deleted only (#15586)

* Update files

* extra and hidden stuff
This commit is contained in:
SandPoot
2022-04-07 17:36:41 -03:00
committed by GitHub
parent 03385972d7
commit 9c3073168c
7 changed files with 31 additions and 15 deletions
+5
View File
@@ -27,6 +27,11 @@ refactor: refactored some code
config: changed some config setting
admin: messed with admin stuff
server: something server ops should know
wip: still being worked on
experiment: experimental
tgs: has something to do with tgs
expansion: expands on something
qol: quality of life content
/:cl:
<!-- Both :cl:'s are required for the changelog to work! You can put your name to the right of the first :cl: if you want to overwrite your GitHub username as author ingame. -->
+1
View File
@@ -43,6 +43,7 @@ jobs:
git config --local user.email "action@github.com"
git config --local user.name "Changelogs"
git pull origin master
git add html/changelogs
git commit -m "Automatic changelog compile [ci skip]" -a || true
- name: "Push"
if: steps.value_holder.outputs.CL_ENABLED
+10 -4
View File
@@ -11,16 +11,16 @@
# - (fixes bugs)
# wip
# - (work in progress)
# qol
# - (quality of life)
# tweak
# - (tweaks something)
# soundadd
# - (adds a sound)
# sounddel
# - (removes a sound)
# rscadd
# - (adds a feature)
# rscdel
# - (removes a feature)
# rscadd
# - (adds a feature)
# imageadd
# - (adds an image or sprite)
# imagedel
@@ -29,6 +29,8 @@
# - (fixes spelling or grammar)
# experiment
# - (experimental change)
# tgs
# - (messing around with tgs)
# balance
# - (balance changes)
# code_imp
@@ -41,6 +43,10 @@
# - (makes changes to administrator tools)
# server
# - (miscellaneous changes to server)
# expansion
# - (expands something)
# qol
# - (quality of life)
#################################
# Your name.
+5 -6
View File
@@ -18,25 +18,24 @@ import yaml from 'js-yaml';
const icons = {
bugfix: { icon: 'bug', color: 'green' },
wip: { icon: 'hammer', color: 'orange' },
qol: { icon: 'hand-holding-heart', color: 'green' },
tweak: { icon: 'wrench', color: 'green' },
soundadd: { icon: 'tg-sound-plus', color: 'green' },
sounddel: { icon: 'tg-sound-minus', color: 'red' },
add: { icon: 'check-circle', color: 'green' },
expansion: { icon: 'check-circle', color: 'green' },
rscadd: { icon: 'check-circle', color: 'green' },
rscdel: { icon: 'times-circle', color: 'red' },
rscadd: { icon: 'check-circle', color: 'green' },
imageadd: { icon: 'tg-image-plus', color: 'green' },
imagedel: { icon: 'tg-image-minus', color: 'red' },
spellcheck: { icon: 'spell-check', color: 'green' },
experiment: { icon: 'radiation', color: 'yellow' },
tgs: { icon: 'toolbox', color: 'purple' },
balance: { icon: 'balance-scale-right', color: 'yellow' },
code_imp: { icon: 'code', color: 'green' },
refactor: { icon: 'tools', color: 'green' },
config: { icon: 'cogs', color: 'purple' },
admin: { icon: 'user-shield', color: 'purple' },
server: { icon: 'server', color: 'purple' },
tgs: { icon: 'toolbox', color: 'purple' },
tweak: { icon: 'wrench', color: 'green' },
expansion: { icon: 'check-circle', color: 'green' },
qol: { icon: 'hand-holding-heart', color: 'green' },
unknown: { icon: 'info-circle', color: 'label' },
};
@@ -832,6 +832,9 @@ function checkchangelog($payload, $compile = true) {
$currentchangelogblock[] = array('type' => 'balance', 'body' => $item);
}
break;
case 'tgs':
$currentchangelogblock[] = array('type' => 'tgs', 'body' => $item);
break;
case 'code_imp':
case 'code':
if($item != 'changed some code'){
+1 -1
View File
@@ -1,5 +1,5 @@
#!/bin/bash
set -euo pipefail
md5sum -c - <<< "4d783933c74290b3a219068790b2046f *html/changelogs/example.yml"
md5sum -c - <<< "f7e6ca6705adbc0eb85fc381221557c4 *html/changelogs/example.yml"
python3 tools/ss13_genchangelog.py html/changelogs
+6 -4
View File
@@ -46,22 +46,24 @@ all_changelog_entries = {}
validPrefixes = [
'bugfix',
'wip',
'qol',
'tweak',
'soundadd',
'sounddel',
'rscadd',
'rscdel',
'rscadd',
'imageadd',
'imagedel',
'expansion',
'spellcheck',
'experiment',
'tgs',
'balance',
'code_imp',
'refactor',
'config',
'admin',
'server'
'server',
'expansion',
'qol'
]
def dictToTuples(inp):