Skip to content

Commit

Permalink
ENH Add scripts to remove health files. (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Feb 13, 2024
1 parent c1e0340 commit 1eaf525
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/cms-any/contributing.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

// This file propogates from the .github repository.
// See https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file#supported-file-types
if (module_account() === 'silverstripe' && module_name() !== '.github') {
delete_file_if_exists('contributing.md');
delete_file_if_exists('CONTRIBUTING.md');
delete_file_if_exists('contributing');
delete_file_if_exists('CONTRIBUTING');
}
10 changes: 10 additions & 0 deletions scripts/cms-any/support.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

// This file propogates from the .github repository.
// See https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/creating-a-default-community-health-file#supported-file-types
if (module_account() === 'silverstripe' && module_name() !== '.github') {
delete_file_if_exists('support.md');
delete_file_if_exists('SUPPORT.md');
delete_file_if_exists('support');
delete_file_if_exists('SUPPORT');
}

0 comments on commit 1eaf525

Please sign in to comment.