Skip to content

Commit

Permalink
Updated GitHub relevant files
Browse files Browse the repository at this point in the history
  • Loading branch information
BitcoinMitchell committed Feb 22, 2024
1 parent daac5df commit 7584858
Show file tree
Hide file tree
Showing 12 changed files with 275 additions and 104 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
# These are supported funding model platforms
custom: https://btcpayserver.org/donate/
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug-report.md

This file was deleted.

79 changes: 79 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: 🐛 Bug Report
description: File a bug report
title: "[Bug]: "
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
### ❗️ Read this before submitting your bug report:
- **Provide as much detail as possible** - error logs, screenshots, your exact configuration. If the issue cannot be reproduced, it cannot be fixed.
- **Avoid reporting "error 500" or "white page" errors** - this is a universal error message that does not provide enough information to qualify the issue. Enable debug mode in the Performance section of PrestaShop or manually in `/config/defines.inc.php` and try again. You should get a proper error message.
- Thank you for taking the time to fill out this bug report!
- type: textarea
id: version
attributes:
label: What is your BTCPay Server version?
description: You can see the version in the footer's bottom right corner
placeholder: I'm running BTCPay v1.X.X.X
validations:
required: true
- type: textarea
id: deployment
attributes:
label: How did you deploy BTCPay Server?
description: Docker, manual, third-party host? Read more on deployment methods [here](https://docs.btcpayserver.org/Deployment/)
placeholder: I'm running BTCPay Server on a...
validations:
required: true
- type: textarea
id: module-version
attributes:
label: What is version of the PrestaShop plugin are you using?
description: You can see the version in the header of the configuration page or in the module list
placeholder: I'm running BTCPay v1.X.X.X
validations:
required: true
- type: textarea
id: what-happened
attributes:
label: What happened?
description: A clear and concise description of what the bug is.
placeholder: Tell us what you see!
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: How did you encounter this bug?
description: Step by step describe how did you encounter the bug?
placeholder: 1. I clicked X 2. Then I clicked Y 3. See error
validations:
required: true
- type: textarea
id: logoutput
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. PrestaShop logs can be found in Advanced Parameters > Logs.
render: shell
- type: textarea
id: browser
attributes:
label: What browser do you use (if useful)?
description: Provide your browser and it's version. If you replicated issues on multiple browsers, let us know which ones.
placeholder: For example Safari 15.00, Chrome 10.0, Tor, Edge, etc
validations:
required: false
- type: textarea
id: additonal
attributes:
label: Additional information
description: Feel free to provide additional information. Screenshots are always helpful.
- type: checkboxes
id: terms
attributes:
label: Are you sure this is a bug report?
description: By submitting this report, you agree that this is not a support or a feature request. For general questions please read our [documentation](https://docs.btcpayserver.org). You can ask questions [on our community chat](https://chat.btcpayserver.org)
options:
- label: I confirm this is a bug report
required: true
12 changes: 9 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
blank_issues_enabled: false
blank_issues_enabled: true
contact_links:
- name: Community Support Chat
- name: 📝 Official Documentation
url: https://docs.btcpayserver.org
about: Check our documentation for answers to common questions
- name: 💬 Community Support Chat
url: https://chat.btcpayserver.org/
about: Ask general questions and get community support in real-time.
about: Ask general questions and get community support in real-time
- name: 🙏 PrestaShop Support
url: https://www.prestashop-project.org/support/
about: Read up on how you can get support for your PrestaShop store
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 🚀 Feature request
description: Suggest a new feature or enhancement
title: "[Feature request]: "
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
Thank you for submitting a feature request!
- type: checkboxes
attributes:
label: Search before asking
description: >
Please search the [issues](https://github.com/btcpayserver/prestashop-plugin/issues) to see if a similar feature request already exists.
options:
- label: >
I have searched the repository [issues](https://github.com/btcpayserver/prestashop-plugin/issues) and found no similar feature requests.
required: true
- type: textarea
attributes:
label: Description
description: A short description of your feature.
placeholder: |
What new feature would you like to see in this module?
validations:
required: true
- type: textarea
attributes:
label: Use case
description: |
Describe the use case of your feature request. It will help us understand and prioritize the feature request.
placeholder: |
How would this feature be used, and who would use it?
- type: textarea
attributes:
label: Additional
description: Anything else you would like to share?
23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

16 changes: 0 additions & 16 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

27 changes: 26 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,34 @@
version: 2
updates:
# Ensure root composer is up-to-date
- package-ecosystem: composer
directory: /
schedule:
interval: daily
open-pull-requests-limit: 10
open-pull-requests-limit: 5
reviewers:
- BitcoinMitchell
labels:
- dependencies

# Ensure module composer is up-to-date
- package-ecosystem: composer
directory: /modules/btcpay
schedule:
interval: daily
open-pull-requests-limit: 5
reviewers:
- BitcoinMitchell
labels:
- dependencies

# Ensure workflows are up-to-date
- package-ecosystem: github-actions
directory: "/.github/workflows"
schedule:
interval: daily
open-pull-requests-limit: 5
reviewers:
- BitcoinMitchell
labels:
- dependencies
35 changes: 35 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

- Fixes # (issue)
- Depends on # (issue or pr)

# Type of change

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Refactor (non-breaking change which improves the codebase)

# How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

- [ ] Test A
- [ ] Test B

**Test Configuration**:
* BTCPay Server version:
* PrestaShop version:
* PHP version:

# Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] I have checked my code and corrected any misspellings
14 changes: 12 additions & 2 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,21 @@ jobs:
restore-keys: "${{ runner.os }}-composer-"
- name: "Validate composer"
run: "composer validate"
- name: "Install Composer dependencies"
run: "composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader"
- name: "Install all dependencies"
run: "make install"
- uses: "actions/cache@v3"
with:
path: "~/.cache/local-php-security-checker"
key: "local-php-security-checker-cache"

# Ensure our dependencies are fine
- name: "Local PHP Security Checker"
uses: "docker://pplotka/local-php-security-checker-github-actions:v1.0.0"
with:
cache_dir: "~/.cache/local-php-security-checker"
path: "./composer.lock"
- name: "Local PHP Security Checker - Module"
uses: "docker://pplotka/local-php-security-checker-github-actions:v1.0.0"
with:
cache_dir: "~/.cache/local-php-security-checker"
path: "./modules/btcpay/composer.lock"
22 changes: 6 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,14 @@ jobs:
- name: "Make zip"
run: "make"

# Make a release from the tag
# Make a release from the tag and upload the zip
- name: "Create Release"
id: "create_release"
uses: "actions/create-release@v1"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" # This token is provided by Actions, you do not need to create your own token
with:
tag_name: "${{ github.ref }}"
release_name: "Release ${{ github.ref }}"

# Upload the zip to the release
- name: "Upload Release Asset"
id: "upload-release-asset"
uses: "actions/upload-release-asset@v1"
uses: "softprops/action-gh-release@v1"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
with:
upload_url: "${{ steps.create_release.outputs.upload_url }}" # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: "./build/btcpay.zip"
asset_name: "btcpay.zip"
asset_content_type: "application/zip"
name: "Release ${{ github.ref }}"
files: "./build/btcpay.zip"
fail_on_unmatched_files: true
generate_release_notes: true
Loading

0 comments on commit 7584858

Please sign in to comment.