From 6713f6aadb7573985948f4fdc9be62e7e4dd46b0 Mon Sep 17 00:00:00 2001 From: Joshua Britt Date: Thu, 9 Apr 2026 17:03:49 -0500 Subject: [PATCH 1/8] Added some default text to bug and feature issues. --- .github/ISSUE_TEMPLATE/bug_report.md | 9 +++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 0ebc0d1..d5db12a 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -3,3 +3,12 @@ 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/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 9925f78..9103f89 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -3,3 +3,9 @@ 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. From 0ff51e72523c991e1ccce4bf0f79363823766ff7 Mon Sep 17 00:00:00 2001 From: Joshua Britt Date: Thu, 9 Apr 2026 17:04:56 -0500 Subject: [PATCH 2/8] Updated gitignore to avoid github folder. --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 7ab68dc..0d1150f 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ !composer.json !LICENSE.md !README.md -!index.php \ No newline at end of file +!index.php +!.github/ From 245b403420685e74370833e24b33fe34650d9dcd Mon Sep 17 00:00:00 2001 From: Joshua Britt Date: Thu, 9 Apr 2026 17:05:36 -0500 Subject: [PATCH 3/8] Fixed old repo ownership in the url links. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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). From a1480bdbe069bb19576089d045c5d876e04a4def Mon Sep 17 00:00:00 2001 From: Joshua Britt Date: Thu, 9 Apr 2026 17:09:49 -0500 Subject: [PATCH 4/8] Added child files to gitignore and cleaned it up. --- .gitignore | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 0d1150f..af85ce7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ * +!.github/ +!.github/** !.gitignore -!composer.json !LICENSE.md !README.md +!composer.json !index.php -!.github/ From c20050f4bdc8a21e3db1b126dae72aae123c7627 Mon Sep 17 00:00:00 2001 From: Joshua Britt Date: Thu, 9 Apr 2026 17:10:35 -0500 Subject: [PATCH 5/8] Added simple release workflow for PR merged. --- .github/workflows/release.yml | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c9415e2 --- /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 \ No newline at end of file From 72b0a9060b8562660af407cf9ee4596edc4d41c2 Mon Sep 17 00:00:00 2001 From: Joshua Britt Date: Thu, 9 Apr 2026 17:30:34 -0500 Subject: [PATCH 6/8] Added pull request template file. --- .github/pull_request_template.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .github/pull_request_template.md 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. From 76c32df54adda2c0c59bed61d24b53d54f254f86 Mon Sep 17 00:00:00 2001 From: Joshua Britt Date: Thu, 9 Apr 2026 17:31:28 -0500 Subject: [PATCH 7/8] Added simple php linter to check errors. --- .github/workflows/linter.yml | 22 ++++++++++++++++++++++ .github/workflows/release.yml | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/linter.yml 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 index c9415e2..bdc2782 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,4 +36,4 @@ jobs: --title "${{ steps.get_version.outputs.version }}" \ --generate-notes \ --target ${{ github.event.pull_request.base.ref }} \ - index.php \ No newline at end of file + index.php From 062568befa156d816722dd632f17519fe8fa4a76 Mon Sep 17 00:00:00 2001 From: Joshua Britt Date: Thu, 9 Apr 2026 17:33:34 -0500 Subject: [PATCH 8/8] Rename .github files to lowercase for modern standardization. --- .github/{FUNDING.yml => funding.yml} | 0 .github/{ISSUE_TEMPLATE => issue_template}/bug_report.md | 0 .github/{ISSUE_TEMPLATE => issue_template}/config.yml | 0 .github/{ISSUE_TEMPLATE => issue_template}/feature_request.md | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename .github/{FUNDING.yml => funding.yml} (100%) rename .github/{ISSUE_TEMPLATE => issue_template}/bug_report.md (100%) rename .github/{ISSUE_TEMPLATE => issue_template}/config.yml (100%) rename .github/{ISSUE_TEMPLATE => issue_template}/feature_request.md (100%) 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 similarity index 100% rename from .github/ISSUE_TEMPLATE/bug_report.md rename to .github/issue_template/bug_report.md 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 similarity index 100% rename from .github/ISSUE_TEMPLATE/feature_request.md rename to .github/issue_template/feature_request.md