-
Suggestion
-
Resolution: Won't Fix
Problem Definition
Users can exclude certain files from appearing in pull requests from Repository settings > Excluded files.
At the moment, it is not possible to negate a pattern. This can create issues in situations like the following:
A repo has the following directory structure, and users want to exclude everything but the contents in directory C:
- A
-- B
-- foo.go
-- bar.go
-- C
-- c.go
-- D
-- d.go
x.go
y.go
Since it is not possible to negate patterns, the way to achieve this at the moment would be to use the following patterns:
/A/B/**
/A/D/**
/A/y.go
/A/x.go
If the directories and files in A are generated content that dynamically changes, the patterns need to be updated with each change, which is not very practical.
Suggested Solution
Allow pattern negation in Excluded files.
In the use case mentioned above, users could then define a pattern like the following, without continuously needing to update the excluded files and directories:
root/A/*
!root/A/C
!root/A/C/**