• RonSijm@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    3 months ago

    Interesting idea to store github comments inside git, the article just isn’t very clear to me on how to actually do it.

    He’s talking about using an “internal CLI tool” so I guess it’s not a public tool?

    But anyways, this kinda sounds like something you could do though a Github Action right? Like if a PR is merged, run an action that also appends PR comments or other meta-data from github into git

    • starshipwinepineapple@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      3 months ago

      The first part of the article talks about how to use git notes and has an example commit, followed by adding the note, and then viewing the note. This is all native git.

      The “problem” is that we have centralized discussions in github/gitlab comments and if we want to retain that data then we need to convert the comments into gitnotes. The CLI part is that specific discussion on how Symfony uses git notes to store github comments. It references an internal CLI but then goes through an example of how to use github api to fetch the comments, create git notes, then push those git notes to github. So while the symfony CLI is internal, it looks like we’re given an example of how to do this for github.