name: Closed issue comment
on:
  issues:
    types: [closed]

jobs:
  add-comment:
    runs-on: ubuntu-latest
    permissions:
      issues: write
    steps:
      - name: Did I help?
        uses: peter-evans/create-or-update-comment@a35cf36e5301d70b76f316e867e7788a55a31dae
        with:
          issue-number: ${{ github.event.issue.number }}
          body: |
            I hope I solved your issue!
            
            Consider [sponsoring my work](https://github.com/sponsors/willmcgugan) to continue to maintain and develop Textual.
            
            - Will McGugan
            
