Skip to content

Github Action tool to notify users of stale branches and auto delete stale branches

Notifications You must be signed in to change notification settings

gita-vahdatinia/purge_branch

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Delete and Notify of Stale Branches Using Github Actions

Add this Github Action to your repo to notify you when branches are stale and delete them if no action is taken. If you would like to keep your branch alive, you may prefix it with keep-alive- It pulls the slack credentials from Github, thus your slack and github account must be associated with the same email.

Usage

You can use the action from this example repository:

name: Purge Branches
on:
  schedule:
    - cron: '0 10 * * *' # every day @ 10 AM UTC
jobs:
  purgeBranches:
    runs-on: ubuntu-latest
    steps:
      - name: Delete & Notify Branches
        uses: gita-vahdatinia/purge-branchn@v1
        with:
            token: ${{ secrets.GITHUB_TOKEN }}
            days-to-notify: 50
            days-to-delete: 100

About

Github Action tool to notify users of stale branches and auto delete stale branches

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages