Point doc-updater at ohcnetwork/care for change detection - #17
Merged
Conversation
Update the daily-doc-updater agentic workflow so it scans the CARE product repository (ohcnetwork/care) for merged PRs and commits, instead of scanning this docs repo itself. Documentation edits and the safe-outputs pull request are still created in this repo (ohcnetwork/docs). Body changes in daily-doc-updater.md: - Step 1 "Scan Recent Activity": search query now targets repo:ohcnetwork/care (was repo:<github.repository>); pull_request_read, list_commits and get_commit are directed at ohcnetwork/care. - Mission/prose/PR-template/edge-cases clarified: source of changes is the product repo, while docs edits and the output PR live in ohcnetwork/docs. - The pre_activation check throttle (gh pr list --repo GITHUB_REPOSITORY) is intentionally left unchanged; it counts this repo's own open [docs] PRs. Regenerated daily-doc-updater.lock.yml with gh aw compile (pinned v0.81.6) so its body_hash matches the new frontmatter/body. The compiler dropped the now-unused GH_AW_GITHUB_REPOSITORY prompt interpolation since the query no longer references github.repository. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Deploying coredocs with
|
| Latest commit: |
cc56ccd
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://19a03dff.coredocs.pages.dev |
| Branch Preview URL: | https://doc-updater-scan-care.coredocs.pages.dev |
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Intent
The
daily-doc-updateragentic workflow previously scanned this docs repo (ohcnetwork/docs) for merged PRs/commits to document. That's wrong — the product code lives inohcnetwork/care. This change points the workflow's change-detection source at the CARE product repo, while keeping documentation edits and the output pull request in this repo (ohcnetwork/docs).Source vs. destination:
ohcnetwork/care(product repo)ohcnetwork/docs(this repo, via safe-outputs)What changed
.github/workflows/daily-doc-updater.md(body / prompt instructions only — frontmatter behavior unchanged):search_pull_requestsquery now targetsrepo:ohcnetwork/care is:pr is:merged merged:>=YYYY-MM-DD(wasrepo:${{ github.repository }}).pull_request_read,list_commits, andget_commitare all explicitly directed atowner: ohcnetwork,repo: care.ohcnetwork/docs. PR-reference templates now useohcnetwork/care#PR_NUMBER.checkthrottle (gh pr list --repo "$GITHUB_REPOSITORY" ... in:title "[docs]") is intentionally left unchanged — it counts this repo's own open[docs]PRs to cap concurrent doc PRs, so it must keep pointing atohcnetwork/docs..github/workflows/daily-doc-updater.lock.ymlregenerated withgh aw compile(extension pinned to v0.81.6, matching the current lock'scompiler_version):body_hashupdated to match the new markdown body;frontmatter_hash,compiler_version(v0.81.6) and engine version (copilot 1.0.65) are unchanged — no version drift.GH_AW_GITHUB_REPOSITORYprompt-interpolation env var, since the prompt no longer references${{ github.repository }}.gh aw compileis a no-op (idempotent).Permissions / token note
The workflow's
tools.githubuses the default toolset with no explicitgithub-token:, and it does not need one for this change:ohcnetwork/careis a public repository, so the defaultGITHUB_TOKENcan read its public PR/commit/search data cross-repo. No frontmatter change is required.GH_AW_GITHUB_MCP_SERVER_TOKEN || GH_AW_GITHUB_TOKEN || GITHUB_TOKEN. So if the maintainer later wants higher rate limits (or ifohcnetwork/careever becomes private), they can simply set aGH_AW_GITHUB_MCP_SERVER_TOKEN(orGH_AW_GITHUB_TOKEN) repo secret to a PAT/GitHub App token with read access toohcnetwork/care— no workflow edit needed, the lock already reads that secret with fallback.Recommendation: ship as-is for the public repo; consider adding a read-only PAT/App token secret if search/API rate limits on the default token become a reliability concern.
Notes
gh aw compileartifacts (.github/aw/actions-lock.json,.github/workflows/agentics-maintenance.yml) are not included, consistent with the repo's current tracking.