Skip to content

Commit

Permalink
Set default directory exclusions for tags
Browse files Browse the repository at this point in the history
Previously, the tags list did not include any default values. This update initializes the directoryExclusionList with common exclusion directories like 'production' and 'staging'. This helps ensure that these directories are excluded by default if no selections are made.
  • Loading branch information
SquirrelDevelopper committed Nov 15, 2024
1 parent 7c1be63 commit c96b995
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ const DirectoryExclusionForm: React.FC<DirectoryExclusionFormProps> = (
props,
) => {
const [tags, setTags] = useState(
props.selectedRecord?.directoryExclusionList || [],
props.selectedRecord?.directoryExclusionList || [
'production',
'staging',
'group_vars',
'host_vars',
'library',
'module_utils',
'filters_plugin',
'roles',
'inventories',
],
);

const validateTag = (tag: string): boolean => {
Expand Down

0 comments on commit c96b995

Please sign in to comment.