Skip to content

Commit

Permalink
[ARE] Automated releasing change
Browse files Browse the repository at this point in the history
  • Loading branch information
ponsfrilus committed Apr 15, 2021
1 parent 1ed2506 commit 98ef3f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to this project will be documented in this file.

## v1.0.6
* FIX enforce default EPFL sender address

## v1.0.5
* Conference form template updated
* Better user's information
Expand Down Expand Up @@ -90,4 +93,4 @@ is always available
* Amazing logo created

## v0.0.1
* wpforms-paypal-standard plugin as template
* wpforms-paypal-standard plugin as template
15 changes: 7 additions & 8 deletions class-epfl-payonline.php
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ function wpforms_epfl_payonline_push_update( $transient ) {
// trying to get from cache first, to disable cache comment 10,20,21,22,24
if ( false == $remote = get_transient( 'upgrade_wpforms_epfl_payonline' ) ) {
// info.json is the file with the actual plugin information on your server
$remote = wp_remote_get( 'https://api.github.com/repos/epfl-si/wpforms-epfl-payonline/releases/latest', array(
$remote = wp_remote_get( 'https://api.github.com/repos/epfl-idevelop/wpforms-epfl-payonline/releases/latest', array(
'timeout' => 10,
'headers' => array(
'Accept' => 'application/json'
Expand All @@ -872,7 +872,7 @@ function wpforms_epfl_payonline_push_update( $transient ) {
$res->plugin = dirname( plugin_basename( __FILE__ )) . '/wpforms-epfl-payonline.php';
$res->new_version = $latest_version;
$res->tested = $this->wp_tested_version;
$res->package = 'https://github.com/epfl-si/wpforms-epfl-payonline/releases/latest/download/wpforms-epfl-payonline.zip';
$res->package = 'https://github.com/epfl-idevelop/wpforms-epfl-payonline/releases/latest/download/wpforms-epfl-payonline.zip';
$transient->response[$res->plugin] = $res;
// error_log(var_export($res, true));
// $transient->checked[$res->plugin] = $latest_version;
Expand Down Expand Up @@ -916,7 +916,7 @@ function wpforms_epfl_payonline_plugin_info( $res, $action, $args ) {
if ( false == $remote = get_transient( 'upgrade_wpforms_epfl_payonline' ) ) {

// info.json is the file with the actual plugin information on your server
$remote = wp_remote_get( 'https://api.github.com/repos/epfl-si/wpforms-epfl-payonline/releases/latest', array(
$remote = wp_remote_get( 'https://api.github.com/repos/epfl-idevelop/wpforms-epfl-payonline/releases/latest', array(
'timeout' => 10,
'headers' => array(
'Accept' => 'application/json'
Expand Down Expand Up @@ -976,7 +976,7 @@ private function getReadMe() {
require_once(plugin_dir_path( __FILE__ ) .'/lib/Parsedown.php');
$Parsedown = new Parsedown();
$readme_content = $Parsedown->text($readme_content); # prints: <p>Hello <em>Parsedown</em>!</p>
return 'See README.md on <a href="https://github.com/epfl-si/wpforms-epfl-payonline/blob/master/README.md">GitHub</a>.<br><div class="epfl_payonline_readme">' . $readme_content . '</div>';
return 'See README.md on <a href="https://github.com/epfl-idevelop/wpforms-epfl-payonline/blob/master/README.md">GitHub</a>.<br><div class="epfl_payonline_readme">' . $readme_content . '</div>';
}

/**
Expand All @@ -989,22 +989,21 @@ private function getInstall() {
require_once(plugin_dir_path( __FILE__ ) .'/lib/Parsedown.php');
$Parsedown = new Parsedown();
$install_content = $Parsedown->text($install_content); # prints: <p>Hello <em>Parsedown</em>!</p>
return 'See INSTALL.md on <a href="https://github.com/epfl-si/wpforms-epfl-payonline/blob/master/INSTALL.md">GitHub</a>.<br><div class="epfl_payonline_install">' . $install_content . '</div>';
return 'See INSTALL.md on <a href="https://github.com/epfl-idevelop/wpforms-epfl-payonline/blob/master/INSTALL.md">GitHub</a>.<br><div class="epfl_payonline_install">' . $install_content . '</div>';
}

/**
* Retrieve CHANGELOG.md on github and parse markdown
*
*/
private function getChangelog() {
$changelog_content = file_get_contents('https://raw.githubusercontent.com/epfl-si/wpforms-epfl-payonline/master/CHANGELOG.md', true);
$changelog_content = file_get_contents('https://raw.githubusercontent.com/epfl-idevelop/wpforms-epfl-payonline/master/CHANGELOG.md', true);
require_once(plugin_dir_path( __FILE__ ) .'/lib/Parsedown.php');
$Parsedown = new Parsedown();
$changelog_content = $Parsedown->text($changelog_content); # prints: <p>Hello <em>Parsedown</em>!</p>
return 'See CHANGELOG.md on <a href="https://github.com/epfl-si/wpforms-epfl-payonline/blob/master/CHANGELOG.md">GitHub</a>.<br><div class="epfl_payonline_changelog">' . $changelog_content . '</div>';
return 'See CHANGELOG.md on <a href="https://github.com/epfl-idevelop/wpforms-epfl-payonline/blob/master/CHANGELOG.md">GitHub</a>.<br><div class="epfl_payonline_changelog">' . $changelog_content . '</div>';
}

}

new WPForms_EPFL_Payonline();

0 comments on commit 98ef3f2

Please sign in to comment.