alstr / todo-to-issue-action

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

Add support for twig comments #103

Closed mikesnoeren closed 2 years ago

mikesnoeren commented 2 years ago

As most of my projects make use of the twig templating engine it would be very nice to see support for comments in twig files.

Twig todo comments can look like this:

{# TODO: Single line todo #}
{# @TODO: Single line todo #}
{# todo: Single line todo #}
{# @todo: Single line todo #}

{# TODO: Multi line todo 
  - lorem ipsum
  - dolor sit amet
#}

{# 
  TODO: Multi line todo 
  - lorem ipsum
  - dolor sit amet
#}

If someone can point me in the right direction I can try to make a PR for twig support myself.

alstr commented 2 years ago

Hey there. Making a PR to add a supported language is pretty straightforward:

Thanks!

mikesnoeren commented 2 years ago

Unfortunately I did not have time to change any Python files, however, I was able to make a pull request with the other required changes: https://github.com/alstr/todo-to-issue-action/pull/107

alstr commented 2 years ago

All seems to work, thanks for the contribution!