Post Office Hours Comments
Post each ## section from office-hours/YYYY_MM_DD/questions_answers.md as a separate comment to the Microsoft Foundry GitHub Discussion, then record the resulting comment links.
Prerequisites
- GitHub CLI (
gh) is installed and authenticated. - The authenticated user can comment on the discussion.
- The Q&A write-up is complete and ready to publish.
Procedure
-
Convert the input date to both directory format (
YYYY_MM_DD) and comment-prefix format (YYYY/MM/DD). -
Run a dry run and review the parsed section count and content:
uv run .agents/skills/discussion-commenter/post_qas.py \ "office-hours/YYYY_MM_DD/questions_answers.md" \ "https://github.com/orgs/microsoft-foundry/discussions/280" \ "YYYY/MM/DD" \ --dry-run -
If the dry run is correct, run the same command without
--dry-run. -
Capture each posted comment URL from the command output.
-
Create
office-hours/YYYY_MM_DD/comments.mdas a Markdown list using each section title and the URL's fragment only. -
Verify that the number and order of links match the posted
##sections.
Comment Format
Each ## section becomes a separate discussion comment prefixed with the date and title:
**2026/01/06: How do you set up Entra OBO?**
Answer content...
Follow-up ### sections remain inside their parent comment.
comments.md Format
Comment URLs must be anchor-only, not relative paths or absolute URLs:
# Comments posted to discussion
* [How do you set up Entra OBO?](#discussioncomment-12345678)
* [Which MCP inspector should I use?](#discussioncomment-12345679)
Do not repost comments if publishing partially succeeds. Record the successful URLs and resolve the remaining sections individually.