From c35dbffe9b3babbc1391de5e135c91b4a90c7c33 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Wed, 4 Mar 2026 18:27:48 +0000 Subject: [PATCH] chore(ci): remove auto-complete TODO workflow Deleted the Gitea Actions workflow responsible for automatically moving TODO files from queued to completed on pull request events. --- .gitea/workflows/auto-complete-todo.yml | 37 ------------------------- 1 file changed, 37 deletions(-) delete mode 100644 .gitea/workflows/auto-complete-todo.yml diff --git a/.gitea/workflows/auto-complete-todo.yml b/.gitea/workflows/auto-complete-todo.yml deleted file mode 100644 index 0663208..0000000 --- a/.gitea/workflows/auto-complete-todo.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: 'Auto-complete TODO' - -on: - pull_request: - types: [opened, synchronize, reopened] - -jobs: - move-todo: - runs-on: ubuntu-gitea - steps: - - name: 'Clone PR branch, move TODO, push update' - env: - PAT_TOKEN: ${{ secrets.PAT_TOKEN }} - SERVER_URL: ${{ github.server_url }} - REPO_OWNER: ${{ github.repository_owner }} - REPO_NAME: ${{ github.event.pull_request.head.repo.name }} - PR_BRANCH: ${{ github.head_ref }} - run: | - git clone https://${PAT_TOKEN}@${SERVER_URL}/${REPO_OWNER}/${REPO_NAME}.git pr-temp || exit 1 - cd pr-temp - git checkout ${PR_BRANCH} - BRANCH=$(git rev-parse --abbrev-ref HEAD) - TODO_NAME="${BRANCH#feature/}.md" - if [[ "${BRANCH}" == feature/* && -f todo/queued/${TODO_NAME} ]]; then - mkdir -p todo/completed - mv todo/queued/${TODO_NAME} todo/completed/ - git config user.name 'Gitea Actions Bot' - git config user.email 'actions@noreply.local' - git add todo/ - git commit -m "chore: auto-complete ${TODO_NAME} via Gitea Actions" - git push https://${PAT_TOKEN}@${SERVER_URL}/${REPO_OWNER}/${REPO_NAME}.git ${PR_BRANCH} - echo "✅ Moved todo/queued/${TODO_NAME} → completed/" - else - echo "â„šī¸ No action: branch='${BRANCH}', expected 'feature/*' with todo/queued/${TODO_NAME}" - fi - cd .. - rm -rf pr-temp \ No newline at end of file