Skip to content

The moment it happens

Post new GitHub stars to a Slack channel

When someone stars your GitHub repo, a Slack message shows who it was, their company and follower count and the new star total.

Runs
The moment it happens
Apps
GitHub, Slack
AI
Not needed
Access
Metadata: read; chat:write

Send this to your assistant

Create a ClickRuntime automation: when someone stars acme/app, post their username, name, company, follower count and the repo's new star total to #community.

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 new star is a small signal, but for a young project each one matters, and the people behind them are often worth knowing. GitHub only shows a notification count, and its stargazer page has no names or companies.

With this automation GitHub calls a webhook whenever someone stars your repository. The automation looks up the person's public profile and posts their name, company and follower count to Slack, along with the new total.

Founders of developer tools watch the channel for companies trying their product, and community managers use it to spot well-known developers worth thanking.

What you get out of it

  • Who starred, not just how many

    Each message names the person and their company, which a star count on its own never tells you.

  • Running total in every post

    The current star count is included, so the channel doubles as a milestone tracker.

  • Noise control

    A follower threshold keeps busy repositories from filling the channel.

  • Profile link included

    One click opens the person's GitHub profile to see what else they work on.

  • Instant

    The webhook fires as soon as the star is given, so a launch day plays out live in Slack.

How it works

What happens, step by step

  1. GitHub sends a "star" webhook to the automation when someone stars the repository.

  2. The automation looks up the person's public GitHub profile.

  3. It posts their name, company, follower count and the repository's new star total to Slack.

  4. Unstars are ignored, so the channel only shows new stars.

Before it runs live

  • Connect GitHub
  • Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Post new GitHub stars to a Slack channeljust nowSucceeded
#community · Slack⭐ acme/app now has 4,213 stars Tae Park (tpark) · Stripe · 1,204 followers https://github.com/tpark

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
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Google Sheets
  • Combine it with other GitHub and Slack 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.
post_new_github_stars_to_a_slack_channel.pyexample
from clickruntime import on_event, credentials, http, verify, notify

CHANNEL = "#community"
MIN_FOLLOWERS = 0

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)
    resp.raise_for_status()
    return resp.json() if resp.content else None

@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"}
    body = event.json
    if event.header("X-GitHub-Event") != "star" or body.get("action") != "created":
        return {"ignored": True}
    login, repo = body["sender"]["login"], body["repository"]
    p = gh("GET", f"/users/{login}")
    if p.get("followers", 0) < MIN_FOLLOWERS:
        return {"ignored": "below follower threshold"}
    who = f"{p.get('name') or login} ({login})"
    extra = " · ".join(x for x in [p.get("company"), f"{p.get('followers', 0):,} followers"] if x)
    notify.slack(f"⭐ {repo['full_name']} now has {repo['stargazers_count']:,} stars\n{who} · {extra}\n{p['html_url']}", channel=CHANNEL)
    return {"login": login}

FAQ

Common questions

Our repo gets hundreds of stars a day. Will the channel flood?
Set MIN_FOLLOWERS, for example to 100, so only people with a following are posted. Or ask your assistant to collect stars and post one hourly summary instead.
Can it post forks too?
Yes. Subscribe the webhook to the "fork" event and ask for a second message type. Forks often mean someone is about to build on your code.
Where do I add the webhook?
In the repository settings under Webhooks, using the URL from the ClickRuntime dashboard, content type JSON, the secret you saved, and the "Stars" event.
What permissions does it need?
Metadata: read; chat:write. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's 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 “Post new GitHub stars to a Slack channel” from your assistant

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