microsoft/typespec

Public

mirrored from https://github.com/microsoft/typespecAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/add-client-method-instrumentation

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/commenter.yml

38lines · modecode

1name: Make Change Comment
2
3on:
4 workflow_run:
5 workflows: ["Consistency"]
6 types:
7 - completed
8
9permissions:
10 pull-requests: write
11
12jobs:
13 # DO NOT BUILD ANYTHING FROM A PR HERE https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
14 commenter:
15 if: >
16 github.event.workflow_run.event == 'pull_request' &&
17 github.actor != 'dependabot[bot]' &&
18 !startsWith(github.head_ref, 'publish/')
19 runs-on: ubuntu-latest
20 steps:
21 - uses: actions/checkout@v4
22 - uses: actions/download-artifact@v4
23 with:
24 name: comment
25 run-id: ${{github.event.workflow_run.id }}
26 github-token: ${{secrets.GITHUB_TOKEN}}
27 - name: Display structure of downloaded files
28 run: ls -R
29
30 - uses: ./.github/actions/setup
31
32 - run: pnpm install
33 name: Install dependencies
34
35 - run: pnpm chronus-github-pr-commenter --comment-file comment.json
36 env:
37 GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
38 name: Create/update comment
39