Make "enableReleasePackages" plural so that it's consistent with "enableReleaseAssets"

This commit is contained in:
Yahnis Elsts 2021-09-23 18:11:12 +03:00
parent 3f12a21751
commit a5dd2bb951
2 changed files with 2 additions and 2 deletions

View File

@ -389,7 +389,7 @@ if ( !class_exists('Puc_v4p11_Vcs_GitLabApi', false) ):
$this->releasePackageEnabled = false;
}
public function enableReleasePackage() {
public function enableReleasePackages() {
$this->releaseAssetsEnabled = false;
$this->releasePackageEnabled = true;
}

View File

@ -280,7 +280,7 @@ A Gitlab repository can be checked for updates in 4 different ways.
- Add the following code:
```php
//Add the following code to your main plugin file or `functions.php` file to check for a new update from releases using generic packages
$myUpdateChecker->getVcsApi()->enableReleasePackage();
$myUpdateChecker->getVcsApi()->enableReleasePackages();
```
- PUC will periodically check the release version (i.e. the tag name of the release) and will display a notification if the release is a greater version than the installed version.
- The release tag name should loosely follow [SemVer](http://semver.org/) but these are all valid release names: `v1.2.3`, `v1.2-foo`, `1.2.3_rc1-ABC`, `1.2.3.4.5` However, be warned that it's not smart enough to filter out alpha/beta/RC versions. If that's a problem, you might want to use GitLab branches instead.