poe-code 3.0.144 → 3.0.146
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/cli/commands/experiment.js +9 -8
- package/dist/cli/commands/experiment.js.map +1 -1
- package/dist/cli/commands/pipeline.js +15 -1
- package/dist/cli/commands/pipeline.js.map +1 -1
- package/dist/cli/commands/spawn.js +3 -3
- package/dist/cli/commands/spawn.js.map +1 -1
- package/dist/index.js +3660 -335
- package/dist/index.js.map +4 -4
- package/dist/providers/claude-code.js +27 -33
- package/dist/providers/claude-code.js.map +4 -4
- package/dist/providers/codex.js +27 -33
- package/dist/providers/codex.js.map +4 -4
- package/dist/providers/kimi.js +27 -33
- package/dist/providers/kimi.js.map +4 -4
- package/dist/providers/opencode.js +27 -33
- package/dist/providers/opencode.js.map +4 -4
- package/dist/workflow-templates/fix-vulnerabilities.caller.yml +18 -0
- package/dist/workflow-templates/fix-vulnerabilities.ejected.yml +36 -0
- package/dist/workflow-templates/github-issue-comment-created.caller.yml +25 -0
- package/dist/workflow-templates/github-issue-comment-created.ejected.yml +155 -0
- package/dist/workflow-templates/github-issue-opened.caller.yml +20 -0
- package/dist/workflow-templates/github-issue-opened.ejected.yml +42 -0
- package/dist/workflow-templates/github-pull-request-opened.caller.yml +19 -0
- package/dist/workflow-templates/github-pull-request-opened.ejected.yml +37 -0
- package/dist/workflow-templates/github-pull-request-synchronized.caller.yml +17 -0
- package/dist/workflow-templates/github-pull-request-synchronized.ejected.yml +35 -0
- package/dist/workflow-templates/update-dependencies.caller.yml +17 -0
- package/dist/workflow-templates/update-dependencies.ejected.yml +35 -0
- package/dist/workflow-templates/update-documentation.caller.yml +17 -0
- package/dist/workflow-templates/update-documentation.ejected.yml +36 -0
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: 'Fix Vulnerabilities'
|
|
2
|
+
on:
|
|
3
|
+
schedule:
|
|
4
|
+
- cron: '0 6 * * 1'
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
|
|
7
|
+
# Keep these permissions in sync with the reusable workflow referenced below.
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
pull-requests: write
|
|
11
|
+
security-events: read
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
run:
|
|
15
|
+
uses: __UPSTREAM_REPO__/.github/workflows/gh-fix-vulnerabilities.yml@main
|
|
16
|
+
secrets: inherit
|
|
17
|
+
with:
|
|
18
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: 'Fix Vulnerabilities'
|
|
2
|
+
on:
|
|
3
|
+
schedule:
|
|
4
|
+
- cron: '0 6 * * 1'
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
run:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
contents: write
|
|
12
|
+
pull-requests: write
|
|
13
|
+
security-events: read
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/create-github-app-token@v1
|
|
16
|
+
id: app-token
|
|
17
|
+
with:
|
|
18
|
+
app-id: ${{ secrets.POE_CODE_AGENT_APP_ID }}
|
|
19
|
+
private-key: ${{ secrets.POE_CODE_AGENT_PRIVATE_KEY }}
|
|
20
|
+
- uses: actions/checkout@v4
|
|
21
|
+
with:
|
|
22
|
+
token: ${{ steps.app-token.outputs.token }}
|
|
23
|
+
- uses: actions/setup-node@v4
|
|
24
|
+
with:
|
|
25
|
+
node-version: 20
|
|
26
|
+
- run: npm install -g poe-code@latest
|
|
27
|
+
- run: poe-code github-workflows prepare fix-vulnerabilities
|
|
28
|
+
env:
|
|
29
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
30
|
+
POE_API_KEY: ${{ secrets.POE_API_KEY }}
|
|
31
|
+
- run: poe-code github-workflows fix-vulnerabilities --yes
|
|
32
|
+
env:
|
|
33
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
34
|
+
POE_API_KEY: ${{ secrets.POE_API_KEY }}
|
|
35
|
+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
36
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
name: 'GitHub: Issue Comment Created'
|
|
2
|
+
on:
|
|
3
|
+
issue_comment:
|
|
4
|
+
types: [created]
|
|
5
|
+
|
|
6
|
+
# Keep these permissions in sync with the reusable workflow referenced below.
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
issues: write
|
|
10
|
+
pull-requests: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
run:
|
|
14
|
+
uses: __UPSTREAM_REPO__/.github/workflows/gh-github-issue-comment-created.yml@main
|
|
15
|
+
secrets: inherit
|
|
16
|
+
with:
|
|
17
|
+
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
|
18
|
+
ISSUE_STATE: ${{ github.event.issue.state }}
|
|
19
|
+
COMMENT_IS_PULL_REQUEST: ${{ github.event.issue.pull_request != null }}
|
|
20
|
+
COMMENT_ID: ${{ github.event.comment.id }}
|
|
21
|
+
COMMENT_BODY: ${{ github.event.comment.body }}
|
|
22
|
+
COMMENT_AUTHOR: ${{ github.event.comment.user.login }}
|
|
23
|
+
COMMENT_AUTHOR_ASSOCIATION: ${{ github.event.comment.author_association }}
|
|
24
|
+
COMMENT_USER_TYPE: ${{ github.event.comment.user.type }}
|
|
25
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
name: 'GitHub: Issue Comment Created'
|
|
2
|
+
on:
|
|
3
|
+
issue_comment:
|
|
4
|
+
types: [created]
|
|
5
|
+
|
|
6
|
+
concurrency:
|
|
7
|
+
group: ${{ github.workflow }}-${{ github.event.issue.number }}
|
|
8
|
+
cancel-in-progress: true
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
guard:
|
|
12
|
+
if: github.event.issue.state == 'open' && github.event.comment.user.type != 'Bot'
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
env:
|
|
15
|
+
OUTPUT_FORMAT: terminal
|
|
16
|
+
outputs:
|
|
17
|
+
should_run: ${{ steps.guard_result.outputs.should_run }}
|
|
18
|
+
permissions:
|
|
19
|
+
contents: read
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/create-github-app-token@v1
|
|
22
|
+
id: app-token
|
|
23
|
+
with:
|
|
24
|
+
app-id: ${{ secrets.POE_CODE_AGENT_APP_ID }}
|
|
25
|
+
private-key: ${{ secrets.POE_CODE_AGENT_PRIVATE_KEY }}
|
|
26
|
+
- uses: actions/checkout@v4
|
|
27
|
+
with:
|
|
28
|
+
token: ${{ steps.app-token.outputs.token }}
|
|
29
|
+
- uses: actions/setup-node@v4
|
|
30
|
+
with:
|
|
31
|
+
node-version: 20
|
|
32
|
+
- run: npm install -g poe-code@latest
|
|
33
|
+
- id: allow_check
|
|
34
|
+
continue-on-error: true
|
|
35
|
+
run: poe-code github-workflows require-user-allow github-issue-comment-created
|
|
36
|
+
env:
|
|
37
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
38
|
+
COMMENT_AUTHOR_ASSOCIATION: ${{ github.event.comment.author_association }}
|
|
39
|
+
- id: prefix_check
|
|
40
|
+
continue-on-error: true
|
|
41
|
+
run: poe-code github-workflows require-comment-prefix github-issue-comment-created
|
|
42
|
+
env:
|
|
43
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
44
|
+
COMMENT_BODY: ${{ github.event.comment.body }}
|
|
45
|
+
- id: guard_result
|
|
46
|
+
run: |
|
|
47
|
+
if [ "${{ steps.allow_check.outcome }}" = "success" ] && [ "${{ steps.prefix_check.outcome }}" = "success" ]; then
|
|
48
|
+
echo "should_run=true" >> "$GITHUB_OUTPUT"
|
|
49
|
+
else
|
|
50
|
+
echo "should_run=false" >> "$GITHUB_OUTPUT"
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
run:
|
|
54
|
+
needs: guard
|
|
55
|
+
if: needs.guard.outputs.should_run == 'true'
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
env:
|
|
58
|
+
OUTPUT_FORMAT: terminal
|
|
59
|
+
permissions:
|
|
60
|
+
contents: write
|
|
61
|
+
issues: write
|
|
62
|
+
pull-requests: write
|
|
63
|
+
steps:
|
|
64
|
+
- uses: actions/create-github-app-token@v1
|
|
65
|
+
id: app-token
|
|
66
|
+
with:
|
|
67
|
+
app-id: ${{ secrets.POE_CODE_AGENT_APP_ID }}
|
|
68
|
+
private-key: ${{ secrets.POE_CODE_AGENT_PRIVATE_KEY }}
|
|
69
|
+
- uses: actions/checkout@v4
|
|
70
|
+
with:
|
|
71
|
+
token: ${{ steps.app-token.outputs.token }}
|
|
72
|
+
- uses: actions/setup-node@v4
|
|
73
|
+
with:
|
|
74
|
+
node-version: 20
|
|
75
|
+
- run: npm install -g poe-code@latest
|
|
76
|
+
- id: pr_context
|
|
77
|
+
uses: actions/github-script@v7
|
|
78
|
+
with:
|
|
79
|
+
github-token: ${{ steps.app-token.outputs.token }}
|
|
80
|
+
script: |
|
|
81
|
+
if ("${{ github.event.issue.pull_request != null }}" !== "true") {
|
|
82
|
+
core.setOutput("pr_number", "");
|
|
83
|
+
core.setOutput("pr_title", "");
|
|
84
|
+
core.setOutput("pr_author", "");
|
|
85
|
+
core.setOutput("head_ref", "");
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
const response = await github.rest.pulls.get({
|
|
90
|
+
owner: context.repo.owner,
|
|
91
|
+
repo: context.repo.repo,
|
|
92
|
+
pull_number: Number("${{ github.event.issue.number }}")
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
const headRepo = response.data.head.repo?.full_name ?? "";
|
|
96
|
+
const currentRepo = `${context.repo.owner}/${context.repo.repo}`;
|
|
97
|
+
const isSameRepo = headRepo === currentRepo;
|
|
98
|
+
|
|
99
|
+
core.setOutput("pr_number", String(response.data.number ?? ""));
|
|
100
|
+
core.setOutput("pr_title", response.data.title ?? "");
|
|
101
|
+
core.setOutput("pr_author", response.data.user?.login ?? "");
|
|
102
|
+
core.setOutput("head_ref", isSameRepo ? (response.data.head.ref ?? "") : "");
|
|
103
|
+
- id: add_in_progress_reaction
|
|
104
|
+
continue-on-error: true
|
|
105
|
+
uses: actions/github-script@v7
|
|
106
|
+
with:
|
|
107
|
+
github-token: ${{ steps.app-token.outputs.token }}
|
|
108
|
+
script: |
|
|
109
|
+
const response = await github.rest.reactions.createForIssueComment({
|
|
110
|
+
owner: context.repo.owner,
|
|
111
|
+
repo: context.repo.repo,
|
|
112
|
+
comment_id: Number("${{ github.event.comment.id }}"),
|
|
113
|
+
content: "eyes"
|
|
114
|
+
});
|
|
115
|
+
core.setOutput("reaction_id", String(response.data.id ?? ""));
|
|
116
|
+
- if: steps.pr_context.outputs.head_ref != ''
|
|
117
|
+
id: checkout_pr_branch
|
|
118
|
+
uses: actions/checkout@v4
|
|
119
|
+
with:
|
|
120
|
+
ref: ${{ steps.pr_context.outputs.head_ref }}
|
|
121
|
+
token: ${{ steps.app-token.outputs.token }}
|
|
122
|
+
- if: steps.pr_context.outputs.head_ref == ''
|
|
123
|
+
id: checkout_default_branch
|
|
124
|
+
uses: actions/checkout@v4
|
|
125
|
+
with:
|
|
126
|
+
token: ${{ steps.app-token.outputs.token }}
|
|
127
|
+
- run: poe-code github-workflows prepare github-issue-comment-created
|
|
128
|
+
env:
|
|
129
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
130
|
+
POE_API_KEY: ${{ secrets.POE_API_KEY }}
|
|
131
|
+
- run: poe-code github-workflows github-issue-comment-created --yes
|
|
132
|
+
env:
|
|
133
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
134
|
+
POE_API_KEY: ${{ secrets.POE_API_KEY }}
|
|
135
|
+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
136
|
+
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
|
137
|
+
PR_NUMBER: ${{ steps.pr_context.outputs.pr_number }}
|
|
138
|
+
PR_TITLE: ${{ steps.pr_context.outputs.pr_title }}
|
|
139
|
+
PR_AUTHOR: ${{ steps.pr_context.outputs.pr_author }}
|
|
140
|
+
COMMENT_BODY: ${{ github.event.comment.body }}
|
|
141
|
+
COMMENT_AUTHOR: ${{ github.event.comment.user.login }}
|
|
142
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
143
|
+
- id: remove_in_progress_reaction
|
|
144
|
+
if: always() && steps.add_in_progress_reaction.outputs.reaction_id != ''
|
|
145
|
+
continue-on-error: true
|
|
146
|
+
uses: actions/github-script@v7
|
|
147
|
+
with:
|
|
148
|
+
github-token: ${{ steps.app-token.outputs.token }}
|
|
149
|
+
script: |
|
|
150
|
+
await github.rest.reactions.deleteForIssueComment({
|
|
151
|
+
owner: context.repo.owner,
|
|
152
|
+
repo: context.repo.repo,
|
|
153
|
+
comment_id: Number("${{ github.event.comment.id }}"),
|
|
154
|
+
reaction_id: Number("${{ steps.add_in_progress_reaction.outputs.reaction_id }}")
|
|
155
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
name: 'GitHub: Issue Opened'
|
|
2
|
+
on:
|
|
3
|
+
issues:
|
|
4
|
+
types: [opened]
|
|
5
|
+
|
|
6
|
+
# Keep these permissions in sync with the reusable workflow referenced below.
|
|
7
|
+
permissions:
|
|
8
|
+
contents: write
|
|
9
|
+
issues: write
|
|
10
|
+
pull-requests: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
run:
|
|
14
|
+
uses: __UPSTREAM_REPO__/.github/workflows/gh-github-issue-opened.yml@main
|
|
15
|
+
secrets: inherit
|
|
16
|
+
with:
|
|
17
|
+
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
|
18
|
+
ISSUE_TITLE: ${{ github.event.issue.title }}
|
|
19
|
+
ISSUE_BODY: ${{ github.event.issue.body }}
|
|
20
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: 'GitHub: Issue Opened'
|
|
2
|
+
on:
|
|
3
|
+
issues:
|
|
4
|
+
types: [opened]
|
|
5
|
+
|
|
6
|
+
concurrency:
|
|
7
|
+
group: ${{ github.workflow }}-${{ github.event.issue.number }}
|
|
8
|
+
cancel-in-progress: true
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
run:
|
|
12
|
+
runs-on: ubuntu-latest
|
|
13
|
+
permissions:
|
|
14
|
+
contents: write
|
|
15
|
+
issues: write
|
|
16
|
+
pull-requests: write
|
|
17
|
+
steps:
|
|
18
|
+
- uses: actions/create-github-app-token@v1
|
|
19
|
+
id: app-token
|
|
20
|
+
with:
|
|
21
|
+
app-id: ${{ secrets.POE_CODE_AGENT_APP_ID }}
|
|
22
|
+
private-key: ${{ secrets.POE_CODE_AGENT_PRIVATE_KEY }}
|
|
23
|
+
- uses: actions/checkout@v4
|
|
24
|
+
with:
|
|
25
|
+
token: ${{ steps.app-token.outputs.token }}
|
|
26
|
+
- uses: actions/setup-node@v4
|
|
27
|
+
with:
|
|
28
|
+
node-version: 20
|
|
29
|
+
- run: npm install -g poe-code@latest
|
|
30
|
+
- run: poe-code github-workflows prepare github-issue-opened
|
|
31
|
+
env:
|
|
32
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
33
|
+
POE_API_KEY: ${{ secrets.POE_API_KEY }}
|
|
34
|
+
- run: poe-code github-workflows github-issue-opened --yes
|
|
35
|
+
env:
|
|
36
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
37
|
+
POE_API_KEY: ${{ secrets.POE_API_KEY }}
|
|
38
|
+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
39
|
+
ISSUE_NUMBER: ${{ github.event.issue.number }}
|
|
40
|
+
ISSUE_TITLE: ${{ github.event.issue.title }}
|
|
41
|
+
ISSUE_BODY: ${{ github.event.issue.body }}
|
|
42
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
name: 'GitHub: Pull Request Opened'
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
types: [opened, ready_for_review]
|
|
5
|
+
|
|
6
|
+
# Keep these permissions in sync with the reusable workflow referenced below.
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
pull-requests: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
run:
|
|
13
|
+
uses: __UPSTREAM_REPO__/.github/workflows/gh-github-pull-request-opened.yml@main
|
|
14
|
+
secrets: inherit
|
|
15
|
+
with:
|
|
16
|
+
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
17
|
+
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
18
|
+
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
|
|
19
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: 'GitHub: Pull Request Opened'
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
types: [opened, ready_for_review]
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
run:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
pull-requests: write
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/create-github-app-token@v1
|
|
14
|
+
id: app-token
|
|
15
|
+
with:
|
|
16
|
+
app-id: ${{ secrets.POE_CODE_AGENT_APP_ID }}
|
|
17
|
+
private-key: ${{ secrets.POE_CODE_AGENT_PRIVATE_KEY }}
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
with:
|
|
20
|
+
token: ${{ steps.app-token.outputs.token }}
|
|
21
|
+
- uses: actions/setup-node@v4
|
|
22
|
+
with:
|
|
23
|
+
node-version: 20
|
|
24
|
+
- run: npm install -g poe-code@latest
|
|
25
|
+
- run: poe-code github-workflows prepare github-pull-request-opened
|
|
26
|
+
env:
|
|
27
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
28
|
+
POE_API_KEY: ${{ secrets.POE_API_KEY }}
|
|
29
|
+
- run: poe-code github-workflows github-pull-request-opened --yes
|
|
30
|
+
env:
|
|
31
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
32
|
+
POE_API_KEY: ${{ secrets.POE_API_KEY }}
|
|
33
|
+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
34
|
+
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
35
|
+
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
36
|
+
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
|
|
37
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: 'GitHub: Pull Request Synchronized'
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
types: [synchronize]
|
|
5
|
+
|
|
6
|
+
# Keep these permissions in sync with the reusable workflow referenced below.
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
pull-requests: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
run:
|
|
13
|
+
uses: __UPSTREAM_REPO__/.github/workflows/gh-github-pull-request-synchronized.yml@main
|
|
14
|
+
secrets: inherit
|
|
15
|
+
with:
|
|
16
|
+
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
17
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: 'GitHub: Pull Request Synchronized'
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
types: [synchronize]
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
run:
|
|
8
|
+
runs-on: ubuntu-latest
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
pull-requests: write
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/create-github-app-token@v1
|
|
14
|
+
id: app-token
|
|
15
|
+
with:
|
|
16
|
+
app-id: ${{ secrets.POE_CODE_AGENT_APP_ID }}
|
|
17
|
+
private-key: ${{ secrets.POE_CODE_AGENT_PRIVATE_KEY }}
|
|
18
|
+
- uses: actions/checkout@v4
|
|
19
|
+
with:
|
|
20
|
+
token: ${{ steps.app-token.outputs.token }}
|
|
21
|
+
- uses: actions/setup-node@v4
|
|
22
|
+
with:
|
|
23
|
+
node-version: 20
|
|
24
|
+
- run: npm install -g poe-code@latest
|
|
25
|
+
- run: poe-code github-workflows prepare github-pull-request-synchronized
|
|
26
|
+
env:
|
|
27
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
28
|
+
POE_API_KEY: ${{ secrets.POE_API_KEY }}
|
|
29
|
+
- run: poe-code github-workflows github-pull-request-synchronized --yes
|
|
30
|
+
env:
|
|
31
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
32
|
+
POE_API_KEY: ${{ secrets.POE_API_KEY }}
|
|
33
|
+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
34
|
+
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
35
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: 'Update Dependencies'
|
|
2
|
+
on:
|
|
3
|
+
schedule:
|
|
4
|
+
- cron: '0 6 * * 1'
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
|
|
7
|
+
# Keep these permissions in sync with the reusable workflow referenced below.
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
pull-requests: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
run:
|
|
14
|
+
uses: __UPSTREAM_REPO__/.github/workflows/gh-update-dependencies.yml@main
|
|
15
|
+
secrets: inherit
|
|
16
|
+
with:
|
|
17
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: 'Update Dependencies'
|
|
2
|
+
on:
|
|
3
|
+
schedule:
|
|
4
|
+
- cron: '0 6 * * 1'
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
run:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
contents: write
|
|
12
|
+
pull-requests: write
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/create-github-app-token@v1
|
|
15
|
+
id: app-token
|
|
16
|
+
with:
|
|
17
|
+
app-id: ${{ secrets.POE_CODE_AGENT_APP_ID }}
|
|
18
|
+
private-key: ${{ secrets.POE_CODE_AGENT_PRIVATE_KEY }}
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
with:
|
|
21
|
+
token: ${{ steps.app-token.outputs.token }}
|
|
22
|
+
- uses: actions/setup-node@v4
|
|
23
|
+
with:
|
|
24
|
+
node-version: 20
|
|
25
|
+
- run: npm install -g poe-code@latest
|
|
26
|
+
- run: poe-code github-workflows prepare update-dependencies
|
|
27
|
+
env:
|
|
28
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
29
|
+
POE_API_KEY: ${{ secrets.POE_API_KEY }}
|
|
30
|
+
- run: poe-code github-workflows update-dependencies --yes
|
|
31
|
+
env:
|
|
32
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
33
|
+
POE_API_KEY: ${{ secrets.POE_API_KEY }}
|
|
34
|
+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
35
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: 'Update Documentation'
|
|
2
|
+
on:
|
|
3
|
+
schedule:
|
|
4
|
+
- cron: "0 0 * * *"
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
|
|
7
|
+
# Keep these permissions in sync with the reusable workflow referenced below.
|
|
8
|
+
permissions:
|
|
9
|
+
contents: write
|
|
10
|
+
pull-requests: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
run:
|
|
14
|
+
uses: __UPSTREAM_REPO__/.github/workflows/gh-update-documentation.yml@main
|
|
15
|
+
secrets: inherit
|
|
16
|
+
with:
|
|
17
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: 'Update Documentation'
|
|
2
|
+
on:
|
|
3
|
+
schedule:
|
|
4
|
+
- cron: "0 0 * * *"
|
|
5
|
+
workflow_dispatch:
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
run:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
permissions:
|
|
11
|
+
contents: write
|
|
12
|
+
pull-requests: write
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/create-github-app-token@v1
|
|
15
|
+
id: app-token
|
|
16
|
+
with:
|
|
17
|
+
app-id: ${{ secrets.POE_CODE_AGENT_APP_ID }}
|
|
18
|
+
private-key: ${{ secrets.POE_CODE_AGENT_PRIVATE_KEY }}
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
with:
|
|
21
|
+
fetch-depth: 0
|
|
22
|
+
token: ${{ steps.app-token.outputs.token }}
|
|
23
|
+
- uses: actions/setup-node@v4
|
|
24
|
+
with:
|
|
25
|
+
node-version: 20
|
|
26
|
+
- run: npm install -g poe-code@latest
|
|
27
|
+
- run: poe-code github-workflows prepare update-documentation
|
|
28
|
+
env:
|
|
29
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
30
|
+
POE_API_KEY: ${{ secrets.POE_API_KEY }}
|
|
31
|
+
- run: poe-code github-workflows update-documentation --yes
|
|
32
|
+
env:
|
|
33
|
+
POE_CODE_STDERR_LOGS: "1"
|
|
34
|
+
POE_API_KEY: ${{ secrets.POE_API_KEY }}
|
|
35
|
+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
36
|
+
GITHUB_REPOSITORY: ${{ github.repository }}
|