diff --git a/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php b/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php
index 965ab15..95b149b 100644
--- a/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php
+++ b/administrator/components/com_patchtester/PatchTester/Model/PullsModel.php
@@ -347,7 +347,8 @@ class PullsModel extends \JModelDatabase
$pull->number,
$this->getDb()->quote($pull->title),
$this->getDb()->quote(\JHtml::_('string.truncate', $pull->body, 100)),
- $this->getDb()->quote($pull->html_url)
+ $this->getDb()->quote($pull->html_url),
+ $this->getDb()->quote($pull->head->sha)
);
$data[] = implode($pullData, ',');
@@ -361,7 +362,8 @@ class PullsModel extends \JModelDatabase
$this->getDb()->quoteName('pull_id'),
$this->getDb()->quoteName('title'),
$this->getDb()->quoteName('description'),
- $this->getDb()->quoteName('pull_url')
+ $this->getDb()->quoteName('pull_url'),
+ $this->getDb()->quoteName('sha')
)
)
->values($data)
diff --git a/administrator/components/com_patchtester/PatchTester/View/Pulls/tmpl/default.php b/administrator/components/com_patchtester/PatchTester/View/Pulls/tmpl/default.php
index 021d320..322c423 100644
--- a/administrator/components/com_patchtester/PatchTester/View/Pulls/tmpl/default.php
+++ b/administrator/components/com_patchtester/PatchTester/View/Pulls/tmpl/default.php
@@ -97,6 +97,9 @@ $sortFields = $this->getSortFields();
|
+
+
+ |
|
diff --git a/administrator/components/com_patchtester/PatchTester/View/Pulls/tmpl/default_items.php b/administrator/components/com_patchtester/PatchTester/View/Pulls/tmpl/default_items.php
index 67eeaa6..ada12e8 100644
--- a/administrator/components/com_patchtester/PatchTester/View/Pulls/tmpl/default_items.php
+++ b/administrator/components/com_patchtester/PatchTester/View/Pulls/tmpl/default_items.php
@@ -22,6 +22,9 @@ foreach ($this->items as $i => $item) :
escape($item->title); ?>
|
+
+ sha, 0, 10); ?>
+ |
diff --git a/administrator/components/com_patchtester/install/sql/mysql/install.sql b/administrator/components/com_patchtester/install/sql/mysql/install.sql
index 10a6159..3efd5b2 100644
--- a/administrator/components/com_patchtester/install/sql/mysql/install.sql
+++ b/administrator/components/com_patchtester/install/sql/mysql/install.sql
@@ -4,6 +4,7 @@ CREATE TABLE IF NOT EXISTS `#__patchtester_pulls` (
`title` varchar(200) NOT NULL,
`description` varchar(150) NOT NULL DEFAULT '',
`pull_url` varchar(255) NOT NULL,
+ `sha` varchar(40) NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;
diff --git a/administrator/components/com_patchtester/install/sql/postgresql/install.sql b/administrator/components/com_patchtester/install/sql/postgresql/install.sql
index ed82985..12906c3 100644
--- a/administrator/components/com_patchtester/install/sql/postgresql/install.sql
+++ b/administrator/components/com_patchtester/install/sql/postgresql/install.sql
@@ -4,6 +4,7 @@ CREATE TABLE IF NOT EXISTS "#__patchtester_pulls" (
"title" character varying(200) NOT NULL,
"description" character varying(150) DEFAULT '' NOT NULL,
"pull_url" character varying(255) NOT NULL,
+ "sha" character varying(40) NOT NULL,
PRIMARY KEY ("id")
);
diff --git a/administrator/components/com_patchtester/install/sql/sqlsrv/install.sql b/administrator/components/com_patchtester/install/sql/sqlsrv/install.sql
index cecc431..386dc50 100644
--- a/administrator/components/com_patchtester/install/sql/sqlsrv/install.sql
+++ b/administrator/components/com_patchtester/install/sql/sqlsrv/install.sql
@@ -4,6 +4,7 @@ CREATE TABLE [#__patchtester_pulls] (
[title] [nvarchar](200) NOT NULL,
[description] [nvarchar](150) NOT NULL DEFAULT '',
[pull_url] [nvarchar](255) NOT NULL,
+ [sha] [nvarchar](40) NOT NULL,
CONSTRAINT [PK_#__patchtester_pulls] PRIMARY KEY CLUSTERED
(
[id] ASC
diff --git a/administrator/components/com_patchtester/language/de-DE/de-DE.com_patchtester.ini b/administrator/components/com_patchtester/language/de-DE/de-DE.com_patchtester.ini
index 479732b..fb48890 100644
--- a/administrator/components/com_patchtester/language/de-DE/de-DE.com_patchtester.ini
+++ b/administrator/components/com_patchtester/language/de-DE/de-DE.com_patchtester.ini
@@ -59,4 +59,5 @@ COM_PATCHTESTER_REQUIREMENTS_NOT_MET="Ihr System erfüllt nicht die Mindestvorra
COM_PATCHTESTER_REVERT_OK="Der Patch wurde zurückgenommen."
COM_PATCHTESTER_REVERT_PATCH="Patch zurücknehmen"
COM_PATCHTESTER_TEST_THIS_PATCH="Diesen Patch testen"
-COM_PATCHTESTER_TOOLBAR_FETCH_DATA="Daten abrufen"
\ No newline at end of file
+COM_PATCHTESTER_TOOLBAR_FETCH_DATA="Daten abrufen"
+COM_PATCHTESTER_SHA="SHA"
diff --git a/administrator/components/com_patchtester/language/en-GB/en-GB.com_patchtester.ini b/administrator/components/com_patchtester/language/en-GB/en-GB.com_patchtester.ini
index 68e2d52..18430b5 100644
--- a/administrator/components/com_patchtester/language/en-GB/en-GB.com_patchtester.ini
+++ b/administrator/components/com_patchtester/language/en-GB/en-GB.com_patchtester.ini
@@ -60,3 +60,4 @@ COM_PATCHTESTER_REVERT_OK="Patch successfully reverted"
COM_PATCHTESTER_REVERT_PATCH="Revert Patch"
COM_PATCHTESTER_TEST_THIS_PATCH="Test This Patch"
COM_PATCHTESTER_TOOLBAR_FETCH_DATA="Fetch Data"
+COM_PATCHTESTER_SHA="SHA"
diff --git a/administrator/components/com_patchtester/language/fr-FR/fr-FR.com_patchtester.ini b/administrator/components/com_patchtester/language/fr-FR/fr-FR.com_patchtester.ini
index 2611b1d..766a23b 100644
--- a/administrator/components/com_patchtester/language/fr-FR/fr-FR.com_patchtester.ini
+++ b/administrator/components/com_patchtester/language/fr-FR/fr-FR.com_patchtester.ini
@@ -60,3 +60,4 @@ COM_PATCHTESTER_REVERT_OK="Correctif retiré avec succès"
COM_PATCHTESTER_REVERT_PATCH="Retirer le correctif"
COM_PATCHTESTER_TEST_THIS_PATCH="Tester ce correctif"
COM_PATCHTESTER_TOOLBAR_FETCH_DATA="Extraire les données"
+COM_PATCHTESTER_SHA="SHA"
diff --git a/administrator/components/com_patchtester/language/nl-NL/nl-NL.com_patchtester.ini b/administrator/components/com_patchtester/language/nl-NL/nl-NL.com_patchtester.ini
index 77c05a5..6ad1a3d 100644
--- a/administrator/components/com_patchtester/language/nl-NL/nl-NL.com_patchtester.ini
+++ b/administrator/components/com_patchtester/language/nl-NL/nl-NL.com_patchtester.ini
@@ -44,3 +44,4 @@ COM_PATCHTESTER_REVERT_OK="Patch met succes ongedaan gemaakt"
COM_PATCHTESTER_REVERT_PATCH="Patch ongedaan maken"
COM_PATCHTESTER_TEST_THIS_PATCH="Test deze patch"
COM_PATCHTESTER_TOOLBAR_FETCH_DATA="Gegevens ophalen"
+COM_PATCHTESTER_SHA="SHA"
|