github.com/nginxinc/kubernetes-ingress@v1.12.5/.github/workflows/issues.yaml (about)

     1  on:
     2    issues:
     3      types: [opened]
     4  
     5  jobs:
     6    comment:
     7      name: Issue comment
     8      if: ${{ !github.event.issue.pull_request }}
     9      runs-on: ubuntu-20.04
    10      steps:
    11        - name: text
    12          id: controller
    13          if: contains(github.event.issue.body, 'nginx.ingress.kubernetes.io')
    14          run: |
    15            text="\n\n I\'ve parsed the text of your issue and it looks like you might be mixing up the two Ingress Controllers, please take a look at this [page](https://github.com/nginxinc/kubernetes-ingress/blob/master/docs/nginx-ingress-controllers.md) to see the differences between \`nginxinc/kubernetes-ingress\` (this repo) and \`kubernetes/ingress-nginx\`."
    16            echo "::set-output name=text::$text"
    17        - uses: actions/github-script@v4
    18          with:
    19            github-token: ${{secrets.GITHUB_TOKEN}}
    20            script: |
    21              github.issues.createComment({
    22                issue_number: context.issue.number,
    23                owner: context.repo.owner,
    24                repo: context.repo.repo,
    25                body: 'Hi @${{github.event.issue.user.login}} thanks for reporting! \n\n Be sure to check out the [docs](https://docs.nginx.com/nginx-ingress-controller) while you wait for a human to take a look at this :slightly_smiling_face:${{ steps.controller.outputs.text }}\n\n Cheers!'
    26              })