Commit Graph

16 Commits

Author SHA1 Message Date
CanbiZ (MickLesk)
556b9c4653 pocketbase-bot: accept the var_ names and two missing fields (#17305)
* pocketbase-bot: accept the var_ names and two missing fields

cpu, ram, hdd, os and version were already reachable, but only under
the PocketBase names. People type what the ct scripts call them, so
"/pocketbase <slug> var_ram=4096" was rejected as an unknown field
while "ram=4096" worked. The bot already carried the mapping as
RESOURCE_TO_CT_VAR, for display only.

Normalise the keys in parseKVPairs, so both the field=value path and
the method path accept them, along with disk and memory as the other
two names people reach for. Matching is case-insensitive.

pin_reason and last_update_commit exist on the record and are worth
editing, but were not in ALLOWED_FIELDS. slug, script_created and
script_updated stay out: the first is the key the command looks the
record up by, the other two belong to the timestamp workflow. notes and
install_methods keep their own subcommands.

* pocketbase-bot: write the sync PR against the PR template

The sync PR body had its own Summary and Source headings, so the
autolabeler found none of the template checkboxes it looks for and the
PR came out with nothing but "needs triage". It also never referenced
the issue the command came from.

Write the body the way the template expects, with the Website update
box ticked, which is what a PocketBase sync is. Tested thoroughly stays
unticked and Tested on says not tested, because nothing here was run;
close-invalid-pr-template skips bot authors, so that costs nothing.

Reference the triggering number as Fixes when the command came from an
issue and as a plain mention when it came from a PR comment, where
Fixes would point the PR at itself. issue_comment carries both under
github.event.issue, so the new IS_PR_COMMENT tells them apart.

* ci: stop the .app header PR being closed as a new script

allowedBots carried "community-scripts-pr-app" but not the
"[bot]"-suffixed name GitHub actually reports, and the check is an exact
match, so the exemption never applied to it. push-app-to-main is listed
both ways; this one was not. PR #17304 was closed as an untested new
script submission because of it.

generate-app-headers.sh empties ct/headers, tools/headers and
vm/headers and writes them again, so every run reports those files as
added. That is what the autolabeler's new-script rule looks for, and
the vm rule matched vm/headers too. Exclude the header directories from
both, and skip them in the close workflow's own added-file fallback, so
the label cannot come back by another route.

Checked against minimatch with the shipped config: header files get
neither label, ct/*.sh, install/*.sh and vm/*.sh still get theirs.

* pocketbase-bot: label the sync PR as a bugfix

The sync corrects CT defaults that no longer match the PocketBase
record, so bugfix describes it better than website update, which is
meant for metadata changes on the site itself.
2026-09-16 13:27:27 +02:00
CanbiZ
0c2521c05e chore(github): improve PR template and cleanup obsolete references | move contribution guide (#9700) 2025-12-05 23:08:58 +01:00
CanbiZ
acc500fe9d remove breaking change in autolabler 2025-07-09 14:28:44 +02:00
CanbiZ
2ff778db9a Github: AutoLabler | ChangeLog (Refactor) (#5868) 2025-07-09 14:09:11 +02:00
CanbiZ
e58ad9237a Improve AutoLabler 2025-07-07 10:45:49 +02:00
CanbiZ
b5012c4225 Feat: Quorum Status (#5278) 2025-06-19 18:50:23 +02:00
Michel Roegl-Brunner
e6dd7ac5a1 Update pr template and WF (#3200)
* update pr template and WF

* update pr template and WF

* update pr template and WF
2025-03-18 11:54:58 +01:00
Michel Roegl-Brunner
35d5507b38 Refactor Json Location (#3184) 2025-03-18 10:29:14 +01:00
Michel Roegl-Brunner
46462a790c [gh] Furhter Impove Changelog Workflow (#2655)
* Impove Workflow

* Impove Workflow
2025-02-26 14:38:35 +01:00
Michel Roegl-Brunner
3401b76c44 Updated Changelog Workflow (#2632) 2025-02-25 11:27:31 +01:00
Michel Roegl-Brunner
029332fb51 Revert "[gh] Update Changelog Workflow (#2621)" (#2630)
This reverts commit 893bff1b59.
2025-02-25 09:20:09 +01:00
Michel Roegl-Brunner
893bff1b59 [gh] Update Changelog Workflow (#2621)
* Update Workflow

* Update Workflow
2025-02-25 08:55:17 +01:00
Michel Roegl-Brunner
70b5c62c9f Changes to workflow files (#2204)
Co-authored-by: Rögl-Brunner Michel <Michel.Roegl-brunner@htl-braunau.int>
2025-02-10 11:15:28 +01:00
Michel Roegl-Brunner
2551bf6f9f [Workflow]Update autolabeler-config.json (#1525) 2025-01-16 13:44:24 +01:00
Håvard Gjøby Thom
b21de8a736 Small fix autolabeler (#297) 2024-11-17 11:31:13 +01:00
Håvard Gjøby Thom
f12b97c383 Add autolabeler github workflow (#247) 2024-11-14 14:21:41 +01:00