Skip to content

Commit a58046d

Browse files
committed
update parse_asset_dir_response
1 parent 1fd58ac commit a58046d

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGES.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
[unreleased]
22

3-
#### 2.4.0 /2024-12-30
3+
#### 2.4.1 / 2025-01-02
4+
* update `GitLab_API::parse_asset_dir_response`
5+
6+
#### 2.4.0 / 2024-12-30
47
* update for checking contents, assets, changes, and readmes
58

69
#### 2.3.2 / 2024-12-26

git-updater-gitlab.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Plugin Name: Git Updater - GitLab
1414
* Plugin URI: https://github.com/afragen/git-updater-gitlab
1515
* Description: Add GitLab hosted repositories to the Git Updater plugin.
16-
* Version: 2.4.0
16+
* Version: 2.4.1
1717
* Author: Andy Fragen
1818
* License: MIT
1919
* Network: true

src/GitLab/GitLab_API.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,11 @@ protected function parse_asset_dir_response( $response ) {
491491
$assets[ $asset->name ] = $asset->download_url;
492492
}
493493

494+
if ( empty( $assets ) ) {
495+
$assets['message'] = 'No assets found';
496+
$assets = (object) $assets;
497+
}
498+
494499
return $assets;
495500
}
496501

0 commit comments

Comments
 (0)