mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2024-12-23 11:29:00 +00:00
This commit is contained in:
parent
2af80cf8d4
commit
832f0df38c
@ -25,7 +25,25 @@ class PullModel extends \JModelDatabase
|
||||
* @var array
|
||||
* @since 2.0
|
||||
*/
|
||||
protected $nonProductionFolders = array('build', 'docs', 'installation', 'tests');
|
||||
protected $nonProductionFolders = array('build', 'docs', 'installation', 'tests', '.github');
|
||||
|
||||
/**
|
||||
* Array containing non-production files
|
||||
*
|
||||
* @var array
|
||||
* @since 2.0
|
||||
*/
|
||||
protected $nonProductionFiles = array(
|
||||
'.gitignore',
|
||||
'.travis.yml',
|
||||
'README.md',
|
||||
'build.xml',
|
||||
'composer.json',
|
||||
'composer.lock',
|
||||
'phpunit.xml.dist',
|
||||
'robots.txt.dist',
|
||||
'travisci-phpunit.xml',
|
||||
);
|
||||
|
||||
/**
|
||||
* Method to parse a patch and extract the affected files
|
||||
@ -102,6 +120,11 @@ class PullModel extends \JModelDatabase
|
||||
{
|
||||
$filePath = explode('/', $file->new);
|
||||
|
||||
if (in_array($filePath[0], $this->nonProductionFiles))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (in_array($filePath[0], $this->nonProductionFolders))
|
||||
{
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user