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