Skip to content
Merged
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
12 changes: 0 additions & 12 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/1_Bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "\U0001F41B Bug Report"
about: Report errors and problems
title: "[bug] "
labels: Potential Bug
assignees: ''

---

**Description**
<!-- A clear and concise description of the problem. -->

**How to reproduce**
<!-- Code and/or config needed to reproduce the problem. -->

**Possible Solution**
<!--- Optional: only if you have suggestions on a fix/reason for the bug -->

**Additional context**
<!-- Optional: any other context about the problem: log messages, screenshots, etc. -->
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/2_Feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: "\U0001F680 Feature Request"
about: "I have a suggestion (and may want to implement it \U0001F642)!"
title: "[Feature] "
labels: Feature
assignees: ''

---

**Description**
<!-- A clear and concise description of the new feature. -->

**Example**
<!-- 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. -->

14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/3_Security-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: ⛔ Security Issue
about: Report security issues and problems (PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY)

---

⚠ PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, SEE BELOW.

If you have found a security issue in this project, please send the details to
security [at] rollerscapes.net and don't disclose it publicly until we can provide a
fix for it.

**Note:** Please don't blindly send reports about automated tools, make sure the
reported issue is in fact exploitable. Thanks.
1 change: 0 additions & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
| Q | A
| ------------- | ---
| Branch? | main for features / 1.4 bug/translation fixes <!-- see below -->
| Bug fix? | yes/no
| New feature? | yes/no
| BC breaks? | yes/no
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:

-
name: 'Check the code style'
run: 'make cs-full'
run: 'make cs'

phpstan:
name: 'PhpStan'
Expand Down
30 changes: 4 additions & 26 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,29 +1,7 @@
QA_DOCKER_IMAGE=jakzal/phpqa:1.92.1-php8.2-alpine
QA_DOCKER_COMMAND=docker run --init -t --rm --user "$(shell id -u):$(shell id -g)" --volume /tmp/tmp-phpqa-$(shell id -u):/tmp --volume "$(shell pwd):/project" --workdir /project ${QA_DOCKER_IMAGE}
include vendor/rollerscapes/standards/Makefile

dist: install cs-full phpstan test-full
lint: install cs-full phpstan
QA_DOCKER_IMAGE=jakzal/phpqa:1.115.0-php8.4-alpine

install:
composer install --no-progress --no-interaction --no-suggest --optimize-autoloader --prefer-dist --ansi
phpunit:
./vendor/bin/phpunit

test:
vendor/bin/phpunit

# Linting tools
phpstan: ensure
vendor/bin/phpstan analyse

cs: ensure
sh -c "${QA_DOCKER_COMMAND} php-cs-fixer fix -vvv --diff"

cs-full: ensure
sh -c "${QA_DOCKER_COMMAND} php-cs-fixer fix -vvv --using-cache=no --diff"

cs-full-check: ensure
sh -c "${QA_DOCKER_COMMAND} php-cs-fixer fix -vvv --using-cache=no --diff --dry-run"

ensure:
mkdir -p ${HOME}/.composer /tmp/tmp-phpqa-$(shell id -u)

.PHONY: install test phpstan cs cs-full cs-full-check