@intentius/chant-lexicon-forgejo 0.105.1 → 0.106.1
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.
package/dist/integrity.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"algorithm": "sha256",
|
|
3
3
|
"artifacts": {
|
|
4
|
-
"manifest.json": "
|
|
4
|
+
"manifest.json": "95e25f88b60f33d218f764470da8c67db7be1d3ea2b8281d886b2b292e9f643f",
|
|
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": "a1a560429db736c187e0b34cf8dd9efc6ad771afefcbf6f802d160d3d5274257"
|
|
11
11
|
},
|
|
12
|
-
"composite": "
|
|
12
|
+
"composite": "2730d8d463e46849a79a58bc89e6be14149429b95c72faf413139f6ef9b751a4"
|
|
13
13
|
}
|
package/dist/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentius/chant-lexicon-forgejo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.106.1",
|
|
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.
|
|
58
|
-
"@intentius/chant-lexicon-github": "^0.
|
|
57
|
+
"@intentius/chant": "^0.106.1",
|
|
58
|
+
"@intentius/chant-lexicon-github": "^0.106.1"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"generate": "tsx src/codegen/generate-cli.ts",
|
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
plan:
|
|
16
16
|
if: github.event_name == 'pull_request'
|
|
17
17
|
runs-on: docker
|
|
18
|
-
container: node:22
|
|
18
|
+
container: node:22
|
|
19
19
|
permissions:
|
|
20
20
|
contents: read
|
|
21
21
|
pull-requests: write
|
|
@@ -24,6 +24,7 @@ jobs:
|
|
|
24
24
|
- uses: https://code.forgejo.org/actions/checkout@v7
|
|
25
25
|
with:
|
|
26
26
|
fetch-depth: 0
|
|
27
|
+
- run: command -v tofu >/dev/null 2>&1 || (curl -fsSL https://get.opentofu.org/install-opentofu.sh -o /tmp/install-opentofu.sh && sh /tmp/install-opentofu.sh --install-method standalone)
|
|
27
28
|
- name: Plan the members this pull request reaches
|
|
28
29
|
env:
|
|
29
30
|
BASE_SHA: '${{ github.event.pull_request.base.sha }}'
|
|
@@ -41,7 +42,7 @@ jobs:
|
|
|
41
42
|
apply:
|
|
42
43
|
if: github.event_name == 'push'
|
|
43
44
|
runs-on: docker
|
|
44
|
-
container: node:22
|
|
45
|
+
container: node:22
|
|
45
46
|
concurrency:
|
|
46
47
|
group: chant-apply-prod
|
|
47
48
|
cancel-in-progress: false
|
|
@@ -53,11 +54,24 @@ jobs:
|
|
|
53
54
|
- uses: https://code.forgejo.org/actions/checkout@v7
|
|
54
55
|
with:
|
|
55
56
|
fetch-depth: 0
|
|
57
|
+
- run: command -v tofu >/dev/null 2>&1 || (curl -fsSL https://get.opentofu.org/install-opentofu.sh -o /tmp/install-opentofu.sh && sh /tmp/install-opentofu.sh --install-method standalone)
|
|
58
|
+
- name: Restore the record of an earlier attempt at this commit
|
|
59
|
+
uses: https://code.forgejo.org/actions/cache/restore@v4
|
|
60
|
+
with:
|
|
61
|
+
path: .chant/pr-resume/pr-apply.json
|
|
62
|
+
key: chant-apply-prod-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}
|
|
63
|
+
restore-keys: chant-apply-prod-${{ github.sha }}-
|
|
56
64
|
- name: Apply the plan a reviewer approved
|
|
57
65
|
env:
|
|
58
66
|
BASE_SHA: '${{ github.event.before }}'
|
|
59
67
|
GITHUB_TOKEN: '${{ github.token }}'
|
|
60
|
-
run: chant components pr-apply --base "$BASE_SHA" --env prod --gate pr-apply --output .chant/pr --forge forgejo --require-review
|
|
68
|
+
run: chant components pr-apply --base "$BASE_SHA" --env prod --gate pr-apply --output .chant/pr --forge forgejo --require-review --resume .chant/pr-resume/pr-apply.json
|
|
69
|
+
- name: Keep the record for a re-run
|
|
70
|
+
if: always()
|
|
71
|
+
uses: https://code.forgejo.org/actions/cache/save@v4
|
|
72
|
+
with:
|
|
73
|
+
path: .chant/pr-resume/pr-apply.json
|
|
74
|
+
key: chant-apply-prod-${{ github.sha }}-${{ github.run_id }}-${{ github.run_attempt }}
|
|
61
75
|
- name: Keep the apply report
|
|
62
76
|
if: always()
|
|
63
77
|
uses: https://code.forgejo.org/actions/upload-artifact@v4
|
|
@@ -45,6 +45,12 @@ describe("the Forgejo pull-request workflow", () => {
|
|
|
45
45
|
expect(result.yaml).toMatch(/^\s+permissions:/m);
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
+
test("the apply keeps its resume record in the runner's cache, through the Forgejo mirror of actions/cache (#3543)", () => {
|
|
49
|
+
expect(result.yaml).toContain("uses: https://code.forgejo.org/actions/cache/restore@v4");
|
|
50
|
+
expect(result.yaml).toContain("uses: https://code.forgejo.org/actions/cache/save@v4");
|
|
51
|
+
expect(result.yaml).toContain("--forge forgejo --require-review --resume .chant/pr-resume/pr-apply.json");
|
|
52
|
+
});
|
|
53
|
+
|
|
48
54
|
test.skipIf(!hasActionlint())("passes actionlint, less the runner label and actions by URL", () => {
|
|
49
55
|
const dir = mkdtempSync(join(tmpdir(), "chant-actionlint-"));
|
|
50
56
|
try {
|