All templates

Automated GitKraken Stale Branch Digest

Every morning, WebRun opens GitKraken, checks Workspaces for branches with no commits in the last 14 days, posts a digest to Slack showing the branch, owner, and how far behind main it is, and separately flags anything stale 30 days or more in Telegram so old branches get cleaned up instead of cluttering the repository indefinitely.

Runs on WebRun · Strict Lockdown policy
Every day at 9:00 AM WebRunorchestrates each step
1 GitKraken check branches for staleness
2 Slack post the daily digest
3 Telegram flag branches stale 30 days or more
In short

How do I find and clean up stale branches across my team?

WebRun checks GitKraken Workspaces every morning for branches with no commits in 14 days or more, posting a digest to Slack with each branch's owner and how far behind main it is. Branches stale 30 days or more also get flagged separately in Telegram, so old branches get cleaned up instead of piling up indefinitely.

  • Stale branches get flagged before they clutter the repository
  • The oldest, most abandoned branches stand out in their own channel
  • Branch cleanup happens on a schedule instead of during a big spring clean

Built for engineering teams · platform teams · tech leads · software development teams

Step by step

What does WebRun do on every run?

The exact actions WebRun takes, in order - in plain language, so you can adjust anything.

  1. WebRun signs in and gets to work

    Opens app.gitkraken.com in a real browser with your saved login - no setup, no API keys.

  2. 1
    GitKraken - check branches for staleness
    gitkraken.com
    WebRun in GitKraken: check branches for staleness
    WebRun opens GitKraken to check branches for staleness.
    • Open GitKraken Workspaces and list branches with no commits in the last 14 days
    • Capture the branch owner and how far behind main it is
    • Flag any branch stale for 30 days or more

    Done when Every branch with no commits in 14 days or more is listed with its owner.

  3. 2
    Slack - post the daily digest
    slack.com
    WebRun in Slack: post the daily digest
    WebRun opens Slack to post the daily digest.
    • Post the day's stale branch digest to the team channel
    • Show the owner and days behind main for each
    • Note which ones are also being flagged in Telegram

    Done when The team channel has today's stale branch digest.

  4. 3
    Telegram - flag branches stale 30 days or more
    telegram.org
    WebRun in Telegram: flag branches stale 30 days or more
    WebRun opens Telegram to flag branches stale 30 days or more.
    • Send a separate cleanup flag for branches stale 30 days or more
    • Name the branch and owner
    • Skip branches within the 30 day window

    Done when Every branch stale 30 days or more has a cleanup flag in Telegram.

Run settings

How is each run configured?

Starting pageWhere Chrome opens at the start of each run
app.gitkraken.com
ScheduleRuns automatically on this cadence
Every day at 9:00 AM
DeliveryHow each run's result reaches you
Stale branch digest · Slack
OutputWhat each run produces - A daily stale branch digest in Slack, with a Telegram flag for anything stale 30 days or more.
Digest
Setup & safety

Secure by default

Connect once, stays signed in

WebRun signs in once and keeps each session in a persistent environment, so every run picks up right where it left off.

Your credentials stay in your own private environment - WebRun never stores your passwords.
Strict Lockdown

Every action is checked against this policy before it runs.

Domains ALLOWLIST
Typed input ALLOW
Shell command BLOCK
File uploads BLOCK
Runs in a contained environment More on policies
Good to know

Questions, answered

Will it delete any branches?

No. WebRun only reports which branches look stale. Deleting a branch is always a decision your team makes directly.

Why separate the 30 day branches into Telegram?

So the oldest, most likely abandoned branches stand out instead of blending into the full daily digest.

What if a branch is meant to stay long term?

Exclude it from the stale check in GitKraken's own branch settings and it stops appearing on future digests.

Put this on autopilot.

Turn it on in minutes - or have our team set it up for you.