From d45abda0dc493cf621bb0c90c97ef1d888d930fb Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 1 Aug 2022 10:47:24 +1200 Subject: [PATCH] MNT Standardise modules --- .github/workflows/ci.yml | 2 +- .github/workflows/keepalive.yml | 2 +- .scrutinizer.yml | 12 ------------ .travis.yml | 4 ---- readme.md => README.md | 14 +++++--------- phpunit.xml.dist | 1 + 6 files changed, 8 insertions(+), 27 deletions(-) delete mode 100644 .scrutinizer.yml delete mode 100644 .travis.yml rename readme.md => README.md (78%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 93ea166..ce15c3b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,5 +12,5 @@ jobs: ci: name: CI # Only run cron on the silverstripe account - if: (github.event_name == 'schedule' && startsWith(github.repository, 'silverstripe/')) || (github.event_name != 'schedule') + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1 diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml index ebf9716..4cf5fbb 100644 --- a/.github/workflows/keepalive.yml +++ b/.github/workflows/keepalive.yml @@ -10,7 +10,7 @@ jobs: keepalive: name: Keepalive # Only run cron on the silverstripe account - if: (github.event_name == 'schedule' && startsWith(github.repository, 'silverstripe/')) || (github.event_name != 'schedule') + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest steps: - name: Keepalive diff --git a/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index 3622e71..0000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,12 +0,0 @@ -checks: - php: true - -build: - nodes: - analysis: - tests: - override: [php-scrutinizer-run] - -filter: - paths: ["src/*", "tests/*"] - diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 785d9ea..0000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -version: ~> 1.0 - -import: - - silverstripe/silverstripe-travis-shared:config/provision/standard-jobs-range-npm.yml diff --git a/readme.md b/README.md similarity index 78% rename from readme.md rename to README.md index 6929b32..295a37c 100644 --- a/readme.md +++ b/README.md @@ -1,13 +1,9 @@ # Tag Field -Custom tag input field, for SilverStripe. - [![CI](https://github.com/silverstripe/silverstripe-tagfield/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-tagfield/actions/workflows/ci.yml) -[![Code Quality](http://img.shields.io/scrutinizer/g/silverstripe/silverstripe-tagfield.svg?style=flat)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-tagfield) -[![Code coverage](https://codecov.io/gh/silverstripe/silverstripe-tagfield/branch/master/graph/badge.svg)](https://codecov.io/gh/silverstripe/silverstripe-tagfield) -[![Version](http://img.shields.io/packagist/v/silverstripe/tagfield.svg?style=flat)](https://packagist.org/packages/silverstripe/tagfield) -[![License](http://img.shields.io/packagist/l/silverstripe/tagfield.svg?style=flat)](license.md) -[![SilverStripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) +[![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) + +Custom tag input field, for SilverStripe. ## Overview @@ -16,13 +12,13 @@ Custom tag input field, for SilverStripe. Allows storing tags as a relationship, or comma-delimited strings. Supports autocompletion with lazy-loading. -Note: The field is optimised for usage in the SilverStripe CMS UI. +Note: The field is optimised for usage in the Silverstripe CMS UI. The form field class itself can be used outside of the CMS, but you'll need to build your own frontend to interpret the raw field data (`data-schema` attribute). ## Requirements -* SilverStripe 4.0 +* Silverstripe 4.0 ## Installing diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 8a5bffa..07f3662 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,3 +1,4 @@ +