todo-actions icon indicating copy to clipboard operation
todo-actions copied to clipboard

Action dont run on protected branches

Open NBprojekt opened this issue 4 years ago • 2 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/[email protected]
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        TODO_ACTIONS_MONGO_URL: ${{ secrets.DB_URL}}

NBprojekt avatar May 26 '20 12:05 NBprojekt

I found the issue.

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

NBprojekt avatar May 26 '20 12:05 NBprojekt

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

JuniorJPDJ avatar Sep 10 '20 23:09 JuniorJPDJ