File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -75,9 +75,9 @@ All event messages will have these elements:
75
75
76
76
### Delete
77
77
78
- ![ Delete] ( https://user-images.githubusercontent.com/5962998/104859330-f1661700-58fa -11eb-9e23-536d8ed443cd .png )
78
+ ![ Delete] ( https://user-images.githubusercontent.com/5962998/104859938-0ba1f400-58ff -11eb-8645-9c5cedac4bde .png )
79
79
80
- 1 . Branch Name - Also link to the branch.
80
+ 1 . Branch Name
81
81
82
82
## Usage
83
83
Original file line number Diff line number Diff line change @@ -12860,10 +12860,8 @@ const getMessage = () => {
12860
12860
return null ;
12861
12861
}
12862
12862
12863
- const pre = 'refs/heads/' ;
12864
- const branchName = github . context . ref . substring ( pre . length ) ;
12865
- const branchUrl = `${ github . context . payload . repository . html_url } /tree/${ branchName } ` ;
12866
- return `Workflow <${ runUrl } |${ process . env . GITHUB_WORKFLOW } > for Deletion of Branch <${ branchUrl } |${ branchName } >` ;
12863
+ const branchName = github . context . payload . ref ;
12864
+ return `Workflow <${ runUrl } |${ process . env . GITHUB_WORKFLOW } > for Deletion of Branch \`${ branchName } \`` ;
12867
12865
}
12868
12866
12869
12867
default :
Original file line number Diff line number Diff line change @@ -105,11 +105,8 @@ const getMessage = () => {
105
105
return null ;
106
106
}
107
107
108
- const pre = 'refs/heads/' ;
109
- const branchName = context . ref . substring ( pre . length ) ;
110
- const branchUrl = `${ context . payload . repository . html_url } /tree/${ branchName } ` ;
111
-
112
- return `Workflow <${ runUrl } |${ process . env . GITHUB_WORKFLOW } > for Deletion of Branch <${ branchUrl } |${ branchName } >` ;
108
+ const branchName = context . payload . ref ;
109
+ return `Workflow <${ runUrl } |${ process . env . GITHUB_WORKFLOW } > for Deletion of Branch \`${ branchName } \`` ;
113
110
}
114
111
115
112
default :
You can’t perform that action at this time.
0 commit comments