forked from ShortlyMAB/laravel-comment
-
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
Showing
32 changed files
with
334 additions
and
234 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,6 @@ | ||
coverage: | ||
status: | ||
project: | ||
default: | ||
only_pulls: true | ||
comment: 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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
; This file is for unifying the coding style for different editors and IDEs. | ||
; More information at http://editorconfig.org | ||
; More information at https://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_size = 4 | ||
indent_style = space | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
[*.yml] | ||
indent_size = 2 |
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,14 @@ | ||
* text=auto | ||
|
||
/.github export-ignore | ||
/tests export-ignore | ||
/.codecov.yml export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.styleci.yml export-ignore | ||
/CHANGELOG.md export-ignore | ||
/CONDUCT.md export-ignore | ||
/CONTRIBUTING.md export-ignore | ||
/phpunit.xml export-ignore | ||
/UPGRADE.md export-ignore |
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,14 @@ | ||
- [ ] Added or updated tests | ||
- [ ] Documented user facing changes | ||
- [ ] Updated CHANGELOG.md | ||
|
||
<!-- Link to related issues this PR resolves, e.g. "Resolves #236"--> | ||
|
||
**Changes** | ||
|
||
<!-- Detail the changes in behaviour this PR introduces. --> | ||
|
||
**Breaking changes** | ||
|
||
<!-- Are existing use cases affected and require changes when upgrading? | ||
If so, describe the necessary changes in UPGRADE.md. --> |
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,32 @@ | ||
name: "Autoformat" | ||
on: | ||
push: | ||
|
||
jobs: | ||
composer-normalize: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: docker://ergebnis/composer-normalize-action:0.8.0 | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Normalize composer.json | ||
|
||
prettier: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: creyD/[email protected] | ||
with: | ||
prettier_options: --write --tab-width=2 *.md | ||
branch: ${{ github.head_ref }} | ||
commit_message: Prettify | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,101 @@ | ||
name: "Validate" | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
REQUIRED_PHP_EXTENSIONS: mbstring, mysqli, pdo_sqlite | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- 7.1 | ||
- 7.2 | ||
- 7.3 | ||
- 7.4 | ||
- 8.0 | ||
laravel-version: | ||
- 5.6.* | ||
- 5.7.* | ||
- 5.8.* | ||
- ^6 | ||
- ^7 | ||
- ^8 | ||
exclude: | ||
- php-version: 7.1 | ||
laravel-version: ^6 | ||
- php-version: 7.1 | ||
laravel-version: ^7 | ||
- php-version: 7.1 | ||
laravel-version: ^8 | ||
- php-version: 7.2 | ||
laravel-version: ^8 | ||
- php-version: 8.0 | ||
laravel-version: 5.6.* | ||
- php-version: 8.0 | ||
laravel-version: 5.7.* | ||
- php-version: 8.0 | ||
laravel-version: 5.8.* | ||
- php-version: 8.0 | ||
laravel-version: ^6 | ||
- php-version: 8.0 | ||
laravel-version: ^7 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
extensions: ${{ env.REQUIRED_PHP_EXTENSIONS }} | ||
php-version: ${{ matrix.php-version }} | ||
|
||
- name: "Cache composer dependencies" | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.composer/cache | ||
key: php-${{ matrix.php-version }}-composer-${{ matrix.laravel-version }} | ||
restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.laravel-version }}- | ||
|
||
- run: composer require illuminate/support:${{ matrix.laravel-version }} --no-interaction --prefer-dist --no-progress | ||
|
||
- run: vendor/bin/phpunit --colors=always --verbose | ||
|
||
coverage: | ||
runs-on: ubuntu-20.04 | ||
|
||
strategy: | ||
matrix: | ||
php-version: | ||
- 8.0 | ||
laravel-version: | ||
- ^8 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
coverage: pcov | ||
extensions: ${{ env.REQUIRED_PHP_EXTENSIONS }} | ||
php-version: ${{ matrix.php-version }} | ||
|
||
- name: "Cache composer dependencies" | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.composer/cache | ||
key: php-${{ matrix.php-version }}-composer-${{ matrix.laravel-version }} | ||
restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.laravel-version }}- | ||
|
||
- run: composer require illuminate/support:${{ matrix.laravel-version }} --no-interaction --prefer-dist --no-progress | ||
|
||
- run: vendor/bin/phpunit --coverage-clover=coverage.xml | ||
|
||
- run: bash <(curl -s https://codecov.io/bash) | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
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 |
---|---|---|
@@ -1,6 +1,4 @@ | ||
/vendor | ||
composer.phar | ||
vendor | ||
composer.lock | ||
.DS_Store | ||
.idea/ | ||
.php_cs.cache |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
preset: psr2 | ||
preset: laravel | ||
enabled: | ||
- no_superfluous_phpdoc_tags |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,31 +1,42 @@ | ||
# Changelog | ||
|
||
All Notable changes to `Laravel Comment` will be documented in this file. | ||
All notable changes to this project will be documented in this file. | ||
|
||
Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) principles. | ||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [1.1.0] - 2021-08-10 | ||
|
||
### Added | ||
|
||
- Support PHP 8 | ||
|
||
## [1.0.0] - 2018-11-21 | ||
|
||
### Added | ||
- Initial Release. | ||
|
||
- `Commentable` has been reimplemented as a contract. | ||
- `HasComments` trait has been implemented. | ||
- `comment.php` configuration file has been created. | ||
|
||
## [0.3.0] - 2017-01-31 | ||
|
||
### Added | ||
|
||
- Laravel 5.4 Support. | ||
|
||
## [0.2.1] - 2016-10-20 | ||
|
||
### Added | ||
|
||
- User model isAdmin calculation. | ||
|
||
## [0.2.0] - 2016-10-18 | ||
|
||
### Added | ||
|
||
- Laravel 5.3 Support. | ||
|
||
## [0.1.0] - 2016-06-11 | ||
|
||
- Initial Release |
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
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
Oops, something went wrong.