Skip to content

Commit

Permalink
Merge branch 'release/1.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmypuckett committed Mar 14, 2023
2 parents 5384384 + 1e749df commit 6b85119
Show file tree
Hide file tree
Showing 92 changed files with 728 additions and 1,314 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.2, 7.3, 7.4]
php: [8.1, 8.2]
stability: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} - ${{ matrix.stability }}

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
# Fetch 10 commits or Scrutinizer will throw ("Failed to retrieve commit parents. If you use a shallow git checkout, please checkout at least a depth of one."), see: RepositoryIntrospector at scrutinizer-ci/ocular GitHub repository
# 10 commits is an arbitrary value that is more than 1 commit
fetch-depth: 10

- name: Cache dependencies
uses: actions/cache@v1
Expand All @@ -34,16 +38,14 @@ jobs:
coverage: pcov

- name: Install dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-suggest

- name: PHP Security Checker
uses: symfonycorp/security-checker-action@v2
with:
disable-exit-code: 1
uses: symfonycorp/security-checker-action@v5
if: ${{ matrix.stability == 'prefer-stable' }}

- name: Execute tests
run: vendor/bin/phpunit --coverage-clover=coverage.clover --verbose

- name: Upload Code Coverage
run: wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage.clover
run: vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
/node_modules
phpunit.xml
/build
.env
.phpunit.result.cache
composer.lock
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.8
1.3.0
18 changes: 10 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,19 @@
}
],
"require": {
"php": ">=7.2",
"php": "^8.0.2",
"ext-json": "*",
"guzzlehttp/guzzle": "^6.4|^7.0",
"laravel/framework": "~5.8|~6|~7|~8",
"nesbot/carbon": "~1.2|~2"
"guzzlehttp/guzzle": "^7.0",
"laravel/framework": "^9.19|^10",
"nesbot/carbon": "^2.62.1"
},
"require-dev": {
"mockery/mockery": "^1.3.1",
"phpunit/phpunit": "^8.4|^9.0",
"psy/psysh": "^0.10",
"symfony/thanks": "^1.1"
"laravel/pint": "^1.4",
"mockery/mockery": "^1.5.1",
"phpunit/phpunit": "^9.5.8",
"psy/psysh": "^0.11",
"scrutinizer/ocular": "^1.9",
"squizlabs/php_codesniffer": "^3.7"
},
"autoload": {
"psr-4": {
Expand Down
8 changes: 4 additions & 4 deletions config/clickup.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
|
*/
'oauth' => [
'id' => env('CLICKUP_CLIENT_ID'),
'id' => env('CLICKUP_CLIENT_ID'),

'secret' => env('CLICKUP_CLIENT_SECRET'),

'url' => env('CLICKUP_OAUTH_URL', 'https://app.clickup.com/api'),
'url' => env('CLICKUP_OAUTH_URL', 'https://app.clickup.com/api'),
],

/*
Expand All @@ -27,11 +27,11 @@
|
*/
'route' => [
'enabled' => true,
'enabled' => true,

'middleware' => ['web'],

'sso' => 'clickup/sso',
'sso' => 'clickup/sso',
],

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Schema\ColumnDefinition;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\Fluent;

/**
* Class AddClickUpTokenToUsersTable
Expand All @@ -20,11 +22,9 @@ public function up()
{
Schema::table(
'users',
function (Blueprint $table) {
$table->string('clickup_token', 1024)
fn (Blueprint $table): ColumnDefinition => $table->string('clickup_token', 1024)
->after('password')
->nullable();
}
->nullable()
);
}

Expand All @@ -37,9 +37,7 @@ public function down()
{
Schema::table(
'users',
function (Blueprint $table) {
$table->dropColumn('clickup_token');
}
fn (Blueprint $table): Fluent => $table->dropColumn('clickup_token')
);
}
}
6 changes: 0 additions & 6 deletions nitpick.json

This file was deleted.

6 changes: 6 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"preset": "laravel",
"rules": {
"no_superfluous_phpdoc_tags": true
}
}
2 changes: 1 addition & 1 deletion routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Route;

Route::get(rtrim(Config::get('clickup.route.sso', '/clickup/sso'), '/') . '/{user}', 'ClickUpController@processCode')
Route::get(rtrim(Config::get('clickup.route.sso', '/clickup/sso'), '/').'/{user}', 'ClickUpController@processCode')
->name('clickup.sso.redirect_url');
Loading

0 comments on commit 6b85119

Please sign in to comment.