Skip to content
Integration

GitHub integrations and automation

Say what should happen in GitHub, in plain words. Whenever builds it and runs it on a schedule, webhook or app event.

Connection requirements, provider permissions and optional AI usage apply. Read the runtime limits.

No credit card needed.

GitHub on Whenever

About GitHub

GitHub is a code hosting platform for version control and collaboration, offering Git-based repository management, issue tracking, and continuous integration features

How Whenever connects

Through its API, with the provider’s credentials and permissions.

Through its MCP server, where its tools and permissions fit the job.

Build it from your AI client

Connect Claude, Cursor or Codex to the Whenever MCP server. Your coding agent builds and deploys the GitHub workflow. It then runs on Whenever, with the chat closed.

Set up the Whenever MCP server

Plan your GitHub workflow

Most GitHub automations fall into two types. Some react to something that happened in a repository, such as a pull request being opened, an issue being labeled, or a release being published. Others collect state across many repositories on a schedule: stale pull requests, issues without an owner, or releases since the last report. GitHub repository and organization webhooks deliver the first type as events. The second type reads the REST or GraphQL API and has to page through results, because list endpoints return a limited number of items per request.

Two catalogue templates use GitHub as context for operations decisions. The alert-triage brief takes an alert from a monitoring tool, pulls recent commits and open issues for the affected service, drafts a remediation plan, and files it in ClickUp before paging PagerDuty and posting to Slack. The deployment-window brief reads recent releases from one named repository, checks a Google Calendar for conflicts, and places a tentative hold. In both, GitHub is only read. That makes a read-only token a sensible starting point.

Plan permissions at repository level. A fine-grained personal access token is limited to selected repositories and lists specific permissions such as Issues, Pull requests, or Contents. A GitHub App installation can be approved by an organization without being tied to one person's account. Organization owners can require approval before fine-grained tokens can access their repositories. Until a token is approved, it can only read public resources, so a token that works on your own repositories may still see nothing in company ones.

Rate limits matter more than people expect. Authenticated REST requests have an hourly limit, and secondary limits apply to bursts of requests and to content creation such as many comments or issues in a short time. A nightly report covering fifty repositories should request only the fields it needs and avoid fetching every commit. For runs started by webhooks, record the issue or pull request number you have handled, so that if the same event arrives again it is not handled twice.

GitHub workflow examples

Starter briefs to set up with your accounts, not finished workflows.

Remediation plan from a monitoring alert

Based on the alert-triage template: GitHub supplies recent commits and open issues as context for the plan.

Build this workflow

Weekly stale pull request digest

A scheduled read across a fixed set of repositories. It lists pull requests with no recent activity, and the threshold is stated explicitly.

Build this workflow

Label new issues from a fixed keyword table

An event-driven tidy-up using a fixed rule table, so the same issue text always gets the same labels.

Build this workflow

GitHub workflows to start from

Real briefs for this app. Pick one; Whenever writes it for your accounts.

Related apps for your workflows

All integrations

GitHub FAQs

Should I use a fine-grained token or a GitHub App?

A fine-grained personal access token is quickest for your own repositories and can be limited to specific repositories and permissions. A GitHub App suits organization repositories because an owner installs it and its access is not tied to one employee's account.

Why does my token see public repositories but not my company's?

Organizations can block fine-grained tokens or require approval, and a pending token can only read public resources. Organizations that use SAML single sign-on also require you to authorize a classic token. Check the organization's token policy before assuming the workflow is wrong.

How many GitHub API calls can a scheduled report make?

Personal tokens get 5,000 REST requests an hour. Secondary limits cap concurrent requests and content creation, roughly 80 content-creating requests a minute. The x-ratelimit headers show what remains. Large reports should read only the fields they need, and GraphQL can return nested data in fewer requests.

Webhook or schedule for pull request automation?

Use a repository or organization webhook when each event needs a response, for example labeling a newly opened issue. Use a schedule for summaries over time. A schedule starts a run every time, even when nothing changed.

What can a fine-grained token not do yet?

GitHub lists gaps, including access to several organizations with one token, the Checks API, Packages, and contributing to repositories where you are an outside collaborator. For those cases, use a classic token or a GitHub App.

Your first workflow is one sentence away.

One workflow free. No card. Weekly AI-building limits.