alstr / todo-to-issue-action

Action that converts TODO comments to GitHub issues on push.
MIT License
603 stars 115 forks source link

action workflow runs but no issue is created #158

Closed amine-ammor closed 1 year ago

amine-ammor commented 1 year ago

Hello,

I created a test repository to test for the gitub action : https://github.com/amine-ammor/test_repo_for_github_action .

The github action runs but no issue is created. I created and assigned the "secret" to the workflow (with a token with full access with full access), but no issue is created.

Here is the content of the yml file :

name: "Run TODO to Issue"
on: ["push"]
jobs:
    build:
        runs-on: "ubuntu-latest"
        steps:
            - uses: "actions/checkout@v3"
            - name: "TODO to Issue"
              uses: "alstr/todo-to-issue-action@v4"
              with:  
                    PROJECTS_SECRET: ${{ secrets.PROJECTS_SECRET }} 

Any idea , where this might come from ? Should a project exists in the repository in order for the issue to be created ? Thank you.

alstr commented 1 year ago

Hey there @amine-ammor. Is this a 'new' (i.e. not classic) project? If so the action won't work with that, as there is no API support for those kind of projects at present. The issue should still be created in your repo, though. The reason it doesn't in your case is because # is not a comment marker in Markdown, so it doesn't get picked up. It should work if you use one of these styles: https://github.com/alstr/todo-to-issue-action/blob/master/syntax.json#L410

Let me know if you need any further help!

amine-ammor commented 1 year ago

Hello, than you again for the reply.

It seems that "classical projects" are gone for the accounts, who didn't possess one. In my case, as this account is new, I can only create a new project (not a classical one) : https://github.com/orgs/community/discussions/30227.

Is a project mandatory for this "github action" to work ? It seems to be triggered by the github comment even if doesn't succeed to produce an issue?

Here is the sample of code containing the comment:

# test_repo_for_github_action
everything is in the title, that is a temporary repository

# TODO : must create issue automatically

<!-- TODO : must create issue automatically -->
<!-- TODO : must create issue automatically 2 -->
<!-- TODO : must create issue automatically 3 -->
<!-- TODO : must create issue automatically 4 -->
alstr commented 1 year ago

A project isn't mandatory at all. You can still create issues in your repo. The projects functionality is just for assigning issues to projects, and for now that's really on hold until GitHub update the API.

I can see the action is running for you but that the issues aren't being created. I would suggest using <!-- TODO: must create as the gap before the colon may be throwing things out. Can you try that?

sitenzo commented 8 months ago

@amine-ammor have you been able to get this working without projects? I don't use projects but no issue is being created also.

See https://github.com/alstr/todo-to-issue-action/discussions/174