-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bfe1dad
Showing
26 changed files
with
1,701 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
github: softcreatr | ||
custom: ['https://ecologi.com/softcreatr?r=61212ab3fc69b8eb8a2014f4'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: 🐛 Bug Report | ||
description: Submit a bug report to help us improve. | ||
labels: ["bug"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: "## 🐛 Bug Report" | ||
|
||
- type: textarea | ||
id: bug-description | ||
attributes: | ||
label: Description | ||
description: A clear and concise description of what the bug is. | ||
validations: | ||
required: true | ||
|
||
- type: checkboxes | ||
id: previous-research | ||
attributes: | ||
label: Have you spent some time to check if this issue has been raised before? | ||
options: | ||
- label: I have googled for a similar issue or checked our older issues for a similar bug | ||
required: true | ||
|
||
- type: checkboxes | ||
id: code-of-conduct | ||
attributes: | ||
label: Have you read the Code of Conduct? | ||
options: | ||
- label: I have read the [Code of Conduct](https://github.com/SoftCreatR/php-perplexity-ai-sdk/blob/main/CODE_OF_CONDUCT.md) | ||
required: true | ||
|
||
- type: textarea | ||
id: reproduction-steps | ||
attributes: | ||
label: To Reproduce | ||
description: Write your steps here | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: expected-behavior | ||
attributes: | ||
label: Expected behavior | ||
description: Write down what you thought would happen. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: actual-behavior | ||
attributes: | ||
label: Actual Behavior | ||
description: Write what happened. Add screenshots, if applicable. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: environment | ||
attributes: | ||
label: Your Environment | ||
description: Include as many relevant details about the environment you experienced the bug in (e.g., Environment, Operating system and version, etc.) | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: 📚 Documentation | ||
description: Report an issue related to documentation. | ||
labels: ["documentation"] | ||
|
||
body: | ||
- type: markdown | ||
attributes: | ||
value: "## 📚 Documentation" | ||
|
||
- type: textarea | ||
id: issue-description | ||
attributes: | ||
label: Description | ||
description: A clear and concise description of what the issue is. | ||
placeholder: Enter the issue details here. | ||
validations: | ||
required: true | ||
|
||
- type: markdown | ||
attributes: | ||
value: "### Have you read the [Code of Conduct](https://github.com/SoftCreatR/php-perplexity-ai-sdk/blob/main/CODE_OF_CONDUCT.md)?" | ||
|
||
- type: checkboxes | ||
id: code-of-conduct | ||
attributes: | ||
label: Code of Conduct | ||
description: Please confirm that you have read the Code of Conduct. | ||
options: | ||
- label: I have read the Code of Conduct | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: 💡 Feature / Idea | ||
description: Submit a proposal for a new feature. | ||
labels: ["feature"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: "## 💡 Feature / Idea" | ||
- type: textarea | ||
id: feature-description | ||
attributes: | ||
label: "A clear and concise description of what the feature is." | ||
placeholder: "Describe the feature here..." | ||
validations: | ||
required: true | ||
- type: checkboxes | ||
id: checked-previous-issues | ||
attributes: | ||
label: "Have you spent some time to check if this issue has been raised before?" | ||
description: "Please check if a similar issue has been raised before." | ||
options: | ||
- label: "I have googled for a similar issue or checked our older issues for a similar idea" | ||
required: true | ||
- type: checkboxes | ||
id: read-code-of-conduct | ||
attributes: | ||
label: "Have you read the [Code of Conduct](https://github.com/SoftCreatR/php-perplexity-ai-sdk/blob/main/CODE_OF_CONDUCT.md)?" | ||
options: | ||
- label: "I have read the Code of Conduct" | ||
required: true | ||
- type: textarea | ||
id: pitch | ||
attributes: | ||
label: "Pitch" | ||
description: "Please explain why this feature should be implemented and how it would be used. Add examples, if applicable." | ||
placeholder: "Explain the reasoning behind the feature and provide examples..." | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!-- | ||
Thank you for sending the PR! We appreciate you spending the time to work on these changes. | ||
Help us understand your motivation by explaining why you decided to make this change. | ||
Happy contributing! | ||
--> | ||
|
||
# 🔀 Pull Request | ||
|
||
## What does this PR do? | ||
|
||
(Provide a description of what this PR does.) | ||
|
||
## Test Plan | ||
|
||
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.) | ||
|
||
## Related PRs and Issues | ||
|
||
(If this PR is related to any other PR or resolves any issue or related to any issue link all related PR and issues here.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
name: Create Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
syntax-check: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.event.head_commit.message, '[Release]') | ||
|
||
strategy: | ||
matrix: | ||
php: [ '7.4', '8.0', '8.1', '8.2' ] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
|
||
- name: Install Composer dependencies | ||
run: composer install --no-dev | ||
|
||
- name: Check PHP syntax | ||
run: find {src,tests} -type f -name "*.php" -exec php -l {} \; | ||
|
||
analyze-code: | ||
needs: syntax-check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
tools: php-cs-fixer, phpstan | ||
extensions: mbstring | ||
|
||
- name: Install Composer dependencies | ||
run: composer install | ||
|
||
- name: Run PHP-CS-Fixer | ||
run: php-cs-fixer fix --dry-run --diff | ||
|
||
- name: Run PHPStan | ||
run: phpstan analyse src tests --xdebug | ||
|
||
check-dependencies: | ||
needs: analyze-code | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
|
||
- name: Install Composer dependencies | ||
run: composer install | ||
|
||
- name: Run security checker | ||
run: composer require --dev enlightn/security-checker && vendor/bin/security-checker security:check | ||
|
||
run-tests: | ||
needs: check-dependencies | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
coverage: pcov | ||
ini-values: zend.assertions=1 | ||
|
||
- name: Install Composer dependencies | ||
run: composer install | ||
|
||
- name: Run PHPUnit | ||
run: vendor/bin/phpunit --coverage-clover=coverage.xml | ||
|
||
- name: Upload coverage report to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: coverage.xml | ||
fail_ci_if_error: true | ||
|
||
- name: Upload coverage report to Code Climate | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
with: | ||
coverageLocations: ${{github.workspace}}/coverage.xml:clover | ||
|
||
create-release: | ||
needs: run-tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '7.4' | ||
|
||
- name: Install Composer dependencies | ||
run: composer install --no-dev | ||
|
||
- name: Get current version | ||
id: current-version | ||
run: | | ||
VERSION=$(composer config version --quiet) | ||
echo "Current version: $VERSION" | ||
echo "::set-output name=version::$VERSION" | ||
- name: Create Release | ||
id: create-release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: v${{ steps.current-version.outputs.version }} | ||
release_name: Release v${{ steps.current-version.outputs.version }} | ||
body: 'New release for version ${{ steps.current-version.outputs.version }}' | ||
draft: false | ||
prerelease: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Update Contributors | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- main | ||
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-contributors: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Add contributors | ||
uses: BobAnkh/[email protected] | ||
with: | ||
CONTRIBUTOR: '## Contributors ✨' | ||
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
IGNORED_CONTRIBUTORS: 'Sascha Greuel' |
Oops, something went wrong.