Goal:
AI triage and assesment for non-blazor content for issues as they are cr, thank the issue creator and indicate help will be along soon.
Assign a label ai-triage-action-plan indicating an AI triage report has been run for the issue.
Run a specified agent that will create the report and enter it into the issue discussion.
Put the new workflow file here:
https://github.com/dotnet/AspNetCore.Docs/tree/main/.github/workflows
name it: issue-processing-ai-triage-nonblazor.yml
Here is a draft worflow .yml for this to be added as a new workflow in this repo:
name: Issue Triage with Copilot
on:
issues:
types:
- opened
jobs:
triage-non-blazor-issue:
if: |
!(
(contains(github.event.issue.body, 'https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor')
&& !contains(github.event.issue.body, 'https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/hybrid'))
|| contains(github.event.issue.body, 'https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/client-side/dotnet-interop/index.md')
|| contains(github.event.issue.body, 'https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/client-side/dotnet-interop/wasm-browser-app.md')
|| contains(github.event.issue.body, 'https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/client-side/dotnet-on-webworkers.md')
|| contains(github.event.issue.body, 'https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/mvc/views/tag-helpers/built-in/component-tag-helper.md')
|| contains(github.event.issue.body, 'https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/mvc/views/tag-helpers/built-in/persist-component-state.md')
)
runs-on: ubuntu-latest
permissions:
issues: write
contents: read
steps:
- name: Post welcome message
uses: actions/github-script@v6
with:
script: |
await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `### 👋 ***Thanks for your issue!*** 😊
We will be along shortly to assist.`
})
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Copilot Issue Triage
uses: github/copilot-action@v1
with:
agent: .github/agents/issue-triage.agent.md
prompt: |
Analyze issue #${{ github.event.issue.number }} and post your triage report as a comment on the issue.
Issue URL: ${{ github.event.issue.html_url }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Add triage label
uses: actions/github-script@v6
with:
script: |
await github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["ai-triage-action-plan"]
})
Goal:
AI triage and assesment for non-blazor content for issues as they are cr, thank the issue creator and indicate help will be along soon.
Assign a label
ai-triage-action-planindicating an AI triage report has been run for the issue.Run a specified agent that will create the report and enter it into the issue discussion.
Put the new workflow file here:
https://github.com/dotnet/AspNetCore.Docs/tree/main/.github/workflows
name it: issue-processing-ai-triage-nonblazor.yml
Here is a draft worflow .yml for this to be added as a new workflow in this repo: