Skip to content

Commit

Permalink
Preparing 4.0.36 by using new github api
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 committed Jun 25, 2020
1 parent 883ad2e commit a9315b9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions component/admin/helpers/localise.php
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ public static function getSourceGithubfiles($gh_data = array())

if (!empty($gh_token))
{
$options->set('gh.token', $gh_token);
$options->set('headers', ['Authorization' => 'token ' . $gh_token]);
$github = new Github($options);
}
else
Expand All @@ -925,7 +925,7 @@ public static function getSourceGithubfiles($gh_data = array())
// Trying with a 'read only' public repositories token
// But base 64 encoded to avoid Github alarms sharing it.
$gh_token = base64_decode('MzY2NzYzM2ZkMzZmMWRkOGU5NmRiMTdjOGVjNTFiZTIyMzk4NzVmOA==');
$options->set('gh.token', $gh_token);
$options->set('headers', ['Authorization' => 'token ' . $gh_token]);
$github = new Github($options);
}

Expand Down Expand Up @@ -1077,7 +1077,7 @@ public static function getReleases()

if (!empty($gh_token))
{
$options->set('gh.token', $gh_token);
$options->set('headers', ['Authorization' => 'token ' . $gh_token]);
$github = new Github($options);
}
else
Expand All @@ -1088,7 +1088,7 @@ public static function getReleases()
// Trying with a 'read only' public repositories token
// But base 64 encoded to avoid Github alarms sharing it.
$gh_token = base64_decode('MzY2NzYzM2ZkMzZmMWRkOGU5NmRiMTdjOGVjNTFiZTIyMzk4NzVmOA==');
$options->set('gh.token', $gh_token);
$options->set('headers', ['Authorization' => 'token ' . $gh_token]);
$github = new Github($options);
}

Expand Down Expand Up @@ -1537,7 +1537,7 @@ public static function getTargetgithubfiles($gh_data = array())

if (!empty($gh_token))
{
$options->set('gh.token', $gh_token);
$options->set('headers', ['Authorization' => 'token ' . $gh_token]);
$github = new Github($options);
}
else
Expand All @@ -1548,7 +1548,7 @@ public static function getTargetgithubfiles($gh_data = array())
// Trying with a 'read only' public repositories token
// But base 64 encoded to avoid Github alarms sharing it.
$gh_token = base64_decode('MzY2NzYzM2ZkMzZmMWRkOGU5NmRiMTdjOGVjNTFiZTIyMzk4NzVmOA==');
$options->set('gh.token', $gh_token);
$options->set('headers', ['Authorization' => 'token ' . $gh_token]);
$github = new Github($options);
}

Expand Down
4 changes: 2 additions & 2 deletions component/admin/models/fields/releases.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected function getOptions()

if (!empty($gh_token))
{
$options->set('gh.token', $gh_token);
$options->set('headers', ['Authorization' => 'token ' . $gh_token]);
$github = new Github($options);
}
else
Expand All @@ -72,7 +72,7 @@ protected function getOptions()
// Trying with a 'read only' public repositories token
// But base 64 encoded to avoid Github alarms sharing it.
$gh_token = base64_decode('MzY2NzYzM2ZkMzZmMWRkOGU5NmRiMTdjOGVjNTFiZTIyMzk4NzVmOA==');
$options->set('gh.token', $gh_token);
$options->set('headers', ['Authorization' => 'token ' . $gh_token]);
$github = new Github($options);
}

Expand Down
4 changes: 2 additions & 2 deletions localise.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<author>Christophe Demko</author>
<author>Jean-Marie Simonet</author>
<author>Ifan Evans</author>
<copyright>(C) 2018 Open Source Matters. All rights reserved.</copyright>
<copyright>(C) 2020 Open Source Matters</copyright>
<authorEmail>[email protected]</authorEmail>
<authorUrl>https://github.com/joomla-projects/com_localise</authorUrl>
<version>4.0.36-dev</version>
<version>4.0.37-dev</version>
<license>http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL</license>
<description>COM_LOCALISE_XML_DESCRIPTION</description>
<scriptfile>install.php</scriptfile>
Expand Down
4 changes: 2 additions & 2 deletions update-server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<description>Localise - nice and easy management of languages and translation files.</description>
<element>com_localise</element>
<type>component</type>
<version>4.0.36-dev</version>
<version>4.0.37-dev</version>
<infourl title="com_localise">https://github.com/joomla-projects/com_localise/</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/joomla-projects/com_localise/releases/download/4.0.36-dev/com_localise-4.0.36-dev.zip</downloadurl>
<downloadurl type="full" format="zip">https://github.com/joomla-projects/com_localise/releases/download/4.0.37-dev/com_localise-4.0.37-dev.zip</downloadurl>
</downloads>
<targetplatform name="joomla" version=".*" />
</update>
Expand Down

0 comments on commit a9315b9

Please sign in to comment.