Skip to content

Firefly III: a personal finances manager

Clean up workflows.

James Cole82d5ac6760cd
diff --git a/.github/ISSUE_TEMPLATE/fr.yml b/.github/ISSUE_TEMPLATE/fr.yml
index 052fa8964a..7300fc3d43 100644
--- a/.github/ISSUE_TEMPLATE/fr.yml
+++ b/.github/ISSUE_TEMPLATE/fr.yml
@@ -6,7 +6,7 @@ body:
label: Support guidelines
description: Please read the support guidelines before proceeding.
options:
- - label: I've read the <!-- MZ2udTpin6FL --> [support guidelines](https://github.com/firefly-iii/firefly-iii/blob/main/.github/support.md)
+ - label: I've read the [support guidelines](https://github.com/firefly-iii/firefly-iii/blob/main/.github/support.md)
required: true
- label: My request is not listed as [a very good idea, but unfortunately...](https://docs.firefly-iii.org/explanation/more-information/what-its-not/)
required: true
@@ -18,7 +18,7 @@ body:
description: AI agents like Claude and CoPilot are not reliable tools. Do not use them.
options:
- label: I'm a real person and wrote this bug without assistance from AI.
- required: true
+ required: false
- type: textarea
diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml
index fb4b906a0e..522b3b6f4e 100644
--- a/.github/workflows/cleanup.yml
+++ b/.github/workflows/cleanup.yml
@@ -61,8 +61,8 @@ jobs:
'cleanup.yml',
'close-duplicates.yml',
'closed-issues.yml',
- 'issues-reply-old-versions.yml',
'depsreview.yml',
+ 'issues-reply-old-versions.yml',
'label-actions.yml',
'lock.yml',
'release.yml',
diff --git a/.github/workflows/issues-reply-old-versions.yml b/.github/workflows/issues-reply-old-versions.yml
index 086698af9c..e0a35c8719 100644
--- a/.github/workflows/issues-reply-old-versions.yml
+++ b/.github/workflows/issues-reply-old-versions.yml
@@ -1,4 +1,4 @@
-name: 'Issues - Respond to old versions'
+name: 'Issues - Old version / missing debug info'
# the workflow to execute on is comments that are newly created
on:
@@ -41,7 +41,7 @@ jobs:
DDNOV="${DDNOV:1}"
echo "Firefly III version is ${{ steps.ff3version.outputs.release }}, without v is $FFNOV"
- echo "Data importer version is ${{ steps.ff3version.outputs.release }}, without v is $DDNOV"
+ echo "Data importer version is ${{ steps.importerversion.outputs.release }}, without v is $DDNOV"
# user includes no debug info at all, and does not mention current version.
# user includes no debug info at all, but does mention current version
@@ -106,7 +106,7 @@ jobs:
Thank you for running the latest version of Firefly III (or the data importer)."
# gh issue comment "$NUMBER" --body "$MESSAGE"
- echo "Triggered on fourth test"
+ echo "Triggered on fourth test. Will NOT reply."
exit 0
fi
env:
diff --git a/.github/workflows/pr-reply-no-disclosure.yml b/.github/workflows/pr-reply-no-disclosure.yml
deleted file mode 100644
index 41afb1850f..0000000000
--- a/.github/workflows/pr-reply-no-disclosure.yml
+++ /dev/null
@@ -1,68 +0,0 @@
-name: 'PRs - Check for AI disclosure'
-
-# the workflow to execute on is comments that are newly created
-on:
- pull_request:
- types: [ opened ]
-
-# permissions needed for reacting to IssueOps commands on issues and PRs
-permissions:
- contents: write
- pull-requests: write
- issues: write
- checks: read
-
-jobs:
- respond:
- runs-on: ubuntu-latest
- steps:
- - run: |
- BODY=$(gh pr view $NUMBER --json body)
- AUTHOR=$(gh pr view $NUMBER --json author)
-
- if [[ $AUTHOR == *"app/dependabot"* ]]; then
- echo "Is dependabot, stop"
- exit 0
- fi
-
- if [[ $AUTHOR == *"github-actions"* ]]; then
- echo "Is github-actions, stop"
- exit 0
- fi
-
- echo "Not dependabot: $AUTHOR"
-
- # $BODY must contain one of these four uses.
- if [[ $BODY != *"Code generation"* &&
- $BODY != *"Test/benchmark generation"* &&
- $BODY != *"Documentation"* &&
- $BODY != *"Research and understanding"* &&
- $BODY != *"I used AI assistance for"* ]]; then
- echo 'PR contains no AI disclosure.'
- MESSAGE="Hi there!
-
- This is an automated reply. \`Share and enjoy\`
-
- You triggered an automated reply, because it seems you removed or changed the AI assistance disclosure from the PR template. Without a valid disclosure, your PR cannot be processed.
-
- Even if you did not use AI, this disclosure must be present. Please reply to your PR and explain your use of AI in any or all of the following areas:
-
- 1. Code generation (e.g., when writing an implementation or fixing a bug)
- 2. Test/benchmark generation
- 3. Documentation (including examples)
- 4. Research and understanding
-
- There cannot be interaction with your PR without this disclosure.
-
- If the disclosure is present but the bot did not pick up on it, please accept my apologies for the intrusion. Contrary to other bots, this one is just a simple \`bash\` script and it may be wrong."
-
- echo 'Will now leave comment.'
- gh pr comment "$NUMBER" --body "$MESSAGE"
- echo "Triggered on AI disclosure missing."
- exit 0
- fi
- echo "It has the disclosure"
- env:
- NUMBER: ${{ github.event.pull_request.number }}
- GH_TOKEN: ${{ github.token }}
- GH_REPO: ${{ github.repository }}
diff --git a/.github/workflows/run-ci.yml b/.github/workflows/run-ci.yml
deleted file mode 100644
index d61edebe15..0000000000
--- a/.github/workflows/run-ci.yml
+++ /dev/null
@@ -1,102 +0,0 @@
-name: 'Code - Run CI'
-
-on:
- workflow_dispatch:
- inputs:
- phpversion:
- description: 'PHP version'
- required: true
- default: '8.5'
- schedule:
- - cron: '0 3 * * MON'
-
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - name: Validate input
- run: |
- git config --global init.defaultBranch main
- - name: Checkout
- uses: actions/checkout@v7
- with:
- fetch-depth: 0
- - name: Switch and pull
- run: |
- #
- # Always check out origin/develop, unless its a branch release.
- #
- BRANCH_TO_PULL=origin/develop
- git checkout --track $BRANCH_TO_PULL
- git pull
- - name: Configure Git
- run: |
- # do some configuration
- sudo ln -fs /usr/share/zoneinfo/Europe/Amsterdam /etc/localtime
- sudo timedatectl set-timezone Europe/Amsterdam
- git config user.name JC5
- git config user.email [email protected]
- git config advice.addIgnoredFile false
- git config push.autoSetupRemote true
- - name: Setup PHP
- uses: shivammathur/setup-php@v2
- with:
- php-version: ${{ github.event.inputs.phpversion || '8.5' }}
- extensions: mbstring, intl, zip, bcmath
- - name: Lint PHP
- run: |
- echo "Will run PHP lint!"
- php_lint_file()
- {
- local php_file="$1"
- php -l "$php_file" &> /dev/null
- if [ "$?" -ne 0 ]
- then
- echo -e "[FAIL] $php_file"
- return 1
- fi
- }
-
- export -f php_lint_file
-
- find . -path ./vendor -prune -o -name '*.php' | parallel -j 4 php_lint_file {}
-
- if [ "$?" -ne 0 ]
- then
- exit 1
- fi
- - name: Install Composer dependencies
- run: |
- cp .env.example .env
- # install all packages etc.
- rm -rf vendor composer.lock
- composer update --no-scripts -q
- rm .env
- - name: Run CI
- run: |
- cp .env.example .env
- # format code.
- echo "Will now run Mago Format"
- ./vendor/bin/mago format
- sudo chown -R runner:docker resources/lang
- echo "Will now run PHPCS"
- .ci/phpcs.sh
-
- # lint and check
- echo "Will now run Mago Lint"
- ./vendor/bin/mago lint
- echo "Will now run PHPstan"
- .ci/phpstan.sh
-
- # remove .env file again.
- rm .env
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- - name: Lint Blade templates
- run: |
- echo "Will now run Blade linter"
- cp .env.example .env
- php artisan blade:lint
- rm .env
- GH_TOKEN: ${{ github.token }}
- version: ${{ github.event_name == 'schedule' && 'develop' || inputs.version }}