# This workflow creates new comment from template to an issue
# if it was labled as 'support'

name: Add comment
on:
  issues:
    types:
      - labeled
jobs:
  add-comment:
    if: github.event.label.name == 'support'
    runs-on: ubuntu-latest
    permissions:
      issues: write
    steps:
      - name: Add comment
        uses: peter-evans/create-or-update-comment@a35cf36e5301d70b76f316e867e7788a55a31dae
        with:
          issue-number: ${{ github.event.issue.number }}
          body: |
            👋 Hi @${{ github.event.issue.user.login }} and Thank you for reaching out to us.
            In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com.
            When submitting the ticket, please specify:
            - ✅ your AppsFlyer sign-up (account) email
            - ✅ app ID
            - ✅ production steps
            - ✅ logs
            - ✅ code snippets
            - ✅ and any additional relevant information.
