Skip to content

Commit 6d59733

Browse files
author
Roman Glushko
committed
magento#184 Changed names of PR envs
1 parent 04fd676 commit 6d59733

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gradle-tasks/staticChecks.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ task checkstyleCI(type: Checkstyle) {
6767
*/
6868
def getChangedFiles() {
6969
// Get the target and source branch
70-
def envTargetBranch = System.getenv("github.event.pull_request.base.ref")
71-
def envSourceBranch = System.getenv("github.event.pull_request.head.ref")
70+
def envTargetBranch = System.getenv("github.base_ref")
71+
def envSourceBranch = System.getenv("github.head_ref")
7272

73-
logger.debug('github.event.pull_request.base.ref: {}', envTargetBranch)
74-
logger.debug('github.event.pull_request.head.ref: {}', envSourceBranch)
73+
logger.debug('Target Branch: {}', envTargetBranch)
74+
logger.debug('Source Branch: {}', envSourceBranch)
7575

7676
// Compare to master if no branch specified
7777
def targetBranch

0 commit comments

Comments
 (0)