You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,7 @@ jobs:
72
72
| `github_api_url` | No | 'https://api.github.com' | URL for the GitHub API, can be changed for GitHub Enterprise Servers. |
73
73
| `files_to_ignore` | No | '' | Files to ignore during PR size calculation. Supports newline or whitespace delimited list. |
74
74
| `ignore_line_deletions` | No | 'false' | Whether to ignore lines which are deleted when calculating the PR size. If set to 'true', deleted lines will be ignored. |
75
+
| `ignore_file_deletions` | No | 'false' | Whether to ignore completely deleted files when calculating the PR size. If set to 'true', deleted files will be ignored. |
75
76
76
77
### Example for `files_to_ignore`:
77
78
```yml
@@ -87,6 +88,7 @@ files_to_ignore: |
87
88
88
89
- PR Size Labeler considers any line addition, deletion, or modification as a change.
89
90
- A PR will be labeled as 'xl' if it exceeds the amount of changes defined in `l_max_size`.
91
+
- `ignore_file_deletions`is distinct from `ignore_line_deletions` in that it only ignores files which are deleted completely.
Copy file name to clipboardExpand all lines: src/labeler.sh
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,10 @@ labeler::label() {
10
10
local -r message_if_xl="${11}"
11
11
local -r files_to_ignore="${12}"
12
12
local -r ignore_line_deletions="${13}"
13
+
local -r ignore_file_deletions="${14}"
13
14
14
15
local -r pr_number=$(github_actions::get_pr_number)
15
-
local -r total_modifications=$(github::calculate_total_modifications "$pr_number""${files_to_ignore[*]}""$ignore_line_deletions")
16
+
local -r total_modifications=$(github::calculate_total_modifications "$pr_number""${files_to_ignore[*]}""$ignore_line_deletions""$ignore_file_deletions")
0 commit comments