From 9146a011f9ac2dfd6a2720aa7d72277cfda96970 Mon Sep 17 00:00:00 2001 From: Andy Fragen Date: Mon, 25 Apr 2022 10:32:26 -0700 Subject: [PATCH 1/2] update GHA --- .github/workflows/wp-phpunit.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wp-phpunit.yml b/.github/workflows/wp-phpunit.yml index 70aa4c5..6f90d41 100644 --- a/.github/workflows/wp-phpunit.yml +++ b/.github/workflows/wp-phpunit.yml @@ -19,10 +19,13 @@ jobs: strategy: fail-fast: false matrix: - operating-system: [ubuntu-18.04] - php-versions: ['7.3', '7.4', '8.0', '8.1'] + operating-system: [ubuntu-latest] + php-versions: ['7.4', '8.0', '8.1'] phpunit-versions: ['9.5.20'] include: + - php-versions: '7.3' + phpunit-versions: '9.5.20' + operating-system: 'ubuntu-18.04' - php-versions: '7.2' phpunit-versions: '7.5.20' operating-system: ubuntu-18.04 From 392d032d08586c061aac19a2d1d88dfa6c8cc1ed Mon Sep 17 00:00:00 2001 From: Andy Fragen Date: Mon, 25 Apr 2022 18:58:31 -0700 Subject: [PATCH 2/2] add missing `name` in remote install --- .github/workflows/wp-phpunit.yml | 6 +++--- CHANGES.md | 3 +++ git-updater-gist.php | 2 +- src/Gist/Gist_API.php | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/wp-phpunit.yml b/.github/workflows/wp-phpunit.yml index 6f90d41..054de92 100644 --- a/.github/workflows/wp-phpunit.yml +++ b/.github/workflows/wp-phpunit.yml @@ -23,12 +23,12 @@ jobs: php-versions: ['7.4', '8.0', '8.1'] phpunit-versions: ['9.5.20'] include: - - php-versions: '7.3' - phpunit-versions: '9.5.20' - operating-system: 'ubuntu-18.04' - php-versions: '7.2' phpunit-versions: '7.5.20' operating-system: ubuntu-18.04 + - php-versions: '7.3' + phpunit-versions: '9.5.20' + operating-system: 'ubuntu-18.04' name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} steps: - name: Checkout diff --git a/CHANGES.md b/CHANGES.md index f3e860a..6b78dfe 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,8 @@ [unreleased] +#### 2.0.1 / 2022-04-05 +* add missing `name` for remote install + #### 2.0.0 / 2022-04-24 * require PHP 7.2+ diff --git a/git-updater-gist.php b/git-updater-gist.php index a5f09eb..655397a 100644 --- a/git-updater-gist.php +++ b/git-updater-gist.php @@ -13,7 +13,7 @@ * Plugin Name: Git Updater - Gist * Plugin URI: https://github.com/afragen/git-updater-gist * Description: Add GitHub Gist hosted repositories to the Git Updater plugin. - * Version: 2.0.0 + * Version: 2.0.1 * Author: Andy Fragen * License: MIT * Network: true diff --git a/src/Gist/Gist_API.php b/src/Gist/Gist_API.php index d7280ec..c9b243e 100644 --- a/src/Gist/Gist_API.php +++ b/src/Gist/Gist_API.php @@ -393,6 +393,7 @@ private function get_remote_gist_install( $headers ) { $this->type->owner = $headers['owner']; $this->type->slug = $headers['repo']; $this->type->gist_id = $headers['repo']; + $this->type->name = $headers['repo']; $this->type->branch = 'master'; $response = $this->api( '/gists/:gist_id' );