Skip to content

Commit

Permalink
Merge pull request #1303 from corda/jacob/ES-1485
Browse files Browse the repository at this point in the history
ES-1485 PR and Branch housekeeping automation (still dry-run)
  • Loading branch information
jacob-scott3141 authored Oct 17, 2023
2 parents ef8a898 + 6211fc3 commit decde62
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/remove-stale-branches.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
on:
workflow_dispatch: # this will eventually be a cron job - for now it is used in manual testing
inputs:
days_before_stale:
type: number
default: 30
days_before_delete:
type: number
default: 14
name: 'Remove stale branches'
on:
schedule:
- cron: '0 0 * * 1-5'

jobs:
remove-stale-branches:
Expand All @@ -16,8 +11,9 @@ jobs:
- uses: fpicalausa/[email protected]
with:
dry-run: true
days-before-branch-stale: ${{ inputs.days_before_stale }}
days-before-branch-delete: ${{ inputs.days_before_delete }}
days-before-branch-stale: 30
days-before-branch-delete: 14
stale-branch-message: "@{author} The branch [{branchName}]({branchUrl}) hasn't been updated in the last 30 days and is marked as stale. It will be removed in 14 days.\r\nIf you want to keep this branch around, delete this comment or add new commits to this branch."
exempt-protected-branches: true
exempt-branches-regex: "^(release\\/|feature\\/|poc\\/).*"
operations-per-run: 30

0 comments on commit decde62

Please sign in to comment.