Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Please add support for ignoring files from a specific path #122

Closed
zahid-arbisoft opened this issue Sep 25, 2020 · 2 comments
Closed

Please add support for ignoring files from a specific path #122

zahid-arbisoft opened this issue Sep 25, 2020 · 2 comments
Assignees
Labels
Type: Feature New feature or request

Comments

@zahid-arbisoft
Copy link

zahid-arbisoft commented Sep 25, 2020

Please describe your suggestion: 提案の概要

I want to get all git diff files except from a specific folder, that folder could be anywhere in the start, mid or end of the path. For example, I want all .py files but not from the migrations folder

/migrations/abc.py 
/feature/migrations/abc.py 
/migrations/files/abc.py

Describe the solution you'd like: 考えうる解決方法

Ignore filtered files which has migrations anywhere in path

IGNORE_PATH: |
  migrations

Describe alternatives you've considered: 考えうる代替案

Currently, there is no alternate for this, I am removing files from the final output using script 😞

@welcome
Copy link

welcome bot commented Sep 25, 2020

🙌 Thanks for opening your first issue here! Be sure to follow the issue template!

@technote-space technote-space added the Type: Feature New feature or request label Sep 27, 2020
@github-actions github-actions bot added the Status: In Progress Tracking issues with work in progress label Oct 7, 2020
@technote-space
Copy link
Owner

@zahid-arbisoft

The action has been updated to allow you to set the pattern of the file freely.

e.g.

PATTERNS: |
  **/*.py
  !**/migrations/**

included files

- file1.py
- src/file2.py

excluded files

- src/migrations/files/abc.py
- migrations/abc.py
- feature/migrations/abc.py

For more information on the patterns you can specify, please check this page.
https://github.com/isaacs/minimatch#minimatch

Use PATTERNS option since PREFIX_FILTER and SUFFIX_FILTER options are no longer available.

@github-actions github-actions bot removed the Status: In Progress Tracking issues with work in progress label Oct 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants