Skip to content

Commit 2e596eb

Browse files
committed
Merge branch 'main' into release/1.4
2 parents 265aba0 + 5974f34 commit 2e596eb

File tree

4 files changed

+488
-2
lines changed

4 files changed

+488
-2
lines changed

.github/workflows/workflow.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Format the code
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
format:
8+
runs-on: ubuntu-latest
9+
name: Format Files
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: "20"
15+
- name: Prettier
16+
run: npx prettier --write **/*.{js,ts,tsx,json,md}
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
- uses: stefanzweifel/git-auto-commit-action@v4
20+
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
21+
with:
22+
commit_message: "Auto-formatted the code using Prettier"

course-matrix/frontend/src/models/timetable-form.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { z, ZodType } from "zod";
2-
32
import { OfferingModel } from "./models";
43

54
const timeRegex = /^([01]\d|2[0-3]):([0-5]\d)$/;

course-matrix/frontend/src/pages/Home/TimetableCardKebabMenu.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ const TimetableCardKebabMenu = ({
5757
<EllipsisVertical />
5858
</Button>
5959
</DropdownMenuTrigger>
60-
6160
<DropdownMenuContent>
6261
<DropdownMenuItem>
6362
<Link to={`/dashboard/timetable?edit=${timetableId}`}>

0 commit comments

Comments
 (0)