From e9b930ff9256a784c5dd64e430a7438e15cfd015 Mon Sep 17 00:00:00 2001 From: Maxim Mesilov Date: Mon, 2 Sep 2024 00:53:30 +0600 Subject: [PATCH 1/3] Rename package and namespaces to bitrix24-php-lib Updated the project name and adjusted namespaces to align with the new package name "bitrix24-php-lib" instead of "bitrix24-app-core". This change affects multiple files including source, test, and configuration files. Signed-off-by: mesilov --- README.md | 4 ++-- composer.json | 6 +++--- src/Bitrix24Accounts/Entity/Bitrix24Account.php | 4 ++-- tests/Unit/Bitrix24Accounts/Entity/Bitrix24AccountTest.php | 4 ++-- tests/bootstrap.php | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 70d38de..ed33c4e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# bitrix24-app-core +# bitrix24-php-lib -Bitrix24 application core +PHP lib for Bitrix24 application development ## Область применения diff --git a/composer.json b/composer.json index 593339e..e5e973d 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "mesilov/bitrix24-app-core", + "name": "mesilov/bitrix24-php-lib", "description": "A powerful PHP library for rapid Bitrix24 application development", "keywords": [ "Bitrix24", @@ -56,12 +56,12 @@ }, "autoload": { "psr-4": { - "Bitrix24\\SDK\\ApplicationCore\\": "src" + "Bitrix24\\SDK\\Lib\\": "src" } }, "autoload-dev": { "psr-4": { - "Bitrix24\\SDK\\ApplicationCore\\Tests\\": "tests", + "Bitrix24\\SDK\\Lib\\Tests\\": "tests", "Bitrix24\\SDK\\Tests\\":"vendor/mesilov/bitrix24-php-sdk/tests" } } diff --git a/src/Bitrix24Accounts/Entity/Bitrix24Account.php b/src/Bitrix24Accounts/Entity/Bitrix24Account.php index 5bd67b2..527f5b1 100644 --- a/src/Bitrix24Accounts/Entity/Bitrix24Account.php +++ b/src/Bitrix24Accounts/Entity/Bitrix24Account.php @@ -1,6 +1,6 @@ * @@ -10,7 +10,7 @@ declare(strict_types=1); -namespace Bitrix24\SDK\ApplicationCore\Bitrix24Accounts\Entity; +namespace Bitrix24\SDK\Lib\Bitrix24Accounts\Entity; use Bitrix24\SDK\Application\Contracts\Bitrix24Accounts\Entity\Bitrix24AccountInterface; use Bitrix24\SDK\Application\Contracts\Bitrix24Accounts\Entity\Bitrix24AccountStatus; diff --git a/tests/Unit/Bitrix24Accounts/Entity/Bitrix24AccountTest.php b/tests/Unit/Bitrix24Accounts/Entity/Bitrix24AccountTest.php index f4986a9..823384f 100644 --- a/tests/Unit/Bitrix24Accounts/Entity/Bitrix24AccountTest.php +++ b/tests/Unit/Bitrix24Accounts/Entity/Bitrix24AccountTest.php @@ -1,7 +1,7 @@ * @@ -11,7 +11,7 @@ declare(strict_types=1); -namespace Bitrix24\SDK\ApplicationCore\Tests\Unit\Bitrix24Accounts\Entity; +namespace Bitrix24\SDK\Lib\Tests\Unit\Bitrix24Accounts\Entity; use Bitrix24\SDK\Application\Contracts\Bitrix24Accounts\Entity\Bitrix24AccountInterface; use Bitrix24\SDK\Application\Contracts\Bitrix24Accounts\Entity\Bitrix24AccountStatus; diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 8131bde..94def9c 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,7 +1,7 @@ * From 772da0ac66044713db05a35e6bd221b8ab3cf08b Mon Sep 17 00:00:00 2001 From: mesilov Date: Mon, 2 Sep 2024 00:57:56 +0600 Subject: [PATCH 2/3] Refactor import statements in Bitrix24AccountTest Updated the import path for `Bitrix24Account` in `Bitrix24AccountTest.php` to reflect its new location in the `Lib` directory. This change ensures the correct module is referenced, aligning with recent project structure updates. Signed-off-by: mesilov --- tests/Unit/Bitrix24Accounts/Entity/Bitrix24AccountTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Unit/Bitrix24Accounts/Entity/Bitrix24AccountTest.php b/tests/Unit/Bitrix24Accounts/Entity/Bitrix24AccountTest.php index 823384f..d8b83f7 100644 --- a/tests/Unit/Bitrix24Accounts/Entity/Bitrix24AccountTest.php +++ b/tests/Unit/Bitrix24Accounts/Entity/Bitrix24AccountTest.php @@ -15,7 +15,7 @@ use Bitrix24\SDK\Application\Contracts\Bitrix24Accounts\Entity\Bitrix24AccountInterface; use Bitrix24\SDK\Application\Contracts\Bitrix24Accounts\Entity\Bitrix24AccountStatus; -use Bitrix24\SDK\ApplicationCore\Bitrix24Accounts\Entity\Bitrix24Account; +use Bitrix24\SDK\Lib\Bitrix24Accounts\Entity\Bitrix24Account; use Bitrix24\SDK\Core\Credentials\AuthToken; use Bitrix24\SDK\Core\Credentials\Scope; use Bitrix24\SDK\Tests\Application\Contracts\Bitrix24Accounts\Entity\Bitrix24AccountInterfaceTest; From f3aafe559bd036742765159b5fafb63b57f9279c Mon Sep 17 00:00:00 2001 From: Maxim Mesilov Date: Mon, 2 Sep 2024 01:19:13 +0600 Subject: [PATCH 3/3] Add issue and pull request templates Introduce new templates for bug reports, feature requests, and pull requests to standardize contributions. These templates will guide contributors to provide essential information, helping maintain a clear and organized workflow. Additionally, disable blank issues to further streamline the process. Signed-off-by: mesilov --- .github/ISSUE_TEMPLATE/1_Bug_report.yaml | 41 +++++++++++++++++++ .github/ISSUE_TEMPLATE/2_Feature_request.yaml | 17 ++++++++ .github/ISSUE_TEMPLATE/config.yml | 1 + .github/PULL_REQUEST_TEMPLATE.md | 16 ++++++++ CHANGELOG.md | 0 5 files changed, 75 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/1_Bug_report.yaml create mode 100644 .github/ISSUE_TEMPLATE/2_Feature_request.yaml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 CHANGELOG.md diff --git a/.github/ISSUE_TEMPLATE/1_Bug_report.yaml b/.github/ISSUE_TEMPLATE/1_Bug_report.yaml new file mode 100644 index 0000000..716931a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/1_Bug_report.yaml @@ -0,0 +1,41 @@ +name: 🐛 Bug Report +description: Bug report template +labels: Bug + +body: + - type: input + id: affected-versions + attributes: + label: version(s) affected + placeholder: x.y.z + validations: + required: true + - type: textarea + id: description + attributes: + label: Description + description: A clear and concise description of the problem + validations: + required: true + - type: textarea + id: how-to-reproduce + attributes: + label: How to reproduce + description: | + ⚠️ This is the most important part of the report ⚠️ + Without a way to easily reproduce your issue, there is little chance we will be able to help you and work on a fix. + Please, take the time to show us some code and/or config that is needed for others to reproduce the problem easily. + validations: + required: true + - type: textarea + id: possible-solution + attributes: + label: Possible Solution + description: | + Optional: only if you have suggestions on a fix/reason for the bug + Don't hesitate to create a pull request with your solution, it helps get faster feedback. + - type: textarea + id: additional-context + attributes: + label: Additional Context + description: "Optional: any other context about the problem: log messages, screenshots, etc." \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/2_Feature_request.yaml b/.github/ISSUE_TEMPLATE/2_Feature_request.yaml new file mode 100644 index 0000000..f3ac7df --- /dev/null +++ b/.github/ISSUE_TEMPLATE/2_Feature_request.yaml @@ -0,0 +1,17 @@ +name: 🚀 Feature Request +description: Ideas for new features and improvements +body: + - type: textarea + id: description + attributes: + label: Description + description: A clear and concise description of the new feature + validations: + required: true + - type: textarea + id: example + attributes: + label: Example + description: | + A simple example of the new feature in action (include PHP code, YAML config, etc.) + If the new feature changes an existing feature, include a simple before/after comparison. \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..ec4bb38 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false \ No newline at end of file diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..2c27c48 --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,16 @@ +| Q | A | +|---------------|---------------------------------------------------------------------------------------------------------------------------| +| Bug fix? | yes/no | +| New feature? | yes/no | +| Deprecations? | yes/no | +| Issues | Fix #... | +| License | MIT | + + \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..e69de29