Add THEORY-OF-OPERATIONS.md and GITHUB_TOKEN authentication support#110
Conversation
Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
|
@copilot Consider referencing the THEORY-OF-OPERATIONS.md in the README.md |
Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Added a link to the Theory of Operations in the Overview section of README.md (commit |
There was a problem hiding this comment.
Pull request overview
Adds a top-level “Theory of Operations” document to explain BuildMark’s end-to-end behavior, and links to it from the README Overview so users can find the deeper internal walkthrough.
Changes:
- Added
THEORY-OF-OPERATIONS.mddescribing version/tag recognition, GitHub data collection, baseline selection, change collection, report output, CI usage, and self-validation. - Updated
README.mdOverview section to link to the new document.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| THEORY-OF-OPERATIONS.md | New end-to-end operational documentation for how BuildMark determines versions, collects changes, and produces reports. |
| README.md | Adds a prominent link to the Theory of Operations from the Overview section. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
|
@copilot The tool should be updated to match the THEORY-OF-OPERATIONS.md description of trying both 'GH_TOKEN' and 'GITHUB_TOKEN', and only then falling back to 'gh auth token'. |
Co-authored-by: Malcolmnixon <1863707+Malcolmnixon@users.noreply.github.com>
Updated the connector in commit |
Adds a top-level
THEORY-OF-OPERATIONS.mdmodeled after the ReviewMark equivalent, explaining how BuildMark works end-to-end. Also updatesREADME.mdto reference the new document from the Overview section, and updates the GitHub connector to supportGITHUB_TOKENas a fallback authentication source.Description
New file:
THEORY-OF-OPERATIONS.mdwith the following sections:git remote, authenticate viaGH_TOKEN/GITHUB_TOKEN/gh auth token, fetch commits/tags/releases/PRs/issues via GraphQL in parallel, filter to current branch--report-depthbehavior--validatemode and TRX/JUnit outputUpdated:
README.md— added a link to the Theory of Operations document in the Overview section.Updated:
GitHubRepoConnector.cs— GitHub authentication now checksGH_TOKENfirst, thenGITHUB_TOKEN, then falls back togh auth tokenCLI. If no token can be obtained from any source, the tool fails with an error.Type of Change
Pre-Submission Checklist
Build and Test
dotnet build --configuration Releasedotnet test --configuration Releasedotnet run --project src/DemaConsulting.BuildMark --configuration Release --framework net10.0--no-build -- --validateCode Quality
dotnet format --verify-no-changesQuality Checks
cspell "**/*.{md,cs}"markdownlint "**/*.md"yamllint '**/*.{yml,yaml}'Testing
Documentation
Additional Notes
The repository information section deliberately uses a two-level structure (generic connector selection + GitHub-specific subsection) to make it straightforward to add an Azure DevOps subsection later without restructuring the document.
The
GITHUB_TOKENsupport was added to align the tool with the documented authentication flow and to support standard GitHub Actions environments whereGITHUB_TOKENis the conventional secret name.💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.