Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
31 changes: 19 additions & 12 deletions lib/.github/workflows/approvalautomation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:

// Separate bot and human reviews
const botReviews = reviews
.filter(r => r.user.login === '190approvalbot')
.filter(r => r.user.login === '190automationbot')
.sort((a, b) => new Date(b.submitted_at) - new Date(a.submitted_at));

const humanReviews = reviews
.filter(r => r.user.login !== '190approvalbot')
.filter(r => r.user.login !== '190automationbot')
.sort((a, b) => new Date(b.submitted_at) - new Date(a.submitted_at));

const latestBotReview = botReviews[0];
Expand Down Expand Up @@ -70,16 +70,23 @@ jobs:

} else {
// Request review from ElliotScher for other authors
const alreadyRequested = pr.requested_reviewers.map(r => r.login).includes('ElliotScher');
if (!alreadyRequested) {
console.log("Requesting review from ElliotScher");
await github.rest.pulls.requestReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: prNumber,
reviewers: ['ElliotScher']
});
if (prAuthor !== 'ElliotScher') {
const alreadyRequested = pr.requested_reviewers
.map(r => r.login)
.includes('ElliotScher');

if (!alreadyRequested) {
console.log("Requesting review from ElliotScher");
await github.rest.pulls.requestReviewers({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: prNumber,
reviewers: ['ElliotScher']
});
} else {
console.log("ElliotScher already requested as reviewer");
}
} else {
console.log("ElliotScher already requested as reviewer");
console.log("Skipping review request because author is ElliotScher");
}
}
3 changes: 3 additions & 0 deletions lib/.github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Build

on:
push:
branches:
- main
pull_request:

jobs:
Expand Down
3 changes: 3 additions & 0 deletions lib/.github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Lint

on:
push:
branches:
- main
pull_request:

jobs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ public CameraStaticLimelight(
LimelightHelpers.setRewindEnabled(name, config.enableRewind());

LimelightHelpers.SetIMUMode(name, 1);
LimelightHelpers.SetThrottle(name, 190);
if (GompeiLib.isTuning()) {
LimelightHelpers.SetThrottle(name, 0);
} else {
LimelightHelpers.SetIMUMode(name, 190);
}

wasEnabled = false;
enabledTimestamp = Timer.getFPGATimestamp();
Expand Down Expand Up @@ -123,9 +127,9 @@ public void periodic() {
wasEnabled = false;
LimelightHelpers.SetIMUMode(name, 1);
if (GompeiLib.isTuning()) {
LimelightHelpers.SetThrottle(name, 190);
LimelightHelpers.SetThrottle(name, 0);
} else {
LimelightHelpers.SetIMUMode(name, 0);
LimelightHelpers.SetIMUMode(name, 190);
}
}
}
Expand Down
Loading