todo-actions
todo-actions copied to clipboard
Action dont run on protected branches
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}}
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.