Spaces:
Paused
Paused
Mirrowel
commited on
Commit
·
0fcd4ee
1
Parent(s):
aa878c2
ci: Mirrobot-agent pull
Browse files
.github/workflows/bot-reply.yml
CHANGED
|
@@ -147,11 +147,7 @@ jobs:
|
|
| 147 |
-f query="$GRAPHQL_QUERY")
|
| 148 |
|
| 149 |
echo "$discussion_data" > discussion_data.txt
|
| 150 |
-
|
| 151 |
-
# For checkout step
|
| 152 |
-
echo "repo_full_name=$(echo "$pr_json" | jq -r '.headRepository.nameWithOwner // "${{ github.repository }}"')" >> $GITHUB_OUTPUT
|
| 153 |
-
echo "ref_name=$(echo "$pr_json" | jq -r .headRefName)" >> $GITHUB_OUTPUT
|
| 154 |
-
|
| 155 |
# For prompt context
|
| 156 |
echo "PR_HEAD_SHA=$(echo "$pr_json" | jq -r .headRefOid)" >> $GITHUB_ENV
|
| 157 |
echo "THREAD_AUTHOR=$(echo "$pr_json" | jq -r .author.login)" >> $GITHUB_ENV
|
|
@@ -478,15 +474,13 @@ jobs:
|
|
| 478 |
fi
|
| 479 |
|
| 480 |
- name: Save secure prompt from base branch
|
| 481 |
-
if: steps.context.outputs.IS_PR == 'true'
|
| 482 |
run: cp .github/prompts/bot-reply.md /tmp/bot-reply.md
|
| 483 |
|
| 484 |
- name: Checkout PR head
|
| 485 |
if: steps.context.outputs.IS_PR == 'true'
|
| 486 |
uses: actions/checkout@v4
|
| 487 |
with:
|
| 488 |
-
|
| 489 |
-
ref: ${{ steps.context.outputs.ref_name }}
|
| 490 |
token: ${{ steps.setup.outputs.token }}
|
| 491 |
fetch-depth: 0 # Full history needed for git operations and code analysis
|
| 492 |
|
|
|
|
| 147 |
-f query="$GRAPHQL_QUERY")
|
| 148 |
|
| 149 |
echo "$discussion_data" > discussion_data.txt
|
| 150 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
# For prompt context
|
| 152 |
echo "PR_HEAD_SHA=$(echo "$pr_json" | jq -r .headRefOid)" >> $GITHUB_ENV
|
| 153 |
echo "THREAD_AUTHOR=$(echo "$pr_json" | jq -r .author.login)" >> $GITHUB_ENV
|
|
|
|
| 474 |
fi
|
| 475 |
|
| 476 |
- name: Save secure prompt from base branch
|
|
|
|
| 477 |
run: cp .github/prompts/bot-reply.md /tmp/bot-reply.md
|
| 478 |
|
| 479 |
- name: Checkout PR head
|
| 480 |
if: steps.context.outputs.IS_PR == 'true'
|
| 481 |
uses: actions/checkout@v4
|
| 482 |
with:
|
| 483 |
+
ref: ${{ env.PR_HEAD_SHA }}
|
|
|
|
| 484 |
token: ${{ steps.setup.outputs.token }}
|
| 485 |
fetch-depth: 0 # Full history needed for git operations and code analysis
|
| 486 |
|
.github/workflows/pr-review.yml
CHANGED
|
@@ -177,11 +177,6 @@ jobs:
|
|
| 177 |
echo "$pr_json" > pr_json.txt
|
| 178 |
echo "$discussion_data" > discussion_data.txt
|
| 179 |
|
| 180 |
-
# For checkout step
|
| 181 |
-
repo_full_name=$(echo "$pr_json" | jq -r '.headRepository.nameWithOwner // "${{ github.repository }}"')
|
| 182 |
-
echo "repo_full_name=$repo_full_name" >> $GITHUB_OUTPUT
|
| 183 |
-
echo "ref_name=$(echo "$pr_json" | jq -r .headRefName)" >> $GITHUB_OUTPUT
|
| 184 |
-
|
| 185 |
# Prepare metadata
|
| 186 |
author=$(echo "$pr_json" | jq -r .author.login)
|
| 187 |
created_at=$(echo "$pr_json" | jq -r .createdAt)
|
|
@@ -474,8 +469,7 @@ jobs:
|
|
| 474 |
- name: Checkout PR head
|
| 475 |
uses: actions/checkout@v4
|
| 476 |
with:
|
| 477 |
-
|
| 478 |
-
ref: ${{ steps.pr_meta.outputs.ref_name }}
|
| 479 |
token: ${{ steps.setup.outputs.token }}
|
| 480 |
fetch-depth: 0 # Full history needed for diff generation
|
| 481 |
|
|
|
|
| 177 |
echo "$pr_json" > pr_json.txt
|
| 178 |
echo "$discussion_data" > discussion_data.txt
|
| 179 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
# Prepare metadata
|
| 181 |
author=$(echo "$pr_json" | jq -r .author.login)
|
| 182 |
created_at=$(echo "$pr_json" | jq -r .createdAt)
|
|
|
|
| 469 |
- name: Checkout PR head
|
| 470 |
uses: actions/checkout@v4
|
| 471 |
with:
|
| 472 |
+
ref: ${{ env.PR_HEAD_SHA }}
|
|
|
|
| 473 |
token: ${{ steps.setup.outputs.token }}
|
| 474 |
fetch-depth: 0 # Full history needed for diff generation
|
| 475 |
|
.github/workflows/status-check-init.yml
CHANGED
|
@@ -18,6 +18,6 @@ jobs:
|
|
| 18 |
"/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha }}" \
|
| 19 |
-f state='pending' \
|
| 20 |
-f context='compliance-check' \
|
| 21 |
-
-f description='
|
| 22 |
env:
|
| 23 |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
| 18 |
"/repos/${{ github.repository }}/statuses/${{ github.event.pull_request.head.sha }}" \
|
| 19 |
-f state='pending' \
|
| 20 |
-f context='compliance-check' \
|
| 21 |
+
-f description='run /mirrobot-check when ready to merge'
|
| 22 |
env:
|
| 23 |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|