How to review a GitHub repository with an AI agent

Ask your AI agent to review open GitHub issues, pull requests and failed Actions runs. Build three queues with links back to the evidence.

Start with one authorised repository

Enable the GitHub plugin in your local OrgSDK project and configure a credential for a repository you are authorised to inspect. Use repository-scoped read access for Issues, Pull requests or Actions as needed. Check the plugin’s tool reference before choosing parameters.

Choose a time window, keep source links and check pagination. Decide in advance what evidence a person needs to see for each candidate.

Which open issues should we revisit?

Use github.listIssues with state set to open. Keep the issue title, number, update date and source link, then sort candidates by the oldest update. Pick a cutoff that reflects the team’s planning cycle and spot-check some included and excluded issues.

An old update is a reason to check the issue. Open the linked record to review recent discussion and any external project or customer context.

Which pull requests need a closer look?

Use github.listPullRequests with state set to open. Separate drafts and retain source links, update dates and any available review context. Ask a reviewer to check the oldest relevant requests against their review and approval requirements in GitHub.

Which failed workflow runs deserve investigation?

Use github.listWorkflowRuns to find completed runs on the relevant branch. Filter them to the review window and use the conclusion to select failed runs. Retain the run link and branch, and group related retries for the reviewer.

Inspect jobs or open the run in GitHub to see where it failed. Record the observed step and conclusion before drawing an inference about the cause.

Work through a GitHub Actions failure ↗

Make the review repeatable

Start with one review queue and compare it with a manual review of the same repository. Check the boundaries of the time window, empty results and permission errors. Once the transformation is consistent, save and test it as an OrgSDK action so the next run uses the same selection rule.

Browse the GitHub plugin tools and permissions ↗