AI: Add daily open PR report workflow posting to Teams - #819
Draft
Subrata (subrata-ms) with Copilot wants to merge 5 commits into
Draft
Subrata (subrata-ms) with Copilot wants to merge 5 commits into
Subrata (subrata-ms) with Copilot wants to merge 5 commits into
Conversation
Contributor
There was a problem hiding this comment.
Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Co-authored-by: subrata-ms <[email protected]>
Copilot
AI
changed the title
[WIP] Add daily GitHub Actions workflow for PR reporting
AI: Add daily open PR report workflow posting to Teams
Sep 25, 2026
| ) | ||
|
|
||
|
|
||
| def fetch_open_pull_requests(repo: str, token: str) -> List[Dict[str, Any]]: |
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Co-authored-by: subrata-ms <[email protected]>
Comment on lines
+3
to
+6
| on: | ||
| schedule: | ||
| # 09:00 IST == 03:30 UTC (GitHub Actions cron is UTC only) | ||
| - cron: "30 3 * * *" |
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.


Adds a scheduled job that reports every open pull request in
microsoft/mssql-pythonto a Teams channel each morning at 09:00 IST, so maintainers get a daily review queue without polling GitHub..github/workflows/daily-pr-report.ymlcron: "30 3 * * *"(Actions cron is UTC; 03:30 UTC == 09:00 IST) plusworkflow_dispatchfor manual runs.permissions:contents: read,pull-requests: read.actions/checkoutandactions/setup-pythonpinned to commit SHAs with version comments, matching the other workflows in this repo;persist-credentials: false.github.token,secrets.TEAMS_WEBHOOK_URL, andTARGET_REPOas env vars — no secrets in command arguments.scripts/daily_pr_report.pyGET /repos/{repo}/pulls?state=openat 100/page with a bounded page loop, so large queues aren't truncated silently.yyyy-mm-ddcreated date, URL per PR); emits the exact single-line message when nothing is open.{"text": report}to the webhook, matching the payload shape already used byissue-notify.yml. The webhook URL is never logged — only the response status.GITHUB_TOKEN/TEAMS_WEBHOOK_URL, and catches onlyrequests.RequestException/ValueErrorper repo standards.Report output:
Empty case sends exactly
Daily mssql-python report: No open pull requests found.TEAMS_WEBHOOK_URLalready exists as a repo secret (used byissue-notify.yml), so no new secret setup should be required — worth confirming the same webhook targets the intended channel for this report.