Fix SDPA TT_METAL_WATCHER issues #1690
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Inject branch name into PR description | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| permissions: | |
| pull-requests: write | |
| jobs: | |
| update-description: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Update PR Description | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| const pr = context.payload.pull_request; | |
| const branchName = pr.head.ref; | |
| const placeholder = "{{branch_name}}"; | |
| let body = pr.body || ""; | |
| if (body.includes(placeholder)) { | |
| const newBody = body.replaceAll(placeholder, branchName); | |
| await github.rest.pulls.update({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| pull_number: pr.number, | |
| body: newBody | |
| }); | |
| } |