File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 12
12
PAYLOAD_REF : ${{ github.event.client_payload.ref }}
13
13
PAYLOAD_SHA : ${{ github.event.client_payload.sha }}
14
14
PAYLOAD_REPOSITORY : ${{ github.event.client_payload.repository }}
15
- PAYLOAD_COMMIT_MESSAGE : ${{ github.event.client_payload.commit_message }}
15
+ PAYLOAD_PR_NUMBER : ${{ github.event.client_payload.pr_number }}
16
16
steps :
17
17
- uses : actions/checkout@v2
18
18
- name : Set up Ruby
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env ruby
2
2
3
3
message =
4
- if ENV [ "PAYLOAD_COMMIT_MESSAGE " ] . to_s =~ /\A Merge pull request (# \d +)/
4
+ if ENV [ "PAYLOAD_PR_NUMBER " ] . to_s =~ /^( \d +)$ /
5
5
"#{ ENV [ "PAYLOAD_REPOSITORY" ] } #{ \$1 } "
6
6
else
7
7
"#{ ENV [ "PAYLOAD_REPOSITORY" ] } @#{ ENV [ "PAYLOAD_SHA" ] } (#{ ENV [ "PAYLOAD_REF" ] } )"
You can’t perform that action at this time.
0 commit comments