Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
48bbd29
Maybe autoformatter
GreatGreenStar Feb 22, 2026
a79649a
"Broke it" FOR NOW on purpose (its only a check rn)
GreatGreenStar Feb 22, 2026
87372f0
Added the manual format checker action bcs why not
GreatGreenStar Feb 22, 2026
3f7b303
Rename gradle.yml to build-check.yml
GreatGreenStar Feb 22, 2026
9fd6473
Fix formatting of spotless format check workflow file
GreatGreenStar Feb 22, 2026
3b0b912
Allow manual runs of build check
GreatGreenStar Feb 22, 2026
4ac9b9f
got to a good wip state for now
GreatGreenStar Feb 22, 2026
d41f813
made run on everything, DO NOT PULL OR USE THIS OUTSIDE THIS BRANCH F…
GreatGreenStar Feb 22, 2026
b87f6a0
Add format-fixer workflow for Gradle spotless
GreatGreenStar Feb 22, 2026
7a4bfa2
Refactor step names in spotless format check workflow
GreatGreenStar Feb 22, 2026
765cba9
Rename workflow to 'Spotless Format Fixer with Gradle'
GreatGreenStar Feb 22, 2026
a9e247a
this is formatted wrong and should be auto fixed
GreatGreenStar Feb 22, 2026
ba5ef41
No need for pull request check if every push does already
GreatGreenStar Feb 23, 2026
bb32222
Only run against PRS, setup for another change
GreatGreenStar Feb 23, 2026
13fd232
Set default author for commit in format-fixer.yml
GreatGreenStar Feb 23, 2026
f2fff84
wip attempt to combine the 2
GreatGreenStar Feb 23, 2026
dbca7ef
Delete .github/workflows/format-fixer.yml
GreatGreenStar Feb 23, 2026
3973ce6
Maybe got it working
GreatGreenStar Feb 23, 2026
de23ce7
Add condition to commit changes on success
GreatGreenStar Feb 23, 2026
6ac8ffb
Changed checkout version, changed commit action
GreatGreenStar Feb 23, 2026
31527b6
Modify spotless format check workflow
GreatGreenStar Feb 23, 2026
089a2c4
Spotless checks if commit fails
GreatGreenStar Feb 23, 2026
1eff2cf
Removed unneded with, update checkout version
GreatGreenStar Feb 23, 2026
8037752
Possible final version
GreatGreenStar Feb 23, 2026
4fe0767
Formatted code using spotless.
github-actions[bot] Feb 23, 2026
fa00de7
Created todelete.txt
GreatGreenStar Feb 23, 2026
82a6907
Made it more efficient
GreatGreenStar Feb 23, 2026
46f5917
Update commit condition for spotless formatting
GreatGreenStar Feb 23, 2026
64a921d
Triggers on push to main, improved logic
GreatGreenStar Feb 23, 2026
73841ee
Rename build-check.yml to Build Check.yml
GreatGreenStar Feb 23, 2026
6d85327
Rename spotless-format-check.yml to Formatter.yml
GreatGreenStar Feb 23, 2026
b9c28b1
Rename Build Check.yml to Build Validation.yml
GreatGreenStar Feb 23, 2026
f0de31b
Fixed logic, fixed manual usage.
GreatGreenStar Feb 23, 2026
aba7b37
Delete todelete.txt
GreatGreenStar Feb 23, 2026
53e22af
Demonstration of wrong formatting which will be fixed
GreatGreenStar Feb 23, 2026
4bf8b5d
Update Formatter.yml
GreatGreenStar Feb 23, 2026
99532a6
Formatted code using spotless.
github-actions[bot] Feb 23, 2026
8b3db33
Now it will properly fix stuff like this
GreatGreenStar Feb 23, 2026
597e2e1
Formatted code using spotless.
github-actions[bot] Feb 23, 2026
70268e1
Fixed wording about an if statement in comments for CI
GreatGreenStar Feb 23, 2026
e68e991
accidentally added a properly formatted newline here
GreatGreenStar Feb 23, 2026
0af1174
messing with formatting
GreatGreenStar Feb 24, 2026
957b390
Formatted code using spotless.
github-actions[bot] Feb 24, 2026
b7b7af5
Formatted code using spotless.
github-actions[bot] Feb 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
name: Java CI with Gradle, with basic WPILib integration
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch.
on:
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
# This workflow contains a single job called "build"
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/Formatter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will format a Java project with Gradle
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle

name: Spotless format check with Gradle
# Controls when the action will run. Triggers the workflow on push or pull request
# events
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
spotless-check:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout repo (Pull Request)
#Checks if the event was trigged by a pull request, this step will be skipped if not.
if: ${{ github.event_name == 'pull_request' }}
uses: actions/checkout@v4
with:
#Sets up branch system properly per https://github.com/marketplace/actions/add-commit#working-with-prs
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Checkout repo (Manually Run)
#Only runs if triggered manually
if: ${{github.event_name == 'workflow_dispatch' }}
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 17
- name: Check with spotless
id: spot-check
run: ./gradlew spotlessCheck
- name: Apply spotless
if: ${{failure() }}
run: ./gradlew spotlessApply
- name: Commit changes
if: ${{ failure() && steps.spot-check.conclusion == 'failure' }}
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: 'Formatted code using spotless.'
20 changes: 15 additions & 5 deletions src/main/java/frc/robot/TestHook.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
package frc.robot;

public class TestHook {
public class TestHook
{
public void stop()
{
}

public void stop() {}
public void setRate(double rate) {}
public void forward() {}
public void reverse() {}
public void setRate(double rate)
{
}

public void forward()
{
}

public void reverse()
{
}
}
24 changes: 12 additions & 12 deletions src/main/java/frc/robot/subsystems/Testing.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
import frc.robot.subsystems.shooter.Flywheel;
import frc.robot.subsystems.shooter.Hood;

public class Testing extends SubsystemBase
public class Testing extends SubsystemBase
{
private final Intake _intake;
private final Feeder _feeder;
private final Flywheel _flywheel;
private final Hood _hood;
private final Intake _intake;
private final Feeder _feeder;
private final Flywheel _flywheel;
private final Hood _hood;

public Testing()
public Testing()
{
_intake = new Intake();
_feeder = new Feeder();
_flywheel = new Flywheel();
_hood = new Hood();
_intake = new Intake();
_feeder = new Feeder();
_flywheel = new Flywheel();
_hood = new Hood();
}

@Override
Expand All @@ -27,8 +27,8 @@ public void periodic()

}

public void stopAll()
public void stopAll()
{
_intake.stopRollers();
_intake.stopRollers();
}
}
8 changes: 4 additions & 4 deletions src/main/java/frc/robot/subsystems/intake/Intake.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ public void stop()
}

@Override
public void setRate(double rate)
public void setRate(double rate)
{
_intakeMotorVoltage.times(rate);
_intakeMotorVoltage.times(rate);
}

@Override
public void forward()
public void forward()
{
setIntakeState(IntakeState.Forward);
}
Expand Down