-
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/**
Hi everyone,
Thank you for bringing this suggestion to our attention.
As explained in our new feature policy, there are many factors that influence our product roadmaps and determine the features we implement. When making decisions about what to prioritize and work on, we combine your feedback and suggestions with insights from our support teams, product analytics, research findings, and more. This information, combined with our medium- and long-term product and platform vision, determines what we implement and its priority order.
Unfortunately, as a result of inactivity (no votes or comments for an extended period of time), this suggestion didn’t make it to the roadmap and we are closing it.
While this issue has been closed, our Product Managers continue to look at requests in https://jira.atlassian.com as they develop their roadmap, including closed ones. In addition, if you feel like this suggestion is still important to your team please let us know by commenting on this ticket.
Thank you again for providing valuable feedback to our team!