📦 deps(thirdparty): update snapshots
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Apply Skill Optimization Run
|
||||
name: Apply Skill Optimization Run (Paused)
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
@@ -15,15 +15,9 @@ jobs:
|
||||
apply:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
issues: write
|
||||
pull-requests: write
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Apply latest Tessl optimization
|
||||
run: node tools/scripts/apply_skill_optimization.cjs
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ github.token }}
|
||||
PR_NUMBER: ${{ inputs.pr_number }}
|
||||
- name: Explain paused auto-apply
|
||||
run: |
|
||||
echo "::error title=/apply-optimize paused::This workflow depended on deprecated Tessl Skill Review comments. Re-enable it after wiring Tessl Review Fix safely."
|
||||
exit 1
|
||||
|
||||
@@ -1,19 +1,16 @@
|
||||
name: Queue Skill Optimization Apply
|
||||
name: Explain Skill Optimization Apply
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
queue:
|
||||
explain:
|
||||
if: >-
|
||||
github.event.issue.pull_request &&
|
||||
contains(github.event.comment.body, '/apply-optimize')
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
actions: write
|
||||
contents: read
|
||||
issues: write
|
||||
pull-requests: read
|
||||
steps:
|
||||
- uses: actions/github-script@v7
|
||||
with:
|
||||
@@ -28,12 +25,6 @@ jobs:
|
||||
return;
|
||||
}
|
||||
|
||||
const { data: pr } = await github.rest.pulls.get({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
pull_number: prNumber,
|
||||
});
|
||||
|
||||
if (!trusted.has(association)) {
|
||||
await github.rest.issues.createComment({
|
||||
owner: context.repo.owner,
|
||||
@@ -46,28 +37,6 @@ jobs:
|
||||
return;
|
||||
}
|
||||
|
||||
if (pr.head.repo.full_name !== `${context.repo.owner}/${context.repo.repo}`) {
|
||||
await github.rest.issues.createComment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: prNumber,
|
||||
body:
|
||||
'⚠️ `/apply-optimize` only auto-applies for pull requests whose head branch ' +
|
||||
'lives in this repository. Fork PRs must apply the suggested changes manually.',
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
await github.rest.actions.createWorkflowDispatch({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
workflow_id: 'skill-apply-optimize-run.yml',
|
||||
ref: context.payload.repository.default_branch,
|
||||
inputs: {
|
||||
pr_number: String(prNumber),
|
||||
},
|
||||
});
|
||||
|
||||
await github.rest.reactions.createForIssueComment({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
@@ -80,7 +49,8 @@ jobs:
|
||||
repo: context.repo.repo,
|
||||
issue_number: prNumber,
|
||||
body:
|
||||
'👀 Queued the trusted `/apply-optimize` workflow for this PR. ' +
|
||||
'It will fetch the repository branch from a separate workflow and apply the ' +
|
||||
'latest Tessl optimization suggestion if one is available.',
|
||||
'⚠️ `/apply-optimize` is paused while this repository migrates from ' +
|
||||
'deprecated Tessl Skill Review comments to Tessl Review runs. ' +
|
||||
'Please use the `skill-review` check output for now; maintainers can ' +
|
||||
're-enable auto-fix once the `tessl review fix` output contract is wired safely.',
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
name: Skill Review & Optimize
|
||||
name: Skill Review
|
||||
on:
|
||||
pull_request:
|
||||
paths: ['**/SKILL.md']
|
||||
@@ -6,12 +6,35 @@ on:
|
||||
jobs:
|
||||
review:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
TESSL_REVIEW_THRESHOLD: '80'
|
||||
TESSL_TOKEN: ${{ secrets.TESSL_TOKEN || secrets.TESSL_API_TOKEN }}
|
||||
TESSL_WORKSPACE: antigravity-awesome-skills
|
||||
permissions:
|
||||
pull-requests: write
|
||||
contents: read
|
||||
steps:
|
||||
- name: Require Tessl token for repository branches
|
||||
if: ${{ env.TESSL_TOKEN == '' && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||
run: |
|
||||
echo "::error title=Missing Tessl token::Configure TESSL_TOKEN, or keep the legacy TESSL_API_TOKEN secret until the migration is complete."
|
||||
exit 1
|
||||
- name: Skip Tessl Review for fork PRs without secrets
|
||||
if: ${{ env.TESSL_TOKEN == '' && github.event.pull_request.head.repo.full_name != github.repository }}
|
||||
run: |
|
||||
echo "::warning title=Tessl Review skipped::GitHub does not expose repository secrets to this fork PR. Maintainers must review the changed SKILL.md files manually."
|
||||
- uses: actions/checkout@v5
|
||||
- uses: tesslio/skill-review-and-optimize@d81583861aaf29d1da7f10e6539efef4e27b0dd5
|
||||
if: ${{ env.TESSL_TOKEN != '' }}
|
||||
with:
|
||||
optimize: 'true'
|
||||
tessl-token: ${{ secrets.TESSL_API_TOKEN }}
|
||||
fetch-depth: 0
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
- uses: tesslio/setup-tessl@25ec223fc0da33b41b8044ff5ab2b85235f4f91e
|
||||
if: ${{ env.TESSL_TOKEN != '' }}
|
||||
with:
|
||||
token: ${{ env.TESSL_TOKEN }}
|
||||
- name: Review changed skills
|
||||
if: ${{ env.TESSL_TOKEN != '' }}
|
||||
run: node tools/scripts/review_changed_skills.cjs
|
||||
env:
|
||||
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
||||
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||
|
||||
Reference in New Issue
Block a user