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
6 changes: 3 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ indent_style = space
indent_size = 4
trim_trailing_whitespace = true

[*.{json,yml,yaml,xml}]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml,json}]
indent_size = 2
11 changes: 6 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
* text=auto eol=lf

/.github export-ignore
/docs export-ignore
/tests export-ignore
/docs export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/phpcs.xml.dist export-ignore
/phpstan.neon.dist export-ignore
/phpunit.xml.dist export-ignore
/CHANGELOG.md export-ignore
/CODE_OF_CONDUCT.md export-ignore
/phpstan.neon.dist export-ignore
/pint.json export-ignore
/CONTRIBUTING.md export-ignore
/CODE_OF_CONDUCT.md export-ignore
/SECURITY.md export-ignore
/SUPPORT.md export-ignore
/MAINTAINING.md export-ignore
7 changes: 5 additions & 2 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
name: Bug report
description: Report something that is not working as expected.
labels: [bug]
title: "[Bug]: "
labels:
- "type: bug"
- "status: needs triage"
body:
- type: input
id: package-version
attributes:
label: Package version
placeholder: '1.0.0'
placeholder: '8.5.1'
validations:
required: true
- type: input
Expand Down
9 changes: 6 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Documentation
url: https://pharaonic.dev/packages/php/smart-enum
about: Read the Pharaonic documentation.
- name: Community support
url: https://discord.gg/XQG9RhvEvf
about: Get help from the Pharaonic Discord community.
- name: Documentation
url: https://pharaonic.dev/packages/php/smart-enum
about: Read the documentation for this project.
- name: Security vulnerability
url: https://github.com/Pharaonic/php-smart-enum/security
about: Do not report security vulnerabilities in public issues.
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Documentation issue
description: Report missing, incorrect, or unclear documentation
title: "[Docs]: "
labels:
- "type: docs"
- "status: needs triage"
body:
- type: input
id: page
attributes:
label: Documentation page
description: Link to the affected page when possible.

- type: textarea
id: issue
attributes:
label: What is unclear or incorrect?
validations:
required: true

- type: textarea
id: improvement
attributes:
label: Suggested improvement
description: Explain what information would make the documentation clearer.
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Feature request
description: Suggest an idea or improvement.
title: "[Feature]: "
labels: [enhancement]
labels:
- "type: feature"
- "status: needs triage"
body:
- type: textarea
id: problem
Expand Down
23 changes: 6 additions & 17 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,15 @@
## Summary

<!-- What does this pull request do, and why? Link related issues (e.g. "Closes #123"). -->
Explain what changed and why.

## Changes

-
Describe the meaningful implementation or API changes.

## Testing
## Compatibility

<!-- How was this tested? Include the enums and calls you used, with the results they produce. -->
Describe compatibility or deprecation impact when relevant.

## Backward compatibility
## Notes

<!-- Does this change any public method, signature or result? If so, describe the impact. -->

## Checklist

- [ ] Tests added/updated
- [ ] Backward compatibility considered (no public API change, or it is described above)
- [ ] PHPStan passes (`composer analyse`)
- [ ] Coding style passes (`composer lint`)
- [ ] Documentation updated if applicable
- [ ] `CHANGELOG.md` updated if applicable
- [ ] Scope is focused on a single change
- [ ] No unnecessary dependencies added
Add reviewer context only when useful.
23 changes: 15 additions & 8 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
# Dependabot only opens PRs against develop. Runtime lines (8.N.x) receive
# tooling updates through the normal port flow, retested on their own PHP.
version: 2

updates:
- package-ecosystem: composer
directory: /
directory: "/"
target-branch: develop
labels:
- "area: dependencies"
schedule:
interval: monthly
versioning-strategy: widen
interval: weekly
groups:
dev-dependencies:
development-dependencies:
dependency-type: development

- package-ecosystem: github-actions
directory: /
directory: "/"
target-branch: develop
labels:
- "area: dependencies"
schedule:
interval: monthly
interval: weekly
groups:
github-actions:
patterns: ["*"]
patterns:
- "*"
44 changes: 44 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Standard Pharaonic repository labels.
# Apply/update these through repository tooling only after explicit approval.
- name: "type: bug"
description: "Something is not working as intended"
color: "d73a4a"
- name: "type: feature"
description: "New capability or enhancement"
color: "a2eeef"
- name: "type: docs"
description: "Documentation improvement"
color: "0075ca"
- name: "type: maintenance"
description: "Repository or maintenance work"
color: "cfd3d7"
- name: "status: needs triage"
description: "Needs maintainer review"
color: "fbca04"
- name: "status: needs info"
description: "More information is required"
color: "d4c5f9"
- name: "status: blocked"
description: "Cannot proceed yet"
color: "b60205"
- name: "area: dependencies"
description: "Dependency-related change"
color: "0366d6"
- name: "area: compatibility"
description: "Backward/runtime compatibility"
color: "5319e7"
- name: "area: tests"
description: "Test suite work"
color: "0e8a16"
- name: "area: ci"
description: "CI or automation"
color: "1d76db"
- name: "breaking-change"
description: "Potential or confirmed breaking change"
color: "b60205"
- name: "good first issue"
description: "Suitable for a first contribution"
color: "7057ff"
- name: "help wanted"
description: "Extra community help is welcome"
color: "008672"
Loading