fix: support pull-request for slug and slug url

This commit is contained in:
rlespinasse
2021-01-25 22:03:30 +01:00
committed by Romain Lespinasse
parent 75ce03b6a0
commit 78985f84ec
5 changed files with 11 additions and 3 deletions

View File

@@ -65,5 +65,5 @@ function replaceAnyDotToHyphen(envVar: string): string {
}
function removeRef(envVar: string): string {
return envVar.replace(RegExp('^refs/(heads|tags)/'), '')
return envVar.replace(RegExp('^refs/(heads|tags|pull)/'), '')
}