mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-11 08:06:33 +01:00
b3dc644735
## About The Pull Request The NO GBP is SOLELY there to test that it automatically assigns the labels. In theory this will work. TL;DR for why it was broken: /tg/ moved the autolabeler stuff to be a part of GBP. ## Why It's Good For The Game Less work for maintainers. ## Proof Of Testing If this automatically adds the No GBP label, in theory this works. <details> <summary>Screenshots/Videos</summary> </details> ## Changelog Nothing player facing.
127 lines
2.7 KiB
JavaScript
127 lines
2.7 KiB
JavaScript
// File Labels
|
|
//
|
|
// Add a label based on if a file is modified in the diff
|
|
//
|
|
// You can optionally set add_only to make the label one-way -
|
|
// if the edit to the file is removed in a later commit,
|
|
// the label will not be removed
|
|
export const file_labels = {
|
|
GitHub: {
|
|
filepaths: [".github/"],
|
|
},
|
|
SQL: {
|
|
filepaths: ["SQL/"],
|
|
},
|
|
"Map Edit": {
|
|
filepaths: ["_maps/"],
|
|
file_extensions: [".dmm"],
|
|
},
|
|
Tools: {
|
|
filepaths: ["tools/"],
|
|
},
|
|
"Config Update": {
|
|
filepaths: ["config/", "code/controllers/configuration/entries/"],
|
|
add_only: true,
|
|
},
|
|
Sprites: {
|
|
filepaths: ["icons/"],
|
|
file_extensions: [".dmi"],
|
|
add_only: true,
|
|
},
|
|
Sound: {
|
|
filepaths: ["sound/"],
|
|
file_extensions: [".ogg"],
|
|
add_only: true,
|
|
},
|
|
UI: {
|
|
filepaths: ["tgui/"],
|
|
add_only: true,
|
|
},
|
|
};
|
|
|
|
// Title Labels
|
|
//
|
|
// Add a label based on keywords in the title
|
|
export const title_labels = {
|
|
Logging: {
|
|
keywords: ["log", "logging"],
|
|
},
|
|
Removal: {
|
|
keywords: ["remove", "delete"],
|
|
},
|
|
Refactor: {
|
|
keywords: ["refactor"],
|
|
},
|
|
"Unit Tests": {
|
|
keywords: ["unit test"],
|
|
},
|
|
"April Fools": {
|
|
keywords: ["[april fools]"],
|
|
},
|
|
"Do Not Merge": {
|
|
keywords: ["[dnm]", "[do not merge]"],
|
|
},
|
|
"GBP: No Update": {
|
|
keywords: ["[no gbp]"],
|
|
},
|
|
"Test Merge Only": {
|
|
keywords: ["[tm only]", "[test merge only]"],
|
|
},
|
|
};
|
|
|
|
// Changelog Labels
|
|
//
|
|
// Adds labels based on keywords in the changelog
|
|
// TODO use the existing changelog parser
|
|
export const changelog_labels = {
|
|
Fix: {
|
|
default_text: "fixed a few things",
|
|
keywords: ["fix", "fixes", "bugfix"],
|
|
},
|
|
"QoL": {
|
|
default_text: "made something easier to use",
|
|
keywords: ["qol"],
|
|
},
|
|
Sound: {
|
|
default_text: "added/modified/removed audio or sound effects",
|
|
keywords: ["sound"],
|
|
},
|
|
Feature: {
|
|
default_text: "Added new mechanics or gameplay changes",
|
|
alt_default_text: "Added more things",
|
|
keywords: ["add", "adds", "rscadd"],
|
|
},
|
|
Removal: {
|
|
default_text: "Removed old things",
|
|
keywords: ["del", "dels", "rscdel"],
|
|
},
|
|
Sprites: {
|
|
default_text: "added/modified/removed some icons or images",
|
|
keywords: ["image"],
|
|
},
|
|
"Grammar and Formatting": {
|
|
default_text: "fixed a few typos",
|
|
keywords: ["typo", "spellcheck"],
|
|
},
|
|
Balance: {
|
|
default_text: "rebalanced something",
|
|
keywords: ["balance"],
|
|
},
|
|
"Code Improvement": {
|
|
default_text: "changed some code",
|
|
keywords: ["code_imp", "code"],
|
|
},
|
|
Refactor: {
|
|
default_text: "refactored some code",
|
|
keywords: ["refactor"],
|
|
},
|
|
"Config Update": {
|
|
default_text: "changed some config setting",
|
|
keywords: ["config"],
|
|
},
|
|
Administration: {
|
|
default_text: "messed with admin stuff",
|
|
keywords: ["admin"],
|
|
},
|
|
};
|