3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-11-02 20:47:52 +00:00

update workflows

This commit is contained in:
Don Syme 2025-09-17 11:33:24 +01:00
parent db8206d265
commit 7268136bb6
9 changed files with 130 additions and 55 deletions

View file

@ -2,7 +2,7 @@
# To update this file, edit the corresponding .md file and run:
# gh aw compile
#
# Effective stop-time: 2025-09-19 10:02:59
# Effective stop-time: 2025-09-19 10:32:53
name: "Daily Test Coverage Improver"
"on":
@ -329,7 +329,7 @@ jobs:
},
},
{
name: "add-issue-label",
name: "add-issue-labels",
description: "Add labels to a GitHub issue or pull request",
inputSchema: {
type: "object",
@ -541,7 +541,7 @@ jobs:
WORKFLOW_NAME="Daily Test Coverage Improver"
# Check stop-time limit
STOP_TIME="2025-09-19 10:02:59"
STOP_TIME="2025-09-19 10:32:53"
echo "Checking stop-time limit: $STOP_TIME"
# Convert stop time to epoch seconds
@ -711,6 +711,28 @@ jobs:
## Adding a Comment to an Issue or Pull Request, Creating an Issue, Creating a Pull Request, Updating Issues, Reporting Missing Tools or Functionality
**IMPORTANT**: To do the actions mentioned in the header of this section, use the **safe-outputs** tools, do NOT attempt to use `gh`, do NOT attempt to use the GitHub API. You don't have write access to the GitHub repo.
**Adding a Comment to an Issue or Pull Request**
To add a comment to an issue or pull request, use the add-issue-comments tool from the safe-outputs MCP
**Creating an Issue**
To create an issue, use the create-issue tool from the safe-outputs MCP
**Creating a Pull Request**
To create a pull request:
1. Make any file changes directly in the working directory
2. If you haven't done so already, create a local branch using an appropriate unique name
3. Add and commit your changes to the branch. Be careful to add exactly the files you intend, and check there are no extra files left un-added. Check you haven't deleted or changed any files you didn't intend to.
4. Do not push your changes. That will be done by the tool.
5. Create the pull request with the create-pull-request tool from the safe-outputs MCP
**Updating an Issue**
To udpate an issue, use the update-issue tool from the safe-outputs MCP
EOF
- name: Print prompt to step summary
run: |
@ -1038,7 +1060,7 @@ jobs:
return 1; // Only one pull request allowed
case "create-pull-request-review-comment":
return 10; // Default to 10 review comments allowed
case "add-issue-label":
case "add-issue-labels":
return 5; // Only one labels operation allowed
case "update-issue":
return 1; // Only one issue update allowed
@ -1291,10 +1313,10 @@ jobs:
);
}
break;
case "add-issue-label":
case "add-issue-labels":
if (!item.labels || !Array.isArray(item.labels)) {
errors.push(
`Line ${i + 1}: add-issue-label requires a 'labels' array field`
`Line ${i + 1}: add-issue-labels requires a 'labels' array field`
);
continue;
}
@ -1304,7 +1326,7 @@ jobs:
)
) {
errors.push(
`Line ${i + 1}: add-issue-label labels array must contain only strings`
`Line ${i + 1}: add-issue-labels labels array must contain only strings`
);
continue;
}
@ -2434,7 +2456,6 @@ jobs:
GITHUB_AW_AGENT_OUTPUT: ${{ needs.daily-test-coverage-improver.outputs.output }}
GITHUB_AW_ISSUE_TITLE_PREFIX: "${{ github.workflow }}"
with:
github-token: ${{ secrets.DSYME_GH_TOKEN}}
script: |
async function main() {
// Check if we're in staged mode
@ -2634,7 +2655,6 @@ jobs:
GITHUB_AW_AGENT_OUTPUT: ${{ needs.daily-test-coverage-improver.outputs.output }}
GITHUB_AW_COMMENT_TARGET: "*"
with:
github-token: ${{ secrets.DSYME_GH_TOKEN}}
script: |
async function main() {
// Check if we're in staged mode
@ -2857,7 +2877,6 @@ jobs:
GITHUB_AW_PR_DRAFT: "true"
GITHUB_AW_PR_IF_NO_CHANGES: "warn"
with:
github-token: ${{ secrets.DSYME_GH_TOKEN}}
script: |
/** @type {typeof import("fs")} */
const fs = require("fs");
@ -3178,7 +3197,6 @@ jobs:
GITHUB_AW_UPDATE_BODY: true
GITHUB_AW_UPDATE_TARGET: "*"
with:
github-token: ${{ secrets.DSYME_GH_TOKEN}}
script: |
async function main() {
// Check if we're in staged mode