Skip to content
This repository has been archived by the owner on Feb 1, 2025. It is now read-only.

Commit

Permalink
Add event branch warnings
Browse files Browse the repository at this point in the history
"Event" branches are now logged for driver input as well as logging events.
  • Loading branch information
garrettsummerfi3ld committed Mar 9, 2024
1 parent 18bfb6e commit e0afacb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,20 @@ public RobotContainer() {
"To merge your changes to main, push your changes to GitHub and go to the GitHub repository and create a pull request",
false);
DriverStation.reportError("Wait for the pull request to be reviewed and merged", false);
} else if (BuildConstants.GIT_BRANCH.contains("event")) {
DriverStation.reportWarning(
"You are currently on an `event` branch. After an event, please merge your changes to main as the event progresses or after the event is over",
false);
DriverStation.reportWarning(
"With event branches, changes made on the fly here should be committed before each build/deploy to the robot",
false);
DriverStation.reportWarning(
"If you are done with the event, please merge and delete the event branch", false);
DriverStation.reportWarning(
"If you are not done with the event, please keep the event branch and continue working on it",
false);
DriverStation.reportWarning(
"If you are not sure, please ask your team leader or mentor for help", false);
}

drivebase.setDefaultCommand(driveFieldOrientedDirectAngle);
Expand Down

0 comments on commit e0afacb

Please sign in to comment.