Skip to content

Commit

Permalink
Merge pull request #196: ci: fixes in commit linting and new issue te…
Browse files Browse the repository at this point in the history
…mplates
  • Loading branch information
roxblnfk authored Apr 19, 2024
2 parents 83720a0 + 7200063 commit 988744d
Show file tree
Hide file tree
Showing 10 changed files with 390 additions and 101 deletions.
29 changes: 15 additions & 14 deletions .github/.commitlint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export default {
ignores: [(commitMessage) => automaticCommitPattern.test(commitMessage)],
rules: {
'body-leading-blank': [1, 'always'],
'body-max-line-length': [2, 'always', 100],
'body-max-line-length': [2, 'always', 120],
'footer-leading-blank': [1, 'always'],
'footer-max-line-length': [2, 'always', 100],
'footer-max-line-length': [2, 'always', 120],
'header-max-length': [2, 'always', 100],
'scope-case': [2, 'always', 'lower-case'],
'subject-case': [2, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']],
Expand All @@ -25,18 +25,19 @@ export default {
2,
'always',
[
'feat',
'fix',
'perf',
'docs',
'style',
'deps',
'refactor',
'ci',
'test',
'revert',
'build',
'chore',
'feat', // New feature
'fix', // Bug fix
'perf', // Performance improvement
'docs', // Documentation changes
'style', // Code style update (formatting, missing semi colons, etc)
'deps', // Dependency updates
'refactor', // Code refactoring
'ci', // Continuous integration changes
'test', // Adding missing tests
'revert', // Revert to a previous commit
'build', // Changes that affect the build system
'chore', // Other changes that don't modify src or test files
'security', // Security improvements
],
],
},
Expand Down
126 changes: 126 additions & 0 deletions .github/ISSUE_TEMPLATE/1-bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
---

name: 🐞 Bug Report
description: Report an issue to help the project improve.
title: '[Bug]: '
labels: ['type: bug', "status:to be verified"]

body:
- type: markdown
attributes:
value: 🐞 **Bug Report**

- type: checkboxes
id: search-done
attributes:
label: No duplicates 🥲.
options:
- label: I have searched for a similar issue in our bug tracker and didn't find any solutions.
required: true

- type: textarea
id: bug-description
attributes:
label: Describe the bug
description: Please provide a clear and detailed description of what the bug is. This helps us understand the issue quickly and look for potential fixes.
placeholder: Explain the bug in as much detail as possible...
validations:
required: true

- type: textarea
id: regression
attributes:
label: Is this a regression?
description: |
Was this functionality working in a previous version?
If yes, please mention the last version in which it worked properly.
Understanding regressions helps prioritize fixes.
placeholder: Yes or No, and details about the last working version...
validations:
required: false

- type: textarea
id: steps-to-reproduce
attributes:
label: To Reproduce
description: |
'Please provide step-by-step instructions that reproduce the issue:
1. Use x argument / navigate to...
2. Fill this information...
3. Go to...
4. See error
placeholder: Detailed steps to reproduce the bug...
validations:
required: true

- type: textarea
id: expected-behaviour
attributes:
label: Expected behaviour
description: |
Describe what you expected to happen.
Clear expectations help understand the gap between current and desired states.
placeholder: What did you expect to happen instead of the bug?
validations:
required: true

- type: textarea
id: media
attributes:
label: Media prove
description: If applicable, add screenshots or videos to better illustrate the issue. Visual aids can significantly aid in diagnosing problems quicker.
placeholder: Upload files or paste links here...
validations:
required: false

- type: dropdown
id: database
attributes:
label: Database
description: On which databases does the error appear?
multiple: true
options:
- SQLite
- MySQL
- PostgreSQL
- MSSQL

- type: textarea
id: environment
attributes:
label: Your environment
description: |
Provide detailed information about your environment to help us replicate the issue:
* OS: [e.g. Ubuntu]
* PHP version: [e.g. 8.2.2]
* Package version: [e.g. 1.0.0]
* Any relevant environment details
placeholder: |
- OS: Ubuntu
- PHP version: 8.2.2
- Package version: 2.9.0
- Any relevant environment details...
validations:
required: false

- type: textarea
id: additional-context
attributes:
label: Additional context
description: Include any other context about the problem here, such as unusual system configurations, previous issues, or possible causes.
placeholder: Any additional information that could help us resolve the issue...
validations:
required: false

- type: markdown
attributes:
value: |
📛 To ensure a smooth issue processing, please check if a similar bug report has already been submitted before creating a new one.
We highly value your contributions, so please make sure to familiarize yourself with our repository's guidelines:
- [Code of Conduct](https://github.com/cycle/database/blob/2.x/.github/CODE_OF_CONDUCT.md)
- [Contribution Guidelines](https://github.com/cycle/database/blob/2.x/.github/CONTRIBUTING.md)
Additionally, consider joining our discussions on:
- [Spiral Discord Community](https://discord.gg/spiralphp)
...
72 changes: 72 additions & 0 deletions .github/ISSUE_TEMPLATE/2-feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---

name: 🚀 Feature Request
description: Suggest an idea or possible new feature for this project.
title: '[Feature]: '
labels: ['type: feature']

body:
- type: markdown
attributes:
value: 🚀 **Feature Request**

- type: textarea
id: problem-related
attributes:
label: Is your feature request related to a problem? Please describe.
description: |
Please provide a clear and detailed description of what the problem is.
For example, 'I'm always frustrated when...'.
This will help us understand the context and the impact of the problem.
placeholder: Describe the problem...
validations:
required: true

- type: textarea
id: desired-solution
attributes:
label: "Describe the solution you'd like"
description: |
What would you like to see happen? Please provide a detailed explanation of the desired feature.
You may include bullet points to outline objectives, key activities, and expected outcomes.
placeholder: |
1. Objective: [What you hope to achieve with this feature]
2. Key Activities: [Steps to implement the feature]
3. Expected Outcome: [Benefits and results of the feature]
validations:
required: true

- type: textarea
id: alternative-solutions
attributes:
label: "Describe alternatives you've considered"
description: |
Are there alternative solutions or features you've considered? Please describe them.
Understanding different possible solutions can help in finding the best path forward.
placeholder: Describe any alternative solutions or workarounds you have considered...
validations:
required: false

- type: textarea
id: additional-context
attributes:
label: Additional context
description: |
Add any other context or screenshots about the feature request here.
Links to similar features, or visual aids that support your proposal, if applicable.
placeholder: Insert any additional context or links to similar features here...
validations:
required: false

- type: markdown
attributes:
value: |
📛 To ensure a smooth issue processing, please check if a similar feature request has already been submitted before creating a new one.
We highly value your contributions, so please make sure to familiarize yourself with our repository's guidelines:
- [Code of Conduct](https://github.com/cycle/database/blob/2.x/.github/CODE_OF_CONDUCT.md)
- [Contribution Guidelines](https://github.com/cycle/database/blob/2.x/.github/CONTRIBUTING.md)
Additionally, consider joining our discussions on:
- [Spiral Discord Community](https://discord.gg/spiralphp)
...
79 changes: 79 additions & 0 deletions .github/ISSUE_TEMPLATE/3-docs-bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
---

name: 📚 Documentation or README.md issue report
description: Report an issue in the project's documentation or README.md file.
title: '[Docs]: '
labels: ['type: documentation', 'type: maintenance']

assignees:
- lotyp

body:
- type: markdown
attributes:
value: 📚 **Documentation Issue Report**

- type: textarea
id: documentation-bug-description
attributes:
label: Describe the bug
description: Provide a clear and concise description of what the error or issue is in the documentation.
placeholder: Explain the issue with the documentation...
validations:
required: true

- type: textarea
id: steps-to-reproduce
attributes:
label: To Reproduce
description: |
Please provide steps to reproduce the error in the documentation:
1. Navigate to the section or URL where the error occurs...
2. Specify the misleading or incorrect information...
3. Suggest what is expected if applicable...
placeholder: |
1. URL or Section...
2. Misleading information...
3. Expected correction...
validations:
required: true

- type: textarea
id: media-prove
attributes:
label: Media prove
description: If applicable, add screenshots or videos to better illustrate the issue with the documentation.
placeholder: Upload files or paste links here...
validations:
required: false

- type: textarea
id: desired-solution
attributes:
label: Describe the solution you would like
description: Describe what changes or improvements you would like to see in the documentation.
placeholder: Describe the desired changes or improvements...
validations:
required: true

- type: textarea
id: additional-context
attributes:
label: Additional context
description: Add any other context or additional information that could help clarify the documentation issue.
placeholder: Provide any additional context here...
validations:
required: false

- type: markdown
attributes:
value: |
📛 To ensure a smooth issue processing, please check if a similar bug report has already been submitted before creating a new one.
We highly value your contributions, so please make sure to familiarize yourself with our repository's guidelines:
- [Code of Conduct](https://github.com/cycle/database/blob/2.x/.github/CODE_OF_CONDUCT.md)
- [Contribution Guidelines](https://github.com/cycle/database/blob/2.x/.github/CONTRIBUTING.md)
Additionally, consider joining our discussions on:
- [Spiral Discord Community](https://discord.gg/spiralphp)
...
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/4-security-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---

name: ⚠️ Security Report
description: Please report security issues directly through GitHub Security Advisories to ensure privacy.
title: '[Security]: '
labels: ['type: bug', 'priority: high', 'type: security']

assignees:
- lotyp

body:
- type: markdown
attributes:
value: >
⚠️ **Please DO NOT report security vulnerabilities here.** Instead, use the GitHub Security Advisories feature to report them privately and securely. This helps us address issues responsibly without exposing them publicly.
- type: markdown
attributes:
value: >
GitHub Advisories do not automatically notify maintainers, so by using the advisories, you help maintain confidentiality while ensuring the issue is documented and tracked properly.
- type: markdown
attributes:
value: 'To create a new advisory, go to: [Create Security Advisory](https://github.com/cycle/database/security/advisories/new)'

- type: textarea
id: github-advisory-url
attributes:
label: Your GitHub Advisory URL
description: Optionally, you can paste the URL of the GitHub Security Advisory you have created here for reference.
placeholder: Paste the GitHub Security Advisory URL here...
validations:
required: false

...
Loading

0 comments on commit 988744d

Please sign in to comment.