Skip to content

Commit

Permalink
Testing auto commit and squash
Browse files Browse the repository at this point in the history
  • Loading branch information
keckothedragon committed May 7, 2024
1 parent 08a9c10 commit 33bb557
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
22 changes: 22 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import java.text.SimpleDateFormat

plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2024.3.2"
id "com.peterabeles.gversion" version "1.10"
id "com.diffplug.spotless" version "6.12.0"
id "org.ajoberstar.grgit" version "5.2.1"
}

java {
Expand Down Expand Up @@ -184,3 +187,22 @@ spotless {
endWithNewline()
}
}

task (commitOnDeploy, dependsOn: "spotlessApply") {
description = "Commits changes when the robot code is deployed"
doLast {
def date = new Date()
def sdf = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss")
grgit.add(patterns: [
'src/',
'vendordeps/',
'build.gradle',
'logs',
'gradle',
'.wpilib'
])
grgit.commit(message: "Automated commit on ${sdf.format(date)}")
}
}

deployArtifact.dependsOn commitOnDeploy
Binary file added logs/FRC_TBD_68992208bb6a5cd3.wpilog
Binary file not shown.
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ public final class Constants {
public static final boolean tuningMode = false;

public static final class ShooterConstants {
// TESTING AUTO COMMIT

// TESTING AUTO COMMIT 2

// Shooter pivot
public static final double kPivotGearRatio = 46.722;
// TODO: untuned values, fix later
Expand Down

0 comments on commit 33bb557

Please sign in to comment.