From f957bf75bbb43c5ed7e2f2a64dd58021f3a7b573 Mon Sep 17 00:00:00 2001 From: Doc Date: Wed, 8 Oct 2025 19:41:06 -0400 Subject: [PATCH] Added todo test --- .gitea/workflows/isolation-check.yaml | 1 - .gitea/workflows/test-todo-issue.yaml | 33 +++++++++++++++++++++++++++ src/example.py | 6 +++++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/test-todo-issue.yaml create mode 100644 src/example.py diff --git a/.gitea/workflows/isolation-check.yaml b/.gitea/workflows/isolation-check.yaml index b1c9985..e0949b6 100644 --- a/.gitea/workflows/isolation-check.yaml +++ b/.gitea/workflows/isolation-check.yaml @@ -1,7 +1,6 @@ name: Runner Isolation Check on: workflow_dispatch: - push: jobs: isolation-test: diff --git a/.gitea/workflows/test-todo-issue.yaml b/.gitea/workflows/test-todo-issue.yaml new file mode 100644 index 0000000..2555406 --- /dev/null +++ b/.gitea/workflows/test-todo-issue.yaml @@ -0,0 +1,33 @@ +name: Create issues from TODOs + +on: + workflow_dispatch: + inputs: + importAll: + default: false + required: false + type: boolean + description: Enable, if you want to import all TODOs. Runs on checked out branch! Only use if you're sure what you are doing. + # push: + # branches: # do not set multiple branches, todos might be added and then get referenced by themselves in case of a merge + # - main + # - master + +permissions: + issues: write + repository-projects: read + contents: read + +jobs: + todos: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Run Issue Bot + uses: juulsn/todo-issue@main + with: + excludePattern: '^(node_modules/)' + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/src/example.py b/src/example.py new file mode 100644 index 0000000..aa4aa7b --- /dev/null +++ b/src/example.py @@ -0,0 +1,6 @@ + +def main(): + print("Hello, world!") + +if __name__ == "__main__": + main() \ No newline at end of file