File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 2525 issues :
2626 types :
2727 - opened
28+ pull_request :
29+ types :
30+ - milestoned
31+ - closed
2832
2933env :
3034 COMMENT_BODY : ${{ github.event.action == 'opened' && github.event.issue.body || github.event.comment.body }}
3135
3236jobs :
37+ job-check :
38+ name : Job Check
39+ runs-on : ubuntu-22.04
40+ if : github.repository == 'llvm/llvm-project'
41+ steps :
42+ - name : Dump GitHub context
43+ env :
44+ GITHUB_CONTEXT : ${{ toJson(github) }}
45+ run : echo "$GITHUB_CONTEXT"
46+
47+ - name : Job Check
48+ uses : actions/github-script@v7
49+ with :
50+ script : |
51+ if (context.pull_request) {
52+ console.log("Is Pull Request");
53+ }
54+ if (context.issue) {
55+ console.log("Is Issue");
56+ }
57+
58+
3359 backport-commits :
3460 name : Backport Commits
3561 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments