From fcaddd625d5c465a3a833c279f68292745e1a41b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 21:11:03 +0000 Subject: [PATCH 1/2] Initial plan From c85487e74c2223933825ef8676d304416c79a6a8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 21:12:31 +0000 Subject: [PATCH 2/2] Update README to document integrations and prompt inputs Co-authored-by: hawkeyexl <5209367+hawkeyexl@users.noreply.github.com> --- README.md | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c574d73..0e8caa2 100644 --- a/README.md +++ b/README.md @@ -237,9 +237,9 @@ The title of the created GitHub issue. Only valid if `create_issue_on_fail` is s issue_title: Doc Detective found issues in the documentation ``` -### `issue_body` (default: `Doc Detective run failed with the following results:$RESULTS`) +### `issue_body` (default: `A Doc Detective run ($RUN_URL) failed with the following results:$RESULTS`) -he body of the created GitHub issue. Use the `$RESULTS` variable to insert the results object. Only valid if `create_issue_on_fail` is set to `true`. +The body of the created GitHub issue. Use `$RESULTS` to insert the results object, `$RUN_URL` to insert the URL of the workflow run that created the issue, and `$PROMPT` to insert the prompt text. Only valid if `create_issue_on_fail` is set to `true`. ```yaml - uses: doc-detective/github-action@v1 @@ -274,6 +274,37 @@ Comma-separated list of GitHub usernames to assign to the GitHub issue. Only val issue_assignees: octocat,monalisa ``` +### `integrations` + +Comma-separated list of integrations to notify in the created GitHub issue. When specified, matching integrations are triggered via mentions or commands in a collapsible "Integrations" section appended to the issue body. + +Supported values: `doc-sentinel`, `promptless`, `dosu`, `claude`, `opencode`, `copilot`, `cursor`. Invalid values are ignored with a warning. + +The `copilot` integration auto-assigns the issue to Copilot instead of adding to the accordion. + +Only valid if `create_issue_on_fail` is set to `true`. + +```yaml +- uses: doc-detective/github-action@v1 + with: + create_issue_on_fail: true + integrations: claude,copilot +``` + +### `prompt` (default: `Investigate potential causes of the failures reported in this Doc Detective test output and suggest fixes.`) + +The prompt passed to integrations. For example, if `integrations` is set to `claude`, the issue includes `@claude `. Also available as `$PROMPT` in the `issue_body` template. + +Only valid if `create_issue_on_fail` is set to `true`. + +```yaml +- uses: doc-detective/github-action@v1 + with: + create_issue_on_fail: true + integrations: claude + prompt: Investigate the Doc Detective test failures and suggest fixes for the documentation. +``` + ### `token` (default: `${{ github.token }}`) The GitHub token to use for creating issues. Defaults to the token already available to the GitHub Action workflow. Only set this if you want to override the default token.