-
Notifications
You must be signed in to change notification settings - Fork 9
/
action.yml
57 lines (57 loc) · 2.69 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: "Remove Stale Branches"
description: "Cleanup stale branches from a repository"
author: "Francois Picalausa"
runs:
using: "node20"
main: "dist/index.js"
inputs:
github-token:
description: "PAT for GitHub API authentication."
required: false
default: ${{ github.token }}
dry-run:
description: "Flag that prevents this action from doing any modification to the repository."
required: false
default: "false"
exempt-organization:
description: "Name of a Github organization. Branches for which the latest commiter belongs to this organization will be exempt from cleanup."
required: false
exempt-branches-regex:
description: "Regular expression defining branches name that are exempt from cleanup. Defaults to `^(main|master)$`."
required: false
default: "^(main|master)$"
exempt-protected-branches:
description: "Whether protected branches are exempted"
required: false
default: "true"
exempt-authors-regex:
description: "Regular expression defining authors who are exempt from cleanup. By default, no author is exempted."
required: false
stale-branch-message:
description: "Template for commit comments notifying the author that their branch will be removed."
default: "@{author} Your branch [{branchName}]({branchUrl}) hasn't been updated in the last {daysBeforeBranchStale} days and is marked as stale. It will be removed in {daysBeforeBranchDelete} days.\r\nIf you want to keep this branch around, add new commits to this branch or protect it."
required: false
days-before-branch-stale:
description: "Number of days since the last commit before a branch is considered stale. Once stale, this action will leave a comment on the last commit, marking the branch as stale."
default: "90"
required: false
days-before-branch-delete:
description: "Number of days before a stale branch is removed."
default: "7"
required: false
operations-per-run:
description: "Maximum number of stale branches to look at in any run of this action."
default: "10"
required: false
ignore-unknown-authors:
description: "Whether to abort early when a commit author cannot be identified. By default, stop early since this may indicate that the token used to run the action doesn't have the right privileges. Set to true and define a default recipient instead if not a concern."
default: "false"
required: false
default-recipient:
description: "A string corresponding to the username to be tagged on stale branches from unknown authors"
default: ""
required: false
ignore-branches-with-open-prs:
description: "Whether to ignore branches with open pull requests."
default: "false"
required: false