|  | 
|  | 1 | +name: 'Handle issue' | 
|  | 2 | +on: | 
|  | 3 | +  issues: | 
|  | 4 | +    types: [opened,reopened] | 
|  | 5 | + | 
|  | 6 | +# ℹ️ Required by gh cli | 
|  | 7 | +env: | 
|  | 8 | +    GH_TOKEN: ${{ github.token }} | 
|  | 9 | + | 
|  | 10 | +jobs: | 
|  | 11 | +  handle_new_issue: | 
|  | 12 | +    if: github.event.action == 'opened' | 
|  | 13 | +    runs-on: ubuntu-latest | 
|  | 14 | +    name: Handle new issue | 
|  | 15 | +    steps: | 
|  | 16 | +      - name: Greet & Apply label | 
|  | 17 | +        uses: themeselection/[email protected] | 
|  | 18 | +        with: | 
|  | 19 | +          message: | | 
|  | 20 | +            ### Hi [@${{ github.actor }}](https://github.com/${{ github.actor }}) <img src="https://user-images.githubusercontent.com/47495003/171637050-b790338b-c8fd-4807-af43-19c6fd6713ed.gif" height="25px" width="25px"> | 
|  | 21 | +            Thanks a lot for purchasing our theme and getting in touch with us. | 
|  | 22 | +
 | 
|  | 23 | +            Your support has been raised, our response time could be 1 - 2 business days. | 
|  | 24 | +            In the meantime, feel free to check out related issues in the repository for more help. | 
|  | 25 | +
 | 
|  | 26 | +            We really appreciate your patience. | 
|  | 27 | +          raise-support-using-form-msg: | | 
|  | 28 | +            Thanks for creating an issue ☺️ | 
|  | 29 | +
 | 
|  | 30 | +            It seems our [raise support](https://tools.themeselection.com/github/raise-support) form was skipped while creating this issue. | 
|  | 31 | +            Please consider raising support via our support form only which will create issues using essential information we need to resolve your query quickly. | 
|  | 32 | +
 | 
|  | 33 | +            This will help in growing an excellent community, where: | 
|  | 34 | +
 | 
|  | 35 | +            - Other people can get it resolved if they have the same query | 
|  | 36 | +            - We can easily understand your query | 
|  | 37 | +            - Community at a later stage can also provide you solutions/suggestions | 
|  | 38 | +
 | 
|  | 39 | +            Closing this issue. | 
|  | 40 | +            Regards. | 
|  | 41 | +
 | 
|  | 42 | +      - name: Find duplicates | 
|  | 43 | +        uses: wow-actions/[email protected] | 
|  | 44 | +        with: | 
|  | 45 | +          GITHUB_TOKEN: ${{ github.token }} | 
|  | 46 | +          label: duplicate | 
|  | 47 | +          comment: > | 
|  | 48 | +            Potential duplicates: {{#issues}} | 
|  | 49 | +              - #{{ number }} _({{ accuracy }}% Match)_ | 
|  | 50 | +            {{/issues}} | 
|  | 51 | +
 | 
|  | 52 | +  remove_awaiting_reply_label: | 
|  | 53 | +    if: github.event.action == 'reopened' | 
|  | 54 | +    runs-on: ubuntu-latest | 
|  | 55 | +    name: Remove Awaiting Reply Label | 
|  | 56 | +    steps: | 
|  | 57 | +      - run: gh issue edit --remove-label awaiting-reply --repo ${{ github.repository }} | 
0 commit comments