diff --git a/.github/workflows/auto-assign-action.yml b/.github/workflows/auto-assign-action.yml index 3e427f6a..3b993150 100644 --- a/.github/workflows/auto-assign-action.yml +++ b/.github/workflows/auto-assign-action.yml @@ -1,17 +1,37 @@ -#name: Assign to Author +name: Auto Comment on PR Merge -#on: - #issues: - #types: [opened] +on: + pull_request_target: + types: [closed] -#jobs: - #auto-assign: - #runs-on: ubuntu-latest - #permissions: - #issues: write - #steps: - #- name: 'Auto-assign issue creator' - #uses: pozil/auto-assign-issue@v2 - #with: - #repo-token: ${{ secrets.GITHUB_TOKEN }} # Required token for authentication - #assignees: ${{ github.event.issue.user.login }} # Auto-assign the issue creator +permissions: + issues: write + pull-requests: write + +jobs: + comment: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + + steps: + - name: Add Comment to Merged PR + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + COMMENT=$(cat <