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
Support ignore deletions with "ignore_line_deletions" param (#71)
* Support ignore deletions with "ignore_file_deletions" param
Test files_to_ignore code path
Tweak the variable type
Correct bad logic in the file ignore block
Debug
More debugging
More debugging
Fingers crossed
Another try
Last try
Lets see if this one does it
Testing again
More tests
More testing
Last test
Wait, I might be onto something
Put some changes back
Fixes
Whoops
Walk back yml test
* Rename config variable to be ignore_line_deletions
* Add and update tests
* Update action.yml to provided more consistent desc.
Co-authored-by: Javier Ferrer González <[email protected]>
* Delete redundant helper function
* Fix parse error in action.yml
---------
Co-authored-by: Javier Ferrer González <[email protected]>
| `GITHUB_TOKEN` | Yes | Automatically supplied| GitHub token needed to interact with the repository. |
61
+
| `xs_label` | No | 'size/xs' | Label for very small-sized PRs. |
62
+
| `xs_max_size` | No | '10' | Maximum number of changes allowed for XS-sized PRs. |
63
+
| `s_label` | No | 'size/s' | Label for small-sized PRs. |
64
+
| `s_max_size` | No | '100' | Maximum number of changes allowed for S-sized PRs. |
65
+
| `m_label` | No | 'size/m' | Label for medium-sized PRs. |
66
+
| `m_max_size` | No | '500' | Maximum number of changes allowed for M-sized PRs. |
67
+
| `l_label` | No | 'size/l' | Label for large-sized PRs. |
68
+
| `l_max_size` | No | '1000' | Maximum number of changes allowed for L-sized PRs. |
69
+
| `xl_label` | No | 'size/xl' | Label for extra-large-sized PRs. |
70
+
| `fail_if_xl` | No | 'false' | Whether to fail the GitHub workflow if the PR size is 'XL' (blocks the merge). |
71
+
| `message_if_xl` | No | Custom message | Message to display when a PR exceeds the 'XL' size limit. |
72
+
| `github_api_url` | No | 'https://api.github.com' | URL for the GitHub API, can be changed for GitHub Enterprise Servers. |
73
+
| `files_to_ignore` | No | '' | Files to ignore during PR size calculation. Supports newline or whitespace delimited list. |
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. |
0 commit comments