name: First interaction
on:
  pull_request_target:
    types: 
      - opened
  issues:
    types:
      - opened

jobs:
  first-interaction:
    runs-on: ubuntu-latest
    name: First interaction
    steps:
    - uses: actions/first-interaction@v1
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        issue-message: 'Welcome to AsyncAPI.NET. Thank you ${{ github.event.pull_request.user.login }} for reporting your first issue. Please check out our [contributors guide](https://github.com/LEGO/AsyncAPI.NET/blob/main/CONTRIBUTING.md).'          
        pr-message: 'Thank you ${{ github.event.pull_request.user.login }} for your first pull request to AsyncAPI.NET repository. Please check out our [contributors guide](https://github.com/LEGO/AsyncAPI.NET/blob/main/CONTRIBUTING.md).'
