File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
release :
10
- name : Release
10
+ name : Send PR number to tracker endpoint
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- name : Checkout Repo
Original file line number Diff line number Diff line change @@ -24,16 +24,18 @@ async function logChangesets() {
24
24
25
25
const prPayload = require ( process . env . GITHUB_EVENT_PATH ) ;
26
26
27
- console . log ( 'prPayload' , JSON . stringify ( prPayload ) ) ;
27
+ console . log ( prPayload . pull_request . title ) ;
28
+ console . log ( prPayload . pull_request . number ) ;
29
+ console . log ( prPayload . pull_request . body ) ;
28
30
29
- // if (prPayload.title !== 'Version Packages') return;
31
+ // if (prPayload.pull_request. title !== 'Version Packages') return;
30
32
31
- const matches = prPayload . body . match ( / # # f i r e b a s e @ ( [ \d \. ] + ) / ) ;
33
+ const matches = prPayload . pull_request . body . match ( / # # f i r e b a s e @ ( [ \d \. ] + ) / ) ;
32
34
const version = matches [ 1 ] ;
33
35
34
36
const data = JSON . stringify ( {
35
37
version,
36
- pr : prPayload . number
38
+ pr : prPayload . pull_request . number
37
39
} ) ;
38
40
39
41
const options = {
You can’t perform that action at this time.
0 commit comments