Skip to content

The moment it happens

Triage new GitHub issues and pull requests into a sheet

Every new issue and pull request is labelled by type and priority, logged in a triage sheet, and critical ones are posted to Slack.

Runs
The moment it happens
Apps
GitHub, Google Sheets
AI
Yes, uses the built-in AI allowance
Access
GitHub issues/PR write + webhooks; sheet editor

Send this to your assistant

Create a ClickRuntime automation: when a new issue or PR is opened in acme/app, have AI pick a type and priority and spot duplicates, add labels, log it in my Triage sheet, and post critical ones to #eng.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

A product team runs a weekly triage meeting where they go through every new issue and pull request. Most of the hour is spent reading and labelling, leaving little time for the decisions that actually need discussion.

Labelling each item as it arrives and logging it in a sheet means the meeting starts with a sorted list. The team reviews the sheet, adjusts a few labels and spends its time on priorities rather than sorting.

What you get out of it

  • Triage meetings get shorter

    Items arrive labelled and logged. The meeting is about decisions, not reading.

  • A sheet for spotting trends

    Counting bugs by area or week takes a pivot table. Patterns that are hard to see in GitHub become obvious.

  • Critical items do not wait for Monday

    Anything marked critical is posted in Slack straight away. Serious problems are not held for the next meeting.

  • Duplicates are noted

    Likely duplicates are named in the sheet. The team can close them quickly.

How it works

What happens, step by step

  1. When an issue or pull request is opened, GitHub notifies ClickRuntime straight away.

  2. AI reads it and picks a type, a priority and any likely duplicate among open issues.

  3. The labels are added in GitHub.

  4. A row is added to your Triage sheet.

  5. Critical items are also posted to your #eng Slack channel.

Before it runs live

  • Connect GitHub
  • Connect your Google Sheets account and pick the spreadsheets it may use
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Triage new GitHub issues and pull requests into a sheetjust nowSucceeded
Google Sheets · Triage2026-10-17 | Issue | 931 | Login loops on SSO accounts | bug | critical

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Act only on the items that match your own rules, and skip the rest
  • Change what the AI looks for, or how it writes the result
  • Add another app, for example also send it to Slack
  • Combine it with other GitHub and Google Sheets steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
ai_triage_of_new_github_issues_and_prs_logged_to_sheets.pyexample
from datetime import date
from google.oauth2.credentials import Credentials
from googleapiclient.discovery import build
from clickruntime import on_event, credentials, http, notify, verify, ai

def gh(method, path, **kw):
    resp = http.request(method, f"https://api.github.com{path}", headers={
        "Authorization": f"Bearer {credentials.connection('github', 'work')}", "Accept": "application/vnd.github+json"}, **kw)
    return resp.raise_for_status() or (resp.json() if resp.content else None)

SHEET_ID = "your-spreadsheet-id"
SCHEMA = {"type": "object", "properties": {"type": {"type": "string"}, "priority": {"type": "string", "enum": ["critical", "high", "medium", "low"]}, "duplicate_of": {"type": "string"}}}

@on_event
def handle(event):
    if not verify.github(event.body, event.header("X-Hub-Signature-256"), credentials.secret("GITHUB_WEBHOOK_SECRET")):
        return {"ignored": "bad signature"}
    kind, body = event.header("X-GitHub-Event"), event.json
    if kind not in ("issues", "pull_request") or body["action"] != "opened":
        return {"ignored": True}
    item, repo = body.get("issue") or body["pull_request"], body["repository"]["full_name"]
    open_titles = "\n".join(f"#{i['number']} {i['title']}" for i in gh("GET", f"/repos/{repo}/issues", params={"state": "open", "per_page": 50}) if i["number"] != item["number"])
    t = ai.generate(f"{kind}: {item['title']}\n{(item.get('body') or '')[:3000]}\n\nOpen:\n{open_titles}", json_schema=SCHEMA, max_output_tokens=80,
                    system="Choose a type (bug, feature, docs, chore), a priority, and a duplicate issue number if clearly the same, else empty.").json
    gh("POST", f"/repos/{repo}/issues/{item['number']}/labels", json={"labels": [t["type"], f"priority: {t['priority']}"]})
    sheets = build("sheets", "v4", credentials=Credentials(credentials.connection("google", "work")), cache_discovery=False)
    sheets.spreadsheets().values().append(spreadsheetId=SHEET_ID, range="Triage!A:H", valueInputOption="USER_ENTERED", body={"values": [[
        str(date.today()), "PR" if kind == "pull_request" else "Issue", item["number"], item["title"], t["type"], t["priority"], t.get("duplicate_of", ""), item["html_url"]]]}).execute()
    if t["priority"] == "critical":
        notify.slack(f"Critical {t['type']}: <{item['html_url']}|{item['title']}>", channel="#eng")
    return t

FAQ

Common questions

What does each sheet row contain?
Date, issue or pull request, number, title, type, priority, possible duplicate and link.
Does it relabel items later?
No. It labels each item once when it is opened. Labels you change afterwards are left alone.
Which priorities does it use?
Critical, high, medium and low by default. You can rename them to match your existing labels.
What permissions does it need?
GitHub issues/PR write + webhooks; sheet editor. Nothing else in your accounts is used.
Does it need AI?
Yes. It uses ClickRuntime's built-in AI, so you don't need an OpenAI or Anthropic key. Every plan includes a monthly AI allowance.
How many runs does it use?
One run for each event the app sends.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Triage new GitHub issues and pull requests into a sheet” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.