Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Request: writing the comment-tag at the start of the comment #435

Open
arieluchka-bse opened this issue Jan 23, 2025 · 0 comments

Comments

@arieluchka-bse
Copy link

arieluchka-bse commented Jan 23, 2025

hola :)

First of all, Thanks for the extension!!!

i want to use some of the mermaid diagrams and add more to it on every sync to the PR.

right now it can easily be done by upserting to the comment with a mermaid graph (if the code block is not closed):

```mermaid
gitGraph
    commit id: "703ae9e"

Image

Then, if we upsert to the comment:

```mermaid
gitGraph
    commit id: "703ae9e"
    commit id: "1234567"

Image


The problem is, that this action leaves the comment-tag at the buttom of the comment, and then the graph fails to render

```mermaid
gitGraph
    commit id: "703ae9e"
    commit id: "1234567"

<!-- thollander/actions-comment-pull-request "git-graph" -->

Image

Is it possible to move the tag to be written at the start of the comment?
This will open a door of possibilities to anyone who wants to dynamically generate and update those diagrams :)

example:

<!-- thollander/actions-comment-pull-request "git-graph" -->

```mermaid
gitGraph
    commit id: "703ae9e"
    commit id: "1234567"

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant