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.
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
When an issue or pull request is opened, GitHub notifies ClickRuntime straight away.
AI reads it and picks a type, a priority and any likely duplicate among open issues.
The labels are added in GitHub.
A row is added to your Triage sheet.
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
Build your own
Need it to work differently?
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
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 tFAQ
Common questions
What does each sheet row contain?
Does it relabel items later?
Which priorities does it use?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Fill a timesheet sheet from your GitHub activity
Every Friday your timesheet sheet gets rows for the week's work, grouped by repository and day, with a short description and estimated hours.
See how it worksLog daily engineering activity to a sheet
Each morning yesterday's merged pull requests and closed issues are added to a sheet, and a short summary is sent to you.
See how it worksPublish blog posts from a topic sheet to your GitHub site
On your schedule, the next topic in your sheet becomes a blog post committed to your site's repository, and the row is marked done.
See how it worksKeep exploring
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.