Commit Graph

72 Commits

Author SHA1 Message Date
distributivgesetz
f8b41f9442 Changes occurrences of recieve in code to receive (#80065)
## About The Pull Request

I've stumbled across this enough to finally go through the entire
codebase and fix it. I left out changelogs simply because rewriting
history logs is bad.
## Why It's Good For The Game

I find it pretty annoying because I stumble across words that are
misspelled for a few seconds, and I'm likely not the only one who feels
like this. Less spelling mistakes in code are better.
## Changelog
🆑
spellcheck: Occurrences of "recieve" has been changed to "receive".
/🆑
2023-12-02 14:50:57 -07:00
Kyle Spier-Swenson
0772ff423f Clear out some random errors in github webhook processor (#76232)
subrequests failing randomly was triggering invalid key errors later on
down the line needlessly.
2023-06-23 20:13:02 -06:00
Jordan Dominion
98ebf92689 Fix Pull Request Auto-Tagging (#76010)
I hate this dead language
2023-06-12 13:06:49 -05:00
Jordan Dominion
dafb6eefcc Add whitelist to webhook processor PR tagging (#75943)
I hate this script. Actions my beloved...

This is to get it away from my beautiful tgstation-server garden.

Fixes https://github.com/tgstation/tgstation-server/issues/1520
2023-06-10 10:51:00 -07:00
tattle
aeed75d72f Combined soundadd/sounddel and imageadd/imagedel (#74865)
## About The Pull Request
Combines
```
soundadd: added a new sound thingy
sounddel: removed an old sound thingy
```
into "sound," and
```
imageadd: added some icons and images
imagedel: deleted some icons and images
```
into "image" in the changelog. 

I don't think we need to have both; `sound` and `image` can represent
any kind of change to their respective medium.

---------

Co-authored-by: tattle <article.disaster@gmail.com>
2023-04-21 13:10:26 -06:00
NamelessFairy
bdd4978d00 April fools PRs can now be marked with [april fools] to automatically tag them as april fools PRs. (#74401)
## About The Pull Request

Really minor change that should make the April fools PR experience
better for PR creators/maints. Not sure if this has any notable
performance implications with the git bot going over its normal stuff,
if it does close this since this is pretty minor.

## Why It's Good For The Game

Its not, anything that encourages april fools PRs makes the game so much
worse.
2023-03-31 16:44:11 +00:00
tattle
bb3e874841 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>
2022-12-01 19:40:48 -08:00
Kyle Spier-Swenson
dee5f8f58a Fix github not announcing new prs (#70853) 2022-10-28 08:48:32 -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
Kyle Spier-Swenson
23a58ba321 [webhook] treat github api errors when validating users better. (#70219)
Proper fix is to make apisend handle retrying but i can't pr that from in bed when i remember i forgot to look into this so here we are
2022-10-03 23:16:06 -04:00
Mothblocks
e26d76a479 Renamed Balance/Rebalance to Balance, and removes unused rebalance tag (#68485) 2022-07-21 19:47:37 -04:00
Kylerace
93f39af8ac removes the Content Expansion tag, replaces Mechanic with Feature, and lowers its gbp cost from 10 to 6 (#66425) 2022-04-24 01:08:39 -07:00
dragomagol
b6f021195d add GBP: No Update label when title includes [no gbp] (#65739)
Co-authored-by: tattle <article.disaster@gmail.com>
2022-03-30 20:07:19 -07:00
Mothblocks
b8a42f1393 Fix GitHub webhook (#63182) 2021-12-01 14:59:30 +13:00
Mothblocks
6ca3dac322 Limit repository announcements to a whitelist, Discord announces to a blacklist (#63179)
About The Pull Request

Limits the game announcers only to arrays in a fixed whitelist.

Discord announcements, as they're more for those interested in the technical side, are on a blacklist of patterns. This is set to blacklist anything starting with event-*.

This stops a lot of internal repos from clogging chat, but more importantly is going to be used as events will now be hosted on the tgstation organization, and we want to limit spoilers/confusion on that for people who don't go looking for it.
2021-12-01 14:53:48 +13:00
NamelessFairy
c17da35970 Fixes an issue with changelog generation where the default lines would be included in the logs (#60736)
* In theory this should fix a bug MSO had in coderbus

* Apparently I am a very stupid cat
2021-08-08 12:05:13 -07:00
NamelessFairy
3d9180c33f Adds content expansion PR type (#59152)
* Adds content and "jobtent" PR tags

* Adds Semicolons

* Changes temporary GBP value for jobtent to -2

* Renames content to expansion

* Updates PR to follow ninjanomnom's guidelines
2021-06-12 14:11:48 -04:00
Celotajs
76fb2e1712 Convert changelog to TGUI (#58593)
This pull request converts the changelog to TGUI. 
Note: Old unused changelog files will be automatically removed on the next changelog run
Why It's Good For The Game

More consistent UI, ability to view all historic logs.
Changelog

cl Celotajs
refactor: Converted the changelog popup to TGUI
/cl
2021-04-27 08:41:56 +12:00
Mothblocks
99075269ff Remove the PR balances part of the webhook (#57299)
The action has been working fine, and every bug its had has been solved not with disabling it, but with me resolving it. There's no reason to keep around the old system anymore. Viva la actions.
2021-03-02 18:21:07 -05:00
Emmett Gaines
c97a360b23 Removes tweak and replaces it with a tag for QoL and Atomic prs (#56890) 2021-02-13 18:45:10 -08:00
AnturK
7eeba95ff2 Skip first whitespace only lines (#56534)
Parser won't crash on first empty lines anymore.
2021-02-03 17:21:39 -05:00
Jordan Brown
96d5f6a85e Use draft pull requests instead of the 'Work In Progress' and 'Needs Review' labels. (#56168) 2021-01-15 16:06:52 -08:00
Qustinnus
8c30077805 You now get 1 GBP for sound and sprite PRs (#55611) 2020-12-28 18:05:03 -08:00
Jared-Fogle
3e7d3f24c0 Don't auto apply unit tests label 2020-12-18 13:30:30 -08:00
Ghom
2793d89f81 Replace deprecated PHP syntax in webhook processor (#55546)
Line 17 of the Run Linters job of the CI Suite workflow:

> PHP Fatal error: Array and string offset access syntax with curly braces is
> no longer supported in ./tools/WebhookProcessor/github_webhook_processor.php
> on line 972

Something, something the PHP version updated to 7.x and dropped curly brackets support.
2020-12-15 17:16:44 -08:00
Jordan Brown
0da36939c9 GBP Tweaks (#55441)
Some rescaling since the stakes are 10x higher now:

    Fix: +3
    Tweak: -2
    Performance: +12
    Priority: High: +15
    Priority: Critical: +20
    Feedback: +2
    Code Improvement: +2

The intention with the formula tweak is for the highest absolute value of the label set (favoring the negative) to be applied.
2020-12-12 07:10:37 +00:00
Jared-Fogle
c96c82df9a Working on unit test related issues grants 6 GBP, automatically add tag (#55199)
Unit tests (a label I recently added) will now give 6 GBP. This label should be added to anything that adds a new unit test, even on features.
2020-11-28 07:37:27 -03:00
Jordan Brown
4e66e88ae8 Nerfs GBP gain (#55038)
Basically no one ever hits the lower limit and people have fucking bank at this point.
2020-11-25 19:12:56 +02:00
Ralph
b25ca28322 Add hook events to header documentation 2020-09-30 23:50:46 -04:00
Kyle Spier-Swenson
abe58568c1 Fix game pr announcer
I forgot a step when I converted this to a proper function.
2019-03-06 21:35:57 -08:00
Kyle Spier-Swenson
1ca637d124 [ready] Adds discord webhook support to the github webhook processor. (#42537)
* Adds discord webhook support to the github webhook processor.

* Fix odd bug

* Add discordwebhook config to secrets with example urls

* Forgot a semicolon

* Remove debug lines

* Hide html comments inside pr bodies.

* Add a bunch of configs to announcement endpoints

include_repos
exclude_repos
exclude_events
announce_secret
announce_unvalidated
embed
no_text

* Add support for those configs.

* Fix minor bug

* Fix no embed messages not working

* Adds spoiler support to discord_sanitize
2019-02-02 02:26:16 -05:00
Jordan Brown
74b54620c8 Test merge candidate is removed on commit push (#36266) 2018-03-10 02:09:06 -06:00
Jordan Brown
0eff6e60b0 Fixes unicode changelog tags (#35905) 2018-02-24 00:03:46 -05:00
Jordan Brown
8d88b6a825 Tests give 3 GBP (#35551) 2018-02-12 13:47:42 -05:00
Jordan Brown
8cbbe65f13 Split up Revert/Removal 2018-02-12 09:21:19 -06:00
JJRcop
f6dc5a82f7 $remove is optional in set_labels 2018-01-27 11:25:03 -05:00
JJRcop
7b3d27c695 Fixes webhook diff selecting partial match
By disabling multiline mode, $ becomes the end of the string, so we can match either \Rdiff or $, so that the lazy modifier must match the rest of the string if it can't find \Rdiff
2018-01-11 14:41:54 -05:00
Jordan Brown
04ebd0eb82 Revert "another test for the hook (#34277)" (#34278)
This reverts commit cd1722af8c.
2018-01-10 12:14:51 -08:00
JJRcop
cd1722af8c another test for the hook (#34277)
i could install php and do this myself i guess?
2018-01-10 12:14:12 -08:00
Jonathan (JJRcop)
07d1f7cf19 Fixes webhook diff generator 2018-01-10 14:39:27 -05:00
Jordan Brown
b911805942 Autotag .github => GitHub (#33965) 2017-12-31 15:25:56 -05:00
Jordan Brown
d740691463 Webhook processor will comment negative PR balances on unlabelled PRs (#32771) 2017-11-16 17:07:45 -05:00
Kyle Spier-Swenson
afc266c3ac Fix webhook
again
2017-11-04 17:18:20 -07:00
JJRcop
63370eff30 Fixes Sounds detection in webhook (#32319) 2017-11-02 14:26:30 -04:00
oranges
a5b4d3011a Huge atmos nerf, tweak buff (#32285)
It's not that different from other subsystems to justify the huge extra point cost, and the people who make atmos related changes have attained a great number of points.

Tweak is for small things that shouldn't affect the point balance either way
2017-11-02 03:15:40 -06:00
JJRcop
204330a32e Contributors can add the ready tag to their own prs (#32062)
* Contributors can add the ready tag

* Webhook synchronize case pushes update at the end

* Fixes pr not getting tagged when opened
2017-11-02 10:01:26 +13:00
Kyle Spier-Swenson
3d6e9a72c1 Fixes the other thing 2017-10-31 13:50:50 -07:00
Kyle Spier-Swenson
7ce48884f2 Fix the error. 2017-10-31 13:44:56 -07:00
Kyle Spier-Swenson
da7d046f98 Improves php logging 2017-10-31 13:31:22 -07:00
JJRcop
f7ed9b5f7e Webhook now comments its diff (#32151)
* Webhook now comments its diff instead of its dump

* Fixes variable access in webhook

* Fixes webhook regex flaw

* Missing semicolon in webhook

well... I don't have much to say to you
this is... i mean... 😀😀😁😁😁😁😂😂😂😂😂😂😂😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭😭

* Fixes anoher webhook regex issue

* Re-adds content to webhook update

* Encapsulates webhook diff in <details>
2017-11-01 09:20:28 +13:00