@intentius/chant-lexicon-forgejo 0.118.1 → 0.120.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "algorithm": "sha256",
3
3
  "artifacts": {
4
- "manifest.json": "fad2f4c5713844049ff8b97a5bbb79681c09f6b4364af34d16133bdd92ae8703",
4
+ "manifest.json": "f9f9f30cceba780fa58e56fec40e7d2673e5286b736c20cd0536b0369695627f",
5
5
  "meta.json": "44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a",
6
6
  "types/index.d.ts": "66204549b2a864ab5489e3f02c1878e73ab4b3c9d938cfb480b66f71543a43de",
7
7
  "rules/delegate-to-github.ts": "1060cda40f4b73d6cca3ba3fa13b80b4886147d4034c88584c2d80c5510dbe5e",
@@ -9,5 +9,5 @@
9
9
  "rules/wfj011.ts": "fcb8bf6685d744af20ad804ce929488257995c74b9a3353b2eacae3768d1c83e",
10
10
  "skills/chant-forgejo.md": "f28d7fb69fb1cfd992496ef41fda0ea5ccd54a29b84ea1c501a44f6a3992c4d5"
11
11
  },
12
- "composite": "b409673daaff0a1e8151abb140ae6b84cfd2a0fa94969dfe269f32985935227c"
12
+ "composite": "91b581061e76a4cf307ff11c711c1076be8d05e3bda1ea26be01935394622afb"
13
13
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forgejo",
3
- "version": "0.118.1",
3
+ "version": "0.120.0",
4
4
  "chantVersion": ">=0.1.0",
5
5
  "namespace": "Forgejo",
6
6
  "intrinsics": [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentius/chant-lexicon-forgejo",
3
- "version": "0.118.1",
3
+ "version": "0.120.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",
@@ -54,8 +54,8 @@
54
54
  },
55
55
  "peerDependencies": {
56
56
  "zod": "^4.3.6",
57
- "@intentius/chant": "^0.118.1",
58
- "@intentius/chant-lexicon-github": "^0.118.1"
57
+ "@intentius/chant": "^0.120.0",
58
+ "@intentius/chant-lexicon-github": "^0.120.0"
59
59
  },
60
60
  "scripts": {
61
61
  "generate": "tsx src/codegen/generate-cli.ts",
@@ -178,3 +178,25 @@ describe("forgejoSerializer — inherits PrPlanReport from github (#1983)", () =
178
178
  expect(result.primary).not.toContain("-f body=@");
179
179
  });
180
180
  });
181
+
182
+ describe("forgejoSerializer — comments from the github declarations (#3667)", () => {
183
+ test("the workflow, job and step comments survive the dialect", () => {
184
+ const workflow = new Workflow({
185
+ comment: "Rendered from ci.ts.",
186
+ name: "CI",
187
+ on: { push: { branches: ["main"] } },
188
+ jobs: {
189
+ build: new Job({
190
+ comment: "One job.",
191
+ "runs-on": "ubuntu-latest",
192
+ steps: [new Step({ uses: "actions/checkout@v4" }), new Step({ comment: "Why it runs.", run: "npm test" })],
193
+ }),
194
+ },
195
+ }) as unknown as Declarable;
196
+ const { primary } = asResult(forgejoSerializer.serialize(new Map([["workflow", workflow]])));
197
+ expect(primary.startsWith("# Rendered from ci.ts.\n\nname: CI\n")).toBe(true);
198
+ expect(primary).toContain(" # One job.\n build:\n runs-on: docker\n");
199
+ expect(primary).toContain(" # Why it runs.\n - run: npm test\n");
200
+ expect(primary).not.toContain("comment:");
201
+ });
202
+ });