Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 1 addition & 66 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,90 +1,25 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]
# Change these settings to your own preference
indent_style = space
indent_size = 4

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.feature]
indent_style = space
indent_size = 2

[*.js]
indent_style = space
indent_size = 2

[*.json]
indent_style = space
indent_size = 2

[*.md]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false

[*.neon]
indent_style = tab
indent_size = 4

[*.php]
indent_style = space
indent_size = 4

[*.sh]
indent_style = tab
indent_size = 4

[*.{yaml,yml}]
indent_style = space
indent_size = 4
trim_trailing_whitespace = false

[.babelrc]
indent_style = space
indent_size = 2

[.gitmodules]
indent_style = tab
indent_size = 4

[.php_cs{,.dist}]
indent_style = space
indent_size = 4

[composer.json]
indent_style = space
indent_size = 4

[docker-compose{,.override}.{yaml,yml}]
indent_style = space
[{webpack.config.js,.eslintrc.js}]
indent_size = 2

[Dockerfile]
indent_style = tab
indent_size = 4

[package.json]
indent_style = space
indent_size = 2

[phpspec.yml{,.dist}]
indent_style = space
indent_size = 4

[phpstan.neon]
indent_style = tab
indent_size = 4

[phpunit.xml{,.dist}]
indent_style = space
indent_size = 4
26 changes: 14 additions & 12 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
/spec export-ignore
/tests export-ignore
/.github export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/composer-require-checker.json export-ignore
/easy-coding-standard.yml export-ignore
/phpspec.yml.dist export-ignore
/phpstan.neon export-ignore
/phpstan-baseline.neon export-ignore
/phpunit.xml.dist export-ignore
/README.md export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/CLAUDE.md export-ignore
/README.md export-ignore
/composer-dependency-analyser.php export-ignore
/ecs.php export-ignore
/infection.json.dist export-ignore
/phpstan-baseline.neon export-ignore
/phpstan.neon export-ignore
/phpunit.xml.dist export-ignore
/rector.php export-ignore
/tests export-ignore
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
github: Setono
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Bug Report
description: File a bug report
title: "[Bug]: "
labels: [ "bug" ]
body:
- type: markdown
attributes:
value: Thanks for taking the time to fill out this bug report!
- type: input
id: plugin-version
attributes:
label: Plugin version
description: What version of the plugin are you using?
validations:
required: true
- type: input
id: sylius-version
attributes:
label: Sylius version
description: What version of Sylius are you using?
validations:
required: true
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
validations:
required: true
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Support question?
url: https://sylius-devs.slack.com/archives/C3EGDG9LY
about: Please ask questions on the Sylius support channel. It's okay to tag a developer, but please understand that we also have other obligations ;)
- name: Security issue
url: https://setono.com
about: Please send security vulnerabilities directly to security@setono.com
29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Feature request
description: Write a feature request
title: "[Feature request]: "
labels: [ "enhancement" ]
body:
- type: markdown
attributes:
value: "We really value feature requests. Thank you :tada:"
- type: textarea
id: what-happened
attributes:
label: Describe the proposed solution
description: A clear and concise description of what you want to happen
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered
validations:
required: false
- type: textarea
id: context
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here
validations:
required: false
40 changes: 40 additions & 0 deletions .github/workflows/backwards-compatibility-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# See https://github.com/Roave/BackwardCompatibilityCheck

name: "Backwards Compatibility Check"

on:
pull_request: ~

jobs:
backwards-compatibility-check:
name: "Backwards Compatibility Check"

runs-on: "ubuntu-latest"

steps:
- name: "Checkout"
uses: "actions/checkout@v4"
with:
fetch-depth: 0

- name: "Setup PHP, with composer and extensions"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
coverage: "none"

# The base branch may pin dependencies (e.g. api-platform/core) to versions that have
# since been flagged by security advisories, which would otherwise block the comparison
# install. The plugin's own composer.json sets audit.block-insecure for the head side, but
# the (immutable) base branch needs this set globally. Can be removed once the base carries it.
- name: "Allow installing advisory-affected dependencies for the comparison"
run: "composer config --global audit.block-insecure false"

- name: "Install tool"
run: "composer global require roave/backward-compatibility-check"

# --install-development-dependencies is required because the plugin's Sylius dependencies
# (e.g. the SyliusPluginTrait / AbstractFixture parents) come from dev dependencies; without
# it Roave cannot reflect those parents and reports false "could not be found" breaks.
- name: "Check for BC breaks"
run: "~/.composer/vendor/bin/roave-backward-compatibility-check --from=origin/${{ github.event.pull_request.base.ref }} --format=github-actions --install-development-dependencies"
Loading
Loading