-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
37 changed files
with
1,428 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,9 @@ | ||
{ | ||
"output": "CHANGELOG.md", | ||
"template": "keepachangelog", | ||
"unreleased": true, | ||
"commitLimit": false, | ||
"hideCredit": true, | ||
"sortCommits": "date-desc", | ||
"breakingPattern": "BREAKING CHANGE: yes" | ||
} |
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,18 @@ | ||
# This file is for unifying the coding style for different editors and IDEs | ||
# editorconfig.org | ||
|
||
# PHP PSR-2 Coding Standards | ||
# http://www.php-fig.org/psr/psr-2/ | ||
|
||
root = true | ||
|
||
[*.{php,inc,module}] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.{json,json.dist,yml,yml.dist}] | ||
indent_size = 4 |
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 @@ | ||
/.github export-ignore | ||
/build export-ignore | ||
/docker export-ignore | ||
/docs export-ignore | ||
/spec export-ignore | ||
/tests export-ignore | ||
.auto-changelog export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.php-cs-fixer.dist.php export-ignore | ||
.scrutinizer.yml export-ignore | ||
infection.json export-ignore | ||
grumphp.yml export-ignore | ||
phpspec.yml export-ignore | ||
docker-compose.yaml export-ignore | ||
psalm-baseline.xml export-ignore | ||
psalm.xml export-ignore | ||
phpstan-baseline.neon export-ignore | ||
phpstan-docs-baseline.neon export-ignore | ||
phpstan-unsupported-baseline.neon export-ignore | ||
phpstan.neon.dist export-ignore |
Validating CODEOWNERS rules …
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 @@ | ||
* @loophp |
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,46 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at pol.dellaiera@protonmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] | ||
|
||
[homepage]: http://contributor-covenant.org | ||
[version]: http://contributor-covenant.org/version/1/4/ |
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,29 @@ | ||
# CONTRIBUTING | ||
|
||
We're using [GitHub Actions](https://docs.github.com/en/actions) as a continuous integration system. | ||
|
||
For details, see the workflows in [.github/workflows](../.github/workflows). | ||
|
||
## Tests | ||
|
||
We're using [`grumphp/grumphp`](https://github.com/phpro/grumphp) to drive the development. | ||
|
||
Run | ||
|
||
```bash | ||
./vendor/bin/grumphp run | ||
``` | ||
|
||
to run all the tests. | ||
|
||
## Coding Standards | ||
|
||
We are using [`drupol/php-conventions`](https://github.com/drupol/php-conventions) to enforce coding standards. | ||
|
||
Run | ||
|
||
```bash | ||
./vendor/bin/grumphp run | ||
``` | ||
|
||
to automatically detect/fix coding standard violations. |
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 @@ | ||
github: drupol |
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,13 @@ | ||
## Steps required to reproduce the problem | ||
|
||
1. | ||
2. | ||
3. | ||
|
||
## Expected Result | ||
|
||
* | ||
|
||
## Actual Result | ||
|
||
* |
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,13 @@ | ||
This PR: | ||
|
||
* [ ] Fix ... | ||
* [ ] Provide ... | ||
* [ ] It breaks backward compatibility | ||
* [ ] Has unit tests (phpspec) | ||
* [ ] Has static analysis tests (psalm, phpstan) | ||
* [ ] Has documentation | ||
* [ ] Is an experimental thing | ||
|
||
Follows #. | ||
Related to #. | ||
Fixes #. |
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,12 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: composer | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
open-pull-requests-limit: 10 |
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 @@ | ||
# https://github.com/probot/settings | ||
|
||
branches: | ||
- name: master | ||
protection: | ||
enforce_admins: false | ||
required_pull_request_reviews: | ||
dismiss_stale_reviews: true | ||
require_code_owner_reviews: true | ||
required_approving_review_count: 1 | ||
required_status_checks: | ||
strict: true | ||
contexts: | ||
- "Static Analysis (ubuntu-latest, 7.4)" | ||
- "Static Analysis (ubuntu-latest, 8.0)" | ||
- "Code Style (ubuntu-latest, 7.4)" | ||
- "Code Style (ubuntu-latest, 8.0)" | ||
|
||
restrictions: null | ||
required_linear_history: true | ||
|
||
labels: | ||
- name: backward breaking change | ||
color: ff0000 | ||
|
||
- name: bug | ||
color: ee0701 | ||
|
||
- name: dependencies | ||
color: 0366d6 | ||
|
||
- name: enhancement | ||
color: 0e8a16 | ||
|
||
- name: experimentation | ||
color: eeeeee | ||
|
||
- name: question | ||
color: cc317c | ||
|
||
- name: new feature | ||
color: 0e8a16 | ||
|
||
- name: security | ||
color: ee0701 | ||
|
||
- name: stale | ||
color: eeeeee | ||
|
||
repository: | ||
allow_merge_commit: true | ||
allow_rebase_merge: true | ||
allow_squash_merge: true | ||
default_branch: main | ||
description: "Monadic Doctrine repositories helper classes and services." | ||
topics: doctrine, monad | ||
has_downloads: true | ||
has_issues: true | ||
has_pages: false | ||
has_projects: false | ||
has_wiki: false | ||
name: repository-monadic-helper | ||
private: 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,10 @@ | ||
daysUntilStale: 60 | ||
|
||
daysUntilClose: 7 | ||
|
||
staleLabel: stale | ||
|
||
markComment: > | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Thank you | ||
for your contributions. |
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,56 @@ | ||
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions | ||
|
||
on: | ||
- pull_request | ||
|
||
name: "Code style" | ||
|
||
jobs: | ||
run: | ||
name: "CI" | ||
runs-on: ${{ matrix.operating-system }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
operating-system: [ubuntu-latest] | ||
php-versions: ['7.4'] | ||
|
||
steps: | ||
- name: Set git to use LF | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- name: Checkout | ||
uses: actions/checkout@v2.4.0 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Install PHP | ||
uses: shivammathur/setup-php@2.16.0 | ||
with: | ||
php-version: ${{ matrix.php-versions }} | ||
extensions: gd,mbstring,pcov | ||
tools: cs2pr | ||
|
||
- name: Get Composer Cache Directory | ||
id: composer-cache | ||
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2.1.7 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
restore-keys: ${{ runner.os }}-composer- | ||
|
||
- name: Install dependencies | ||
run: composer install --no-progress --prefer-dist --optimize-autoloader | ||
|
||
- name: Run Grumphp | ||
run: vendor/bin/grumphp run --testsuite=cs -n | ||
|
||
- name: Send feedback on Github | ||
if: ${{ failure() }} | ||
run: | | ||
vendor/bin/php-cs-fixer --allow-risky=yes --config=.php_cs.dist fix --dry-run --format=checkstyle | cs2pr |
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,33 @@ | ||
# https://docs.github.com/en/actions | ||
|
||
name: "Prune" | ||
|
||
on: # yamllint disable-line rule:truthy | ||
schedule: | ||
- cron: "0 12 * * *" | ||
|
||
env: | ||
DAYS_BEFORE_CLOSE: 5 | ||
DAYS_BEFORE_STALE: 5 | ||
|
||
jobs: | ||
prune: | ||
name: "Issues" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Prune issues and pull requests" | ||
uses: "actions/stale@v4" | ||
with: | ||
days-before-close: "${{ env.DAYS_BEFORE_CLOSE }}" | ||
days-before-stale: "${{ env.DAYS_BEFORE_STALE }}" | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
stale-issue-label: "stale" | ||
stale-issue-message: | | ||
Since this issue has not had any activity within the last ${{ env.DAYS_BEFORE_STALE }} days, I have marked it as stale. | ||
I will close it if no further activity occurs within the next ${{ env.DAYS_BEFORE_CLOSE }} days. | ||
stale-pr-label: "stale" | ||
stale-pr-message: | | ||
Since this pull request has not had any activity within the last ${{ env.DAYS_BEFORE_STALE }} days, I have marked it as stale. | ||
I will close it if no further activity occurs within the next ${{ env.DAYS_BEFORE_CLOSE }} days. |
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,44 @@ | ||
# https://docs.github.com/en/actions | ||
|
||
name: "Release" | ||
|
||
on: # yamllint disable-line rule:truthy | ||
push: | ||
tags: | ||
- "**" | ||
|
||
jobs: | ||
release: | ||
name: "Tag" | ||
|
||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.4.0 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Determine tag | ||
id: tag_name | ||
run: | | ||
echo ::set-output name=current_version::${GITHUB_REF#refs/tags/} | ||
shell: bash | ||
|
||
- name: Get Changelog Entry | ||
id: changelog_reader | ||
uses: mindsers/changelog-reader-action@v2 | ||
with: | ||
version: ${{ steps.tag_name.outputs.current_version }} | ||
path: ./CHANGELOG.md | ||
|
||
- name: "Create release" | ||
uses: "actions/create-release@v1.1.4" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
with: | ||
release_name: "${{ steps.tag_name.outputs.current_version }}" | ||
tag_name: "${{ steps.tag_name.outputs.current_version }}" | ||
body: ${{ steps.changelog_reader.outputs.changes }} | ||
prerelease: ${{ steps.changelog_reader.outputs.status == 'prereleased' }} | ||
draft: ${{ steps.changelog_reader.outputs.status == 'unreleased' }} |
Oops, something went wrong.