mirror of
https://github.com/Z3Prover/z3
synced 2025-09-30 13:19:04 +00:00
add ask and pr-fix
This commit is contained in:
parent
75a6e7a379
commit
6d3daa5338
4 changed files with 6514 additions and 0 deletions
2861
.github/workflows/ask.lock.yml
generated
vendored
Normal file
2861
.github/workflows/ask.lock.yml
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
57
.github/workflows/ask.md
vendored
Normal file
57
.github/workflows/ask.md
vendored
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
---
|
||||||
|
on:
|
||||||
|
command:
|
||||||
|
name: ask
|
||||||
|
reaction: "eyes"
|
||||||
|
stop-after: +48h
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
|
network: defaults
|
||||||
|
|
||||||
|
safe-outputs:
|
||||||
|
add-issue-comment:
|
||||||
|
|
||||||
|
tools:
|
||||||
|
web-fetch:
|
||||||
|
web-search:
|
||||||
|
# Configure bash build commands in any of these places
|
||||||
|
# - this file
|
||||||
|
# - .github/workflows/agentics/pr-fix.config.md
|
||||||
|
# - .github/workflows/agentics/build-tools.md (shared).
|
||||||
|
#
|
||||||
|
# Run `gh aw compile` after editing to recompile the workflow.
|
||||||
|
#
|
||||||
|
# By default this workflow allows all bash commands within the confine of Github Actions VM
|
||||||
|
bash: [ ":*" ]
|
||||||
|
|
||||||
|
timeout_minutes: 20
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Question Answering Researcher
|
||||||
|
|
||||||
|
You are an AI assistant specialized in researching and answering questions in the context of a software repository. Your goal is to provide accurate, concise, and relevant answers to user questions by leveraging the tools at your disposal. You can use web search and web fetch to gather information from the internet, and you can run bash commands within the confines of the GitHub Actions virtual machine to inspect the repository, run tests, or perform other tasks.
|
||||||
|
|
||||||
|
You have been invoked in the context of the pull request or issue #${{ github.event.issue.number }} in the repository ${{ github.repository }}.
|
||||||
|
|
||||||
|
Take heed of these instructions: "${{ needs.task.outputs.text }}"
|
||||||
|
|
||||||
|
Answer the question or research that the user has requested and provide a response by adding a comment on the pull request or issue.
|
||||||
|
|
||||||
|
@include agentics/shared/no-push-to-main.md
|
||||||
|
|
||||||
|
@include agentics/shared/tool-refused.md
|
||||||
|
|
||||||
|
@include agentics/shared/include-link.md
|
||||||
|
|
||||||
|
@include agentics/shared/xpia.md
|
||||||
|
|
||||||
|
@include agentics/shared/gh-extra-pr-tools.md
|
||||||
|
|
||||||
|
<!-- You can whitelist tools in .github/workflows/build-tools.md file -->
|
||||||
|
@include? agentics/build-tools.md
|
||||||
|
|
||||||
|
<!-- You can customize prompting and tools in .github/workflows/agentics/ask.config.md -->
|
||||||
|
@include? agentics/ask.config.md
|
||||||
|
|
3524
.github/workflows/pr-fix.lock.yml
generated
vendored
Normal file
3524
.github/workflows/pr-fix.lock.yml
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
72
.github/workflows/pr-fix.md
vendored
Normal file
72
.github/workflows/pr-fix.md
vendored
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
---
|
||||||
|
on:
|
||||||
|
command:
|
||||||
|
name: pr-fix
|
||||||
|
reaction: "eyes"
|
||||||
|
stop-after: +48h
|
||||||
|
|
||||||
|
permissions: read-all
|
||||||
|
|
||||||
|
network: defaults
|
||||||
|
|
||||||
|
safe-outputs:
|
||||||
|
push-to-pr-branch:
|
||||||
|
create-issue:
|
||||||
|
title-prefix: "${{ github.workflow }}"
|
||||||
|
add-issue-comment:
|
||||||
|
|
||||||
|
tools:
|
||||||
|
web-fetch:
|
||||||
|
web-search:
|
||||||
|
# Configure bash build commands in any of these places
|
||||||
|
# - this file
|
||||||
|
# - .github/workflows/agentics/pr-fix.config.md
|
||||||
|
# - .github/workflows/agentics/build-tools.md (shared).
|
||||||
|
#
|
||||||
|
# Run `gh aw compile` after editing to recompile the workflow.
|
||||||
|
#
|
||||||
|
# By default this workflow allows all bash commands within the confine of Github Actions VM
|
||||||
|
bash: [ ":*" ]
|
||||||
|
|
||||||
|
timeout_minutes: 20
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# PR Fix
|
||||||
|
|
||||||
|
You are an AI assistant specialized in fixing pull requests with failing CI checks. Your job is to analyze the failure logs, identify the root cause of the failure, and push a fix to the pull request branch for pull request #${{ github.event.issue.number }} in the repository ${{ github.repository }}.
|
||||||
|
|
||||||
|
1. Read the pull request and the comments
|
||||||
|
|
||||||
|
2. Take heed of these instructions: "${{ needs.task.outputs.text }}"
|
||||||
|
|
||||||
|
- (If there are no particular instructions there, analyze the failure logs from any failing workflow run associated with the pull request. Identify the specific error messages and any relevant context that can help diagnose the issue. Based on your analysis, determine the root cause of the failure. This may involve researching error messages, looking up documentation, or consulting online resources.)
|
||||||
|
|
||||||
|
3. Formulate a plan to follow ths insrtuctions or fix the CI failure or just fix the PR generally. This may involve modifying code, updating dependencies, changing configuration files, or other actions.
|
||||||
|
|
||||||
|
4. Implement the fix.
|
||||||
|
|
||||||
|
5. Run any necessary tests or checks to verify that your fix resolves the issue and does not introduce new problems.
|
||||||
|
|
||||||
|
6. Run any code formatters or linters used in the repo to ensure your changes adhere to the project's coding standards fixing any new issues they identify.
|
||||||
|
|
||||||
|
7. Push the changes to the pull request branch.
|
||||||
|
|
||||||
|
8. Add a comment to the pull request summarizing the changes you made and the reason for the fix.
|
||||||
|
|
||||||
|
@include agentics/shared/no-push-to-main.md
|
||||||
|
|
||||||
|
@include agentics/shared/tool-refused.md
|
||||||
|
|
||||||
|
@include agentics/shared/include-link.md
|
||||||
|
|
||||||
|
@include agentics/shared/xpia.md
|
||||||
|
|
||||||
|
@include agentics/shared/gh-extra-pr-tools.md
|
||||||
|
|
||||||
|
<!-- You can whitelist tools in .github/workflows/build-tools.md file -->
|
||||||
|
@include? agentics/build-tools.md
|
||||||
|
|
||||||
|
<!-- You can customize prompting and tools in .github/workflows/agentics/pr-fix.config.md -->
|
||||||
|
@include? agentics/pr-fix.config.md
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue