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 25
25
issues :
26
26
types :
27
27
- opened
28
+ pull_request :
29
+ types :
30
+ - milestoned
31
+ - closed
28
32
29
33
env :
30
34
COMMENT_BODY : ${{ github.event.action == 'opened' && github.event.issue.body || github.event.comment.body }}
31
35
32
36
jobs :
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
+
33
59
backport-commits :
34
60
name : Backport Commits
35
61
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments