mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-25 07:16:42 +00:00
extend to support a comma-delimited list of patterns
This commit is contained in:
9
main.py
9
main.py
@@ -607,10 +607,11 @@ class TodoParser(object):
|
||||
return projects
|
||||
|
||||
def _should_ignore(self, file):
|
||||
ignore_pattern = os.getenv('INPUT_IGNORE', None)
|
||||
if ignore_pattern:
|
||||
if re.match(ignore_pattern, file):
|
||||
return True
|
||||
ignore_patterns = os.getenv('INPUT_IGNORE', None)
|
||||
if ignore_patterns:
|
||||
for pattern in filter(None, [pattern.strip() for pattern in ignore_patterns.split(',')]):
|
||||
if re.match(pattern, file):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user