dtinth / todo-actions

Turn TODO in source code into issues and close them when they are gone. Runs on GitHub Actions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Action dont run on protected branches

NBprojekt opened this issue · comments

When I run this action everything seems to work, but no issues are created.

The logs

...
"Total TODOs found: 1"
"TODOs without references: 1"
"Not on default branch -- aborting."

Is seems to work to this point but it aborts because it is not an the "default branch".
The strange thing is that currently I only have 1 branch.

Did I forgot something in the config or is it a bug?

My action

todo:
   name: Convet TODO comments to issues
   runs-on: ubuntu-latest
   
   steps:
    - uses: actions/checkout@v1
    - uses: dtinth/todo-actions@v0.2.0
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        TODO_ACTIONS_MONGO_URL: ${{ secrets.DB_URL}}

I found the issue.

My master was protected is there any solution to use this action with protected branches?

In my org we created bot user and gave him permissions to push here anyway.