Skip to content

Commit 350388f

Browse files
committed
refactor: Update namespace to CSlant
- Changed primary namespace. - Updated all relevant import 'use' statements throughout the source code to reflect this namespace change. - Checked and ensured that all functionalities remain intact post-refactor.
1 parent 97e374d commit 350388f

File tree

8 files changed

+44
-11
lines changed

8 files changed

+44
-11
lines changed

.editorconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
; This is the top-most EditorConfig file, which is not inherited by any other files.
2+
; This file is used for unify the coding style for different editors and IDEs.
3+
; More information at https://editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.yml]
15+
indent_style = space
16+
17+
[*.json]
18+
indent_style = space
19+
indent_size = 2

.github/workflows/setup_test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
include:
1515
- laravel: 10.*
1616
testbench: 8.*
17+
- laravel: 9.*
18+
testbench: 8.*
1719
steps:
1820
- name: Setup PHP
1921
uses: shivammathur/setup-php@v2

composer.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,23 @@
4141
}
4242
},
4343
"require": {
44-
"php": "^8.0",
45-
"CSlant/telegram-git-notifier": "dev-main"
44+
"php": "^8.1",
45+
"cslant/telegram-git-notifier": "^v1.3.1"
4646
},
4747
"require-dev": {
4848
"friendsofphp/php-cs-fixer": "^v3.37.1",
4949
"pestphp/pest": "^2.24",
5050
"phpstan/phpstan": "^1.10.39"
5151
},
52+
"scripts": {
53+
"format": "vendor/bin/php-cs-fixer fix --allow-risky=yes",
54+
"post-install-cmd": [
55+
"bash vendor/cslant/telegram-git-notifier/install.sh"
56+
],
57+
"post-update-cmd": [
58+
"bash vendor/cslant/telegram-git-notifier/install.sh"
59+
]
60+
},
5261
"support": {
5362
"issues": "https://github.com/cslant/laravel-telegram-git-notifier/issues"
5463
},
@@ -60,7 +69,10 @@
6069
}
6170
},
6271
"config": {
63-
"sort-packages": true
72+
"sort-packages": true,
73+
"allow-plugins": {
74+
"pestphp/pest-plugin": true
75+
}
6476
},
6577
"minimum-stability": "dev",
6678
"prefer-stable": true

config/telegram-git-notifier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@
3131
'author' => [
3232
'discussion' => env(
3333
'TGN_AUTHOR_DISCUSSION',
34-
'https://github.com/lbiltech/laravel-telegram-git-notifier/discussions'
34+
'https://github.com/cslant/laravel-telegram-git-notifier/discussions'
3535
),
3636
'source_code' => env(
3737
'TGN_AUTHOR_SOURCE_CODE',
38-
'https://github.com/lbiltech/laravel-telegram-git-notifier'
38+
'https://github.com/cslant/laravel-telegram-git-notifier'
3939
),
4040
],
4141

phpunit.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
</include>
1414
</coverage>
1515
<testsuites>
16-
<testsuite name="LbilTech Laravel Telegram Git Notify">
16+
<testsuite name="CSlant Laravel Telegram Git Notifier">
1717
<directory>tests</directory>
1818
</testsuite>
1919
</testsuites>
20-
</phpunit>
20+
</phpunit>

routes/bot.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
use Illuminate\Support\Facades\Route;
4-
use LbilTech\LaravelTelegramGitNotifier\Http\Actions\WebhookAction;
4+
use CSlant\LaravelTelegramGitNotifier\Http\Actions\WebhookAction;
55

66
/*
77
|--------------------------------------------------------------------------

src/Http/Actions/WebhookAction.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22

3-
namespace LbilTech\LaravelTelegramGitNotifier\Http\Actions;
3+
namespace CSlant\LaravelTelegramGitNotifier\Http\Actions;
44

5-
use LbilTech\TelegramGitNotifier\Webhook;
5+
use CSlant\TelegramGitNotifier\Webhook;
66

77
class WebhookAction
88
{

src/Providers/TelegramGitNotifierServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace LbilTech\LaravelTelegramGitNotifier\Providers;
3+
namespace CSlant\LaravelTelegramGitNotifier\Providers;
44

55
use Illuminate\Support\ServiceProvider;
66

0 commit comments

Comments
 (0)