name: PR Greeting

on: 
  pull_request:
    types: opened
  issues:
    types: opened
    
permissions:
  issues: write
  pull-requests: write

jobs:
  greeting:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/first-interaction@v1.1.1
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        issue-message: |
          Hello there 👋
          Thanks for submitting your first issue to the Pi-Apps project! We'll try to get back to you as soon as possible. 
          In the meantime, we encourage you join our [Discord server](https://discord.gg/RXSTvaUvuu), where you can ask any questions you might have.

          Please respond as soon as possible if a Pi-Apps maintainer requests more information from you. Stale issues will be closed after a lengthy period of time with no response.
        pr-message: |
          Hello there 👋
          Thanks for submitting your first pull request to the Pi-Apps project! We'll review your contributions soon. 
          In the meantime, we encourage you to read our [guide to creating an app](https://github.com/Botspot/pi-apps/wiki/Creating-an-app), and to join our [Discord server](https://discord.gg/RXSTvaUvuu), where you can ask us questions you might have. 
