Help with accessing comments from GitLab issue

Hi I am searching for a method to access comments in issues in my CI/CD pipeline and workflow, I have a workflow i made in GitHub but i am trying to migrate from GitHub to GitLab . but i am unable to replicate the workflow here.

Below is GitHub yml code

name: AUTOGPT
on:
  workflow_dispatch :   #only run when requested
  # comment out the next 2 lines to stop processing new inputs
  issue_comment:
    types: [created]

jobs:
  printEnv:
    if: ${{ startsWith( github.event.comment.body, '/agent-action')}}
    permissions: write-all
      # repository:write      
    name: Print env
    runs-on: ubuntu-latest
    steps:
      - name: Dump GitHub context
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GITHUB_CONTEXT: ${{ toJson (github) }}
          GITHUB_USER: ${{ github.event.comment.user.login }}
          GITHUB_REPO: ${{ github.repository }}
        run: |
          echo USER "$GITHUB_USER"
          echo USER "$GITHUB_REPO"
          echo ACTOR    "${{ github.actor }}"
          echo TRIGGER  "${{ github.triggering_actor }}"
          echo LOGIN    "${{ github.event.comment.user.login }}"

  runJob:
    if: ${{ startsWith( github.event.comment.body, '/agent-action')}}
    permissions: write-all
    name: Runevent
    runs-on: ubuntu-latest
    steps:
      - name: run gh workflow
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GITHUB_CONTEXT: ${{ toJson (github) }}
          GITHUB_USER: ${{ github.event.comment.user.login }}
          GITHUB_REPO: ${{ github.repository }}
          COMMENT_BODY: $${{ github.event.comment.body }}
        run: |
          echo TEST ${{ contains(fromJson('["nektos/act", "jmikedupont2", "Mysticmarks"]'), github.actor ) }}
          echo USER "$GITHUB_USER"
          echo USER "$GITHUB_REPO"
          echo ACTOR    "${{ github.actor }}"
          #echo TRIGGER  "${{ github.triggering_actor }}"
          #echo LOGIN    "${{ github.event.comment.user.login }}"
          #echo $GITHUB_CONTEXT | gh workflow run  -R jmikedupont2/ai-ticket run.yml \
          #   --ref docker-live-source-no-build || echo skip
          # call an another repo
          # echo $GITHUB_CONTEXT | gh workflow run -R meta-introspector/ai-ticket run.yml  || echo done
          
          # call in our own repo
          #echo $GITHUB_CONTEXT | 
          gh workflow run \
              -f ai_name=github_seer \
              -f ai_role=githubactionexpert \
              -f ai_goal_1="write github actions" \
              -f ai_goal_2="get user input" \
              -f ai_goal_3="debug errors" \
              -f ai_goal_4="${COMMENT_BODY}" \
              -f ai_goal_count=4 \
              -R ${{ github.repository }} run.yml  || echo done

Would be huge help if someone is able to help