Skip to content

Commit feae9ee

Browse files
committed
build: project setup
Signed-off-by: Teakowa Gatanothor O'deorain <hub+git@teakowa.dev>
1 parent 7e27fd6 commit feae9ee

18 files changed

+750
-0
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = false
9+
insert_final_newline = false
10+
11+
[*.yml]
12+
indent_size = 2

.github/CONTRIBUTING.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Contributing Guide
2+
3+
## Which Branch?
4+
5+
All bug fixes should be sent to the latest stable branch. Bug fixes should never be sent to the develop branch unless they fix features that exist only in the upcoming release.
6+
7+
Minor features that are fully backwards compatible with the current release may be sent to the latest stable branch.
8+
9+
Major new features should always be sent to the develop branch, which contains the upcoming release.
10+
11+
If you are unsure if your feature qualifies as a major or minor, sent to the develop branch.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
### Describe the bug
8+
A clear and concise description of what the bug is.
9+
10+
### To Reproduce
11+
How to reproduce the behavior?
12+
13+
### Expected behavior
14+
A clear and concise description of what you expected to happen.
15+
16+
### Screenshots
17+
If applicable, add screenshots to help explain your problem.
18+
19+
### Environment (please complete the following information):
20+
- PHP version(s) [e.g. 7.1, 7.3.2]
21+
- Package version(s): [e.g. 1.0.0, 1.0.0-beta.12]
22+
23+
### Additional context
24+
Add any other context about the problem here.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
### Background
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
### Implementation details
11+
A clear and concise description of what you want to happen.
12+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
### Your checklist for this pull request
2+
🚨Please review the [guidelines for contributing](.github/CONTRIBUTING.md) to this repository.
3+
4+
### What kind of change does this PR introduce? (check at least one)
5+
6+
- [ ] Bugfix
7+
- [ ] Feature
8+
- [ ] Docs update
9+
- [ ] Code style update
10+
- [ ] Refactor
11+
- [ ] Performance Improvements
12+
- [ ] Build-related changes
13+
- [ ] Other, please describe:
14+
15+
### Does this PR introduce a BREAKING CHANGE? (check one)
16+
17+
- [ ] Yes
18+
- [ ] No
19+
20+
<!-- If yes, please describe the impact and migration path for existing applications: -->
21+
22+
### The PR fulfills these requirements:
23+
24+
- [ ] Make sure you are requesting to **pull a feature/bugfix branch** (right side). **_Don't request master_!**
25+
- [ ] Make sure you are making a pull request against the **develop branch** (left side). Also you should start *your branch* off *our develop branch*.
26+
- [ ] Check the commit's or even all commits' message styles matches our requested structure.
27+
- [ ] Check your code additions will fail neither code linting checks nor unit test.
28+
- [ ] When resolving a specific issue, it's referenced in the PR's title (e.g. `fix #xxx[,#xxx]`, where "xxx" is the issue number)
29+
30+
31+
If adding a **new feature**, the PR's description includes:
32+
- [ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)
33+
34+
### Description
35+
Please describe your pull request.
36+
37+
❤️ Thank you!

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
open-pull-requests-limit : 10
8+
labels :
9+
- "type/dependencies"
10+
11+
- package-ecosystem: "composer"
12+
directory: "/"
13+
schedule:
14+
interval: "daily"
15+
open-pull-requests-limit: 10
16+
labels:
17+
- "type/dependencies"

.github/semantic.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Always validate the PR title AND all the commits
2+
titleAndCommits: true
3+
# Require at least one commit to be valid
4+
# this is only relevant when using commitsOnly: true or titleAndCommits: true,
5+
# which validate all commits by default
6+
anyCommit: true
7+
# Allow use of Merge commits (eg on github: "Merge branch 'master' into feature/ride-unicorns")
8+
# this is only relevant when using commitsOnly: true (or titleAndCommits: true)
9+
allowMergeCommits: false
10+
# Allow use of Revert commits (eg on github: "Revert "feat: ride unicorns"")
11+
# this is only relevant when using commitsOnly: true (or titleAndCommits: true)
12+
allowRevertCommits: false

.github/stale.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 30
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- priority/p0
8+
- priority/1
9+
- status/in-progress
10+
# Label to use when marking an issue as stale
11+
staleLabel: type/stale
12+
# Comment to post when marking an issue as stale. Set to `false` to disable
13+
markComment: >
14+
This issue has been automatically marked as stale because it has not had
15+
recent activity. It will be closed if no further activity occurs. Thank you
16+
for your contributions.
17+
# Comment to post when closing a stale issue. Set to `false` to disable
18+
closeComment: true

.github/workflows/automerge.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Merge PRs
2+
on:
3+
pull_request:
4+
5+
jobs:
6+
automerge:
7+
name: Auto Merge
8+
if: ${{ github.actor == 'dependabot[bot]' }}
9+
uses: XNXKTech/workflows/.github/workflows/dependabot-auto-merge.yml@main
10+
secrets:
11+
GH_TOKEN: ${{ secrets.DEPENDABOT_TOKEN }}

.github/workflows/format.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Format
2+
3+
on:
4+
schedule:
5+
- cron: '0 9 * * *' # everyday at 9am UTC
6+
workflow_dispatch:
7+
8+
jobs:
9+
php-cs-fixer:
10+
name: PHP Code Style
11+
uses: XNXKTech/workflows/.github/workflows/php-format.yml@main
12+
secrets:
13+
CI_PAT: ${{ secrets.CI_PAT }}

0 commit comments

Comments
 (0)