@xn-intenton-z2a/agentic-lib 7.1.13 → 7.1.14
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/package.json
CHANGED
|
@@ -32,8 +32,7 @@ env:
|
|
|
32
32
|
configPath: ".github/agentic-lib/agents/agentic-lib.yml"
|
|
33
33
|
|
|
34
34
|
jobs:
|
|
35
|
-
maintain
|
|
36
|
-
if: inputs.step == 'all' || inputs.step == 'features' || github.event_name == 'schedule'
|
|
35
|
+
maintain:
|
|
37
36
|
runs-on: ubuntu-latest
|
|
38
37
|
steps:
|
|
39
38
|
- uses: actions/checkout@v4
|
|
@@ -48,14 +47,18 @@ jobs:
|
|
|
48
47
|
working-directory: .github/agentic-lib/actions/agentic-step
|
|
49
48
|
run: npm ci
|
|
50
49
|
|
|
51
|
-
- name: Load config
|
|
52
|
-
id:
|
|
50
|
+
- name: Load config
|
|
51
|
+
id: config
|
|
53
52
|
run: |
|
|
54
53
|
CONFIG="${{ env.configPath }}"
|
|
55
54
|
FEATURES=$(yq -r '.paths.featuresPath.path // ".github/agentic-lib/features/"' "$CONFIG")
|
|
56
|
-
|
|
55
|
+
LIBRARY=$(yq -r '.paths.libraryDocumentsPath.path // "library/"' "$CONFIG")
|
|
56
|
+
SOURCES=$(yq -r '.paths.librarySourcesFilepath.path // "SOURCES.md"' "$CONFIG")
|
|
57
|
+
echo "featuresWritablePaths=${FEATURES}" >> $GITHUB_OUTPUT
|
|
58
|
+
echo "libraryWritablePaths=${LIBRARY};${SOURCES}" >> $GITHUB_OUTPUT
|
|
57
59
|
|
|
58
60
|
- name: Maintain features
|
|
61
|
+
if: inputs.step == 'all' || inputs.step == 'features' || github.event_name == 'schedule'
|
|
59
62
|
uses: ./.github/agentic-lib/actions/agentic-step
|
|
60
63
|
env:
|
|
61
64
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -64,40 +67,10 @@ jobs:
|
|
|
64
67
|
task: "maintain-features"
|
|
65
68
|
config: ${{ env.configPath }}
|
|
66
69
|
instructions: ".github/agentic-lib/agents/agent-maintain-features.md"
|
|
67
|
-
writable-paths: ${{ steps.
|
|
68
|
-
|
|
69
|
-
- name: Commit and push changes
|
|
70
|
-
uses: ./.github/agentic-lib/actions/commit-if-changed
|
|
71
|
-
with:
|
|
72
|
-
commit-message: "agentic-step: maintain-features"
|
|
73
|
-
push-ref: ${{ github.ref_name }}
|
|
74
|
-
|
|
75
|
-
maintain-library:
|
|
76
|
-
needs: maintain-features
|
|
77
|
-
if: always() && (inputs.step == 'all' || inputs.step == 'library' || github.event_name == 'schedule')
|
|
78
|
-
runs-on: ubuntu-latest
|
|
79
|
-
steps:
|
|
80
|
-
- uses: actions/checkout@v4
|
|
81
|
-
with:
|
|
82
|
-
fetch-depth: 0
|
|
83
|
-
|
|
84
|
-
- uses: actions/setup-node@v4
|
|
85
|
-
with:
|
|
86
|
-
node-version: "24"
|
|
87
|
-
|
|
88
|
-
- name: Install agentic-step dependencies
|
|
89
|
-
working-directory: .github/agentic-lib/actions/agentic-step
|
|
90
|
-
run: npm ci
|
|
91
|
-
|
|
92
|
-
- name: Load config for library
|
|
93
|
-
id: library-config
|
|
94
|
-
run: |
|
|
95
|
-
CONFIG="${{ env.configPath }}"
|
|
96
|
-
LIBRARY=$(yq -r '.paths.libraryDocumentsPath.path // "library/"' "$CONFIG")
|
|
97
|
-
SOURCES=$(yq -r '.paths.librarySourcesFilepath.path // "SOURCES.md"' "$CONFIG")
|
|
98
|
-
echo "writablePaths=${LIBRARY};${SOURCES}" >> $GITHUB_OUTPUT
|
|
70
|
+
writable-paths: ${{ steps.config.outputs.featuresWritablePaths }}
|
|
99
71
|
|
|
100
72
|
- name: Maintain library
|
|
73
|
+
if: inputs.step == 'all' || inputs.step == 'library' || github.event_name == 'schedule'
|
|
101
74
|
uses: ./.github/agentic-lib/actions/agentic-step
|
|
102
75
|
env:
|
|
103
76
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -106,10 +79,10 @@ jobs:
|
|
|
106
79
|
task: "maintain-library"
|
|
107
80
|
config: ${{ env.configPath }}
|
|
108
81
|
instructions: ".github/agentic-lib/agents/agent-maintain-library.md"
|
|
109
|
-
writable-paths: ${{ steps.
|
|
82
|
+
writable-paths: ${{ steps.config.outputs.libraryWritablePaths }}
|
|
110
83
|
|
|
111
84
|
- name: Commit and push changes
|
|
112
85
|
uses: ./.github/agentic-lib/actions/commit-if-changed
|
|
113
86
|
with:
|
|
114
|
-
commit-message: "agentic-step: maintain
|
|
87
|
+
commit-message: "agentic-step: maintain features and library"
|
|
115
88
|
push-ref: ${{ github.ref_name }}
|
|
@@ -12,6 +12,11 @@ run-name: "ci-automerge [${{ github.ref_name }}]"
|
|
|
12
12
|
on:
|
|
13
13
|
pull_request:
|
|
14
14
|
check_suite:
|
|
15
|
+
workflow_run:
|
|
16
|
+
workflows:
|
|
17
|
+
- test
|
|
18
|
+
types:
|
|
19
|
+
- completed
|
|
15
20
|
workflow_dispatch:
|
|
16
21
|
workflow_call:
|
|
17
22
|
inputs:
|
|
@@ -148,7 +153,12 @@ jobs:
|
|
|
148
153
|
|
|
149
154
|
ls:
|
|
150
155
|
needs: label
|
|
151
|
-
if:
|
|
156
|
+
if: >-
|
|
157
|
+
github.event_name == 'schedule' ||
|
|
158
|
+
github.event_name == 'workflow_dispatch' ||
|
|
159
|
+
github.event_name == 'workflow_run' ||
|
|
160
|
+
inputs.workflow == 'true' ||
|
|
161
|
+
github.event_name == 'workflow_call'
|
|
152
162
|
runs-on: ubuntu-latest
|
|
153
163
|
steps:
|
|
154
164
|
- name: Determine pull request number
|
|
@@ -359,6 +369,9 @@ jobs:
|
|
|
359
369
|
message += ` Failed to delete branch: ${error.message}`;
|
|
360
370
|
}
|
|
361
371
|
prMerged = 'false';
|
|
372
|
+
} else if (pullRequest.mergeable_state === 'unstable') {
|
|
373
|
+
message = `PR #${pullNumber} checks still running (mergeable_state: unstable). Will retry when test workflow completes.`;
|
|
374
|
+
prMerged = 'false';
|
|
362
375
|
} else if (pullRequest.mergeable === null) {
|
|
363
376
|
message = `PR #${pullNumber} does not yet have a value for mergeability.`;
|
|
364
377
|
prMerged = 'false';
|