We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04fd676 commit 6d59733Copy full SHA for 6d59733
gradle-tasks/staticChecks.gradle
@@ -67,11 +67,11 @@ task checkstyleCI(type: Checkstyle) {
67
*/
68
def getChangedFiles() {
69
// 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")
+ def envTargetBranch = System.getenv("github.base_ref")
+ def envSourceBranch = System.getenv("github.head_ref")
72
73
- logger.debug('github.event.pull_request.base.ref: {}', envTargetBranch)
74
- logger.debug('github.event.pull_request.head.ref: {}', envSourceBranch)
+ logger.debug('Target Branch: {}', envTargetBranch)
+ logger.debug('Source Branch: {}', envSourceBranch)
75
76
// Compare to master if no branch specified
77
def targetBranch
0 commit comments