diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 0ebc0d1..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -name: Bug Report -about: Report something that's broken -labels: Bug ---- diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 9925f78..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -name: Feature Request -about: Suggest an idea for this project -labels: Enhancement ---- diff --git a/.github/FUNDING.yml b/.github/funding.yml similarity index 100% rename from .github/FUNDING.yml rename to .github/funding.yml diff --git a/.github/issue_template/bug_report.md b/.github/issue_template/bug_report.md new file mode 100644 index 0000000..d5db12a --- /dev/null +++ b/.github/issue_template/bug_report.md @@ -0,0 +1,14 @@ +--- +name: Bug Report +about: Report something that's broken +labels: Bug +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**How to reproduce** +Steps to cause the bug or a link to a minimal reproduction. + +**Environment** +PHP version, OS, and Server (Apache/NGINX/CLI). diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/issue_template/config.yml similarity index 100% rename from .github/ISSUE_TEMPLATE/config.yml rename to .github/issue_template/config.yml diff --git a/.github/issue_template/feature_request.md b/.github/issue_template/feature_request.md new file mode 100644 index 0000000..9103f89 --- /dev/null +++ b/.github/issue_template/feature_request.md @@ -0,0 +1,11 @@ +--- +name: Feature Request +about: Suggest an idea for this project +labels: Enhancement +--- + +**The Idea** +What is the problem or new feature you are suggesting? + +**How it should work** +A clear description of how you imagine this feature working in Arcane. diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..35e9d0c --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,9 @@ +Please ensure this Pull Request is targeting the `develop` branch, not `master`. + +--- + +**What does this PR do?** +A brief description of the changes, bug fixes, or new features. + +**Why is this needed?** +Link to any relevant issues or explain the reasoning behind the change. diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..da44a48 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,22 @@ +name: Linter PHP + +on: + push: + branches: [ master, develop ] + pull_request: + branches: [ develop ] + +jobs: + linter: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.4' + + - name: Check PHP Syntax + run: php -l index.php diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..bdc2782 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,39 @@ +name: Auto Release + +on: + pull_request: + branches: + - master + types: + - closed + +jobs: + release: + if: github.event.pull_request.merged == true && github.event.pull_request.head.ref == 'develop' + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Extract Version + id: get_version + run: | + VERSION=$(grep -oE 'Arcane [0-9]+\.[0-9]+\.[0-9]+' index.php | awk '{print $2}') + if [ -z "$VERSION" ]; then + echo "Error: Version could not be extracted from index.php." + exit 1 + fi + echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "tag=v$VERSION" >> $GITHUB_OUTPUT + + - name: Create Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release create ${{ steps.get_version.outputs.tag }} \ + --title "${{ steps.get_version.outputs.version }}" \ + --generate-notes \ + --target ${{ github.event.pull_request.base.ref }} \ + index.php diff --git a/.gitignore b/.gitignore index 7ab68dc..af85ce7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,8 @@ * +!.github/ +!.github/** !.gitignore -!composer.json !LICENSE.md !README.md -!index.php \ No newline at end of file +!composer.json +!index.php diff --git a/README.md b/README.md index 77fb871..a9a5ad6 100644 --- a/README.md +++ b/README.md @@ -424,8 +424,8 @@ location / { try_files $uri $uri/ /index.php?$query_string; } ``` - - [Arcane Helpers](https://github.com/MEDIA76/arcane-helpers) is a collection of drop-in files for common tasks (Markdown parsing, OAuth, database access). - - [Creating an issue](https://github.com/MEDIA76/arcane/issues) on GitHub for reporting bugs is always appreciated. + - [Arcane Helpers](https://github.com/capachow/arcane-helpers) is a collection of drop-in files for common tasks (Markdown parsing, OAuth, database access). + - [Creating an issue](https://github.com/capachow/arcane/issues) on GitHub for reporting bugs is always appreciated. *License*: Copyright 2017-2026 [Joshua Britt](https://github.com/capachow) under the [MIT](LICENSE.md).