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: Print environment env: baseUrl: ${{ env.GITHUB_API_URL }} GHE_HOST: ${{ env.GITHUB_API_URL }} run: | echo "=== ENVIRONMENT ===" printenv - name: Run Issue Bot uses: juulsn/todo-issue@main with: excludePattern: '^(node_modules/)' env: baseUrl: ${{ env.GITHUB_API_URL }} GHE_HOST: ${{ env.GITHUB_API_URL }} ACTIONS_STEP_DEBUG: true GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}