mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-01-25 16:18:26 +00:00
Merge pull request #133 from zero-24/patch-1
Added non production files to the exclude array
This commit is contained in:
commit
8822140170
@ -25,7 +25,25 @@ class PullModel extends \JModelDatabase
|
|||||||
* @var array
|
* @var array
|
||||||
* @since 2.0
|
* @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
|
* Method to parse a patch and extract the affected files
|
||||||
@ -102,6 +120,11 @@ class PullModel extends \JModelDatabase
|
|||||||
{
|
{
|
||||||
$filePath = explode('/', $file->new);
|
$filePath = explode('/', $file->new);
|
||||||
|
|
||||||
|
if (in_array($filePath[0], $this->nonProductionFiles))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (in_array($filePath[0], $this->nonProductionFolders))
|
if (in_array($filePath[0], $this->nonProductionFolders))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user