@intentius/chant-lexicon-forgejo 0.13.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The forgejo lexicon's chant audit catalog — metadata for its post-synth rules
|
|
3
|
+
* (WFJ Forgejo rules). Contributed via forgejoPlugin.auditCatalog() (#687).
|
|
4
|
+
*/
|
|
5
|
+
import { type RuleMeta } from "@intentius/chant/audit/catalog";
|
|
6
|
+
export declare const forgejoAuditCatalog: Record<string, RuleMeta>;
|
|
7
|
+
//# sourceMappingURL=audit-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit-catalog.d.ts","sourceRoot":"","sources":["../../src/lint/audit-catalog.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1E,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAGxD,CAAC"}
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAoC,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAoC,MAAM,0BAA0B,CAAC;AAYhG,eAAO,MAAM,aAAa,EAAE,aAuJ3B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-forgejo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Forgejo / Codeberg / Gitea Actions lexicon for chant — a thin GitHub Actions dialect",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://intentius.io/chant",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"typescript": "^5.9.3"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@intentius/chant": "^0.
|
|
57
|
-
"@intentius/chant-lexicon-github": "^0.
|
|
56
|
+
"@intentius/chant": "^0.15.0",
|
|
57
|
+
"@intentius/chant-lexicon-github": "^0.15.0"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json && find dist -type f \\( -name \"*.js\" -o -name \"*.js.map\" \\) -delete",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The forgejo lexicon's chant audit catalog — metadata for its post-synth rules
|
|
3
|
+
* (WFJ Forgejo rules). Contributed via forgejoPlugin.auditCatalog() (#687).
|
|
4
|
+
*/
|
|
5
|
+
import { auditRule, type RuleMeta } from "@intentius/chant/audit/catalog";
|
|
6
|
+
|
|
7
|
+
export const forgejoAuditCatalog: Record<string, RuleMeta> = {
|
|
8
|
+
WFJ010: auditRule("WFJ010", "merge-worthy", "guidance", "Unresolved action reference on Forgejo", "Use an action reference Forgejo can resolve (full URL or a mirrored action).", { category: "correctness" }),
|
|
9
|
+
WFJ011: auditRule("WFJ011", "merge-worthy", "guidance", "GitHub-hosted runner label with no Forgejo equivalent", "Use a runner label your Forgejo instance provides.", { category: "correctness" }),
|
|
10
|
+
};
|
package/src/plugin.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
import type { LexiconPlugin, InitTemplateSet, MigrationSource } from "@intentius/chant/lexicon";
|
|
12
12
|
import { postSynthChecks as postSynthCheckList } from "./lint/post-synth";
|
|
13
|
+
import { forgejoAuditCatalog } from "./lint/audit-catalog";
|
|
13
14
|
import { createSkillsLoader, createDiffTool } from "@intentius/chant/lexicon-plugin-helpers";
|
|
14
15
|
import { join, dirname } from "path";
|
|
15
16
|
import { fileURLToPath } from "url";
|
|
@@ -21,6 +22,7 @@ const reuseNote =
|
|
|
21
22
|
|
|
22
23
|
export const forgejoPlugin: LexiconPlugin = {
|
|
23
24
|
name: "forgejo",
|
|
25
|
+
auditCatalog: () => forgejoAuditCatalog,
|
|
24
26
|
serializer: forgejoSerializer,
|
|
25
27
|
|
|
26
28
|
initTemplates(template?: string): InitTemplateSet {
|