Skip to Content

GitHub

Connect GitHub to give your assistant access to repositories, pull requests, commits, and code files.

What’s included

With GitHub connected, your assistant can:

  • View repositories — See your accessible repos
  • Read files — Access code, configs, and documentation
  • Create and update files — Make changes with commits
  • Track commits — See recent activity and changes
  • Work with pull requests — List, view comments, and create new PRs

Connecting GitHub

  1. Go to Integrations
  2. Find GitHub and click Connect
  3. Authorize Town on GitHub
  4. Select which repositories to grant access to (or all)
  5. Return to Town

You can limit access to specific repositories during the GitHub authorization. Town only sees repos you explicitly grant access to.

What your assistant can do

CapabilityWhat it doesMakes changes?
List repositoriesSee your accessible reposNo
Read filesView code, configs, and docsNo
Create or update filesAdd or edit files (creates commits)Yes
List commitsSee recent changesNo
List pull requestsView open and closed PRsNo
Create pull requestOpen a new PRYes
View PR commentsRead discussion on pull requestsNo
View issue commentsRead discussion on issuesNo

Tools that create commits or pull requests make real changes to your repositories. Use approval-required mode for workflows that use these tools.

Use cases

Activity reports

Monitor what’s happening across your repositories:

  • Daily digest of commits and pull requests
  • Highlight stale PRs that need attention
  • Track what shipped this week

PR review reminders

Stay on top of code reviews:

  • Find PRs waiting for your review
  • Get daily reminders about unreviewed requests
  • Filter by how long they’ve been open

Code monitoring

Watch for specific changes:

  • Alert when critical files are modified
  • Track dependency updates
  • Monitor configuration changes

Automated documentation

Keep docs in sync with your code:

  • Generate release notes from commits
  • Update changelogs automatically
  • Summarize what changed in a release

Configuration

Repository access

During GitHub authorization, you choose:

  • All repositories — Access to everything in your account
  • Selected repositories — Only specific repos

You can change this in your GitHub settings later.

Best practices

Start with read-only access. Begin with workflows that only read data (list repos, view commits and PRs). Add write capabilities after testing.

Use approval-required for changes. Any workflow that creates commits or pull requests should require your approval.

Limit repository access. Only grant access to the repos your workflows actually need.

Troubleshooting

”Repository not found”

  • Check if the repo is included in your GitHub authorization
  • Verify the repository name is correct
  • Private repos require explicit access grants

Can’t create files or PRs

  • Ensure your GitHub authorization includes write access
  • Check repository branch protection rules
  • Verify you have push access to the repository
Last updated on