Commit Graph

5 Commits

Author SHA1 Message Date
Roxy
109d188fbf Make Autochangelog case-insensitive for tags (#91678)
## About The Pull Request

Changes `changelogParser.js` so looking up the changelog entry type is
case-insensitive e.g. `Fix: blahblah` is recognized. Also added a new
test in `changelogParser.test.js` to test the functionality

## Why It's Good For The Game

I fucked this up once and I saw someone else fuck it up recently (in my
case I backspaced the changelog cause I didn't think it needed one, then
later decided it did but I capitalized the tag name and it caused there
to be no changelog entry once merged) and it's a dead simple thing to
account for

## Changelog
🆑
code: Autochangelog no longer cares if your changelog entry tag has
capital letters in it
/🆑
2025-06-17 18:59:46 -07:00
Jeremiah
9db2f6916b Sets prettier to run on the repo (#91379)
## About The Pull Request
Prettier (an auto formatter) is set to only run within the tgui folder
currently. This removes that limitation, allowing it to automatically
format all supported files in the repo (.js, .html, .yml
[etc](https://prettier.io/docs/))

I made a few exceptions for bundled and generated files
## Why It's Good For The Game
I'm of the opinion that code should look uniform and am lazy enough to
want CTRL-S to format files without having to think beyond that
## Changelog
2025-05-29 21:23:59 -07:00
Bloop
23df383e7a Fixes autochangelog just dying if fed an invalid changelog entry (#86670)
## About The Pull Request

Something that really has annoyed me for a while, if a user puts
something invalid in their changelog body like:
`tweak: something something` (a common one I encounter)

then this results in the autochangelog script crashing and not creating
a changelog at all. So many changelogs get dumpstered because of this
and it is stupid.

This PR changes it so the changelog parser is able to continue past the
invalid lines and complete the action.

It would be nice to have the ci bot comment on the user's pr if it
detects bad input to inform them of it but that's beyond what I have the
time and skills for right now.

This was tested downstream and confirmed to work.

## Why It's Good For The Game

<details><summary>Less changelogs getting lost to the void.</summary>


![image](https://github.com/user-attachments/assets/a82e746f-d6ea-4234-af79-e432be5d21af)

</details>

## Changelog

Nothing player-facing
2024-09-16 09:15:42 -04:00
Kylerace
135bf597a1 fixes autochangelog erroring on an empty pr body https://github.com/tgstation/tgstation/actions/runs/8977813552/job/24657813451 the changelog workflow errors when theres nothing in the pr body, which causes a useless notification. now it should be fixed (#83122) 2024-05-07 17:35:26 -04:00
Mothblocks
8bb8ca9d67 Move auto changelog generation into its own workflow (#70652)
I wanted to move auto labeling into its own workflow, but realized that it and changelog generation were coupled. So I'm detaching that first, and then will work on auto labeling later. Includes general code for a changelog parser so that I can reuse it by that point.

GitHub actions are great for downstreams, as setting up a PHP server for the webhook is not trivial, compared to Existing and getting it for free. They are also much more straightforward to test and update than the webhook. I was able to verify this was working trivially with an empty repository.

Tested and working: Mothblocks/ss13-workflow-testing@0a2de4d
2022-10-27 16:52:32 +13:00