Skip to content

Commit 36f8091

Browse files
feat: adding format ci
1 parent d2d07cc commit 36f8091

12 files changed

Lines changed: 330 additions & 120 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ on:
77
branches: [preview, master]
88

99
jobs:
10+
format:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: pnpm/action-setup@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 20
18+
cache: pnpm
19+
- run: pnpm install --frozen-lockfile
20+
- run: pnpm format:check
21+
1022
build:
1123
runs-on: ubuntu-latest
1224

.oxfmtrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"printWidth": 120,
4+
"tabWidth": 2,
5+
"trailingComma": "es5",
6+
"sortPackageJson": false,
7+
"ignorePatterns": ["node_modules", "docs/.vitepress/cache", "docs/.vitepress/dist", "pnpm-lock.yaml"]
8+
}

.prettierignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/.vitepress/theme/components/HomeLanding.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ function isExternal(href: string) {
9191
<div class="px-6 sm:px-12 min-[960px]:px-16 pt-12 pb-24">
9292
<div class="max-w-[1152px] mx-auto">
9393
<!-- Explore by Topic -->
94-
<h2 class="!text-2xl !font-[640] !mb-6 !mt-0 !border-none !pt-0 tracking-tight text-[var(--vp-c-text-1)]">Explore by Topic</h2>
94+
<h2 class="!text-2xl !font-[640] !mb-6 !mt-0 !border-none !pt-0 tracking-tight text-[var(--vp-c-text-1)]">
95+
Explore by Topic
96+
</h2>
9597
<div class="grid grid-cols-1 sm:grid-cols-2 min-[960px]:grid-cols-3 gap-4">
9698
<a
9799
v-for="topic in topics"
@@ -120,7 +122,9 @@ function isExternal(href: string) {
120122
</div>
121123

122124
<!-- Get Plane -->
123-
<h2 class="!text-2xl !font-[640] !mt-14 !mb-6 !border-none !pt-0 tracking-tight text-[var(--vp-c-text-1)]">Get Plane</h2>
125+
<h2 class="!text-2xl !font-[640] !mt-14 !mb-6 !border-none !pt-0 tracking-tight text-[var(--vp-c-text-1)]">
126+
Get Plane
127+
</h2>
124128
<div class="grid grid-cols-1 sm:grid-cols-2 gap-5 mb-4">
125129
<!-- Plane Cloud -->
126130
<a
@@ -166,7 +170,9 @@ function isExternal(href: string) {
166170
</div>
167171

168172
<!-- Resources -->
169-
<h2 class="!text-2xl !font-[640] !mt-14 !mb-6 !border-none !pt-0 tracking-tight text-[var(--vp-c-text-1)]">Resources</h2>
173+
<h2 class="!text-2xl !font-[640] !mt-14 !mb-6 !border-none !pt-0 tracking-tight text-[var(--vp-c-text-1)]">
174+
Resources
175+
</h2>
170176
<div class="grid grid-cols-1 sm:grid-cols-3 gap-4">
171177
<a
172178
v-for="resource in resources"

docs/core-concepts/cycles.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ Automate the creation and management of cycles according to predefined configura
100100
![Autoschedule cycles](https://media.docs.plane.so/cycles/auto-schedule-cycles.webp#hero-br)
101101

102102
#### Benefits
103+
103104
- Maintain regular cycle rhythms automatically without manual intervention.
104105
- Keep future cycles pre-scheduled so teams can plan ahead with confidence.
105106
- Eliminate repetitive administrative work from cycle creation.

docs/core-concepts/issues/visualise_filter.md

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -90,24 +90,24 @@ Unlock advanced filtering with additional operators including `is not`, `is not
9090

9191
Filter work items by their title text to find specific work items.
9292

93-
| Operator | Description | Use case |
94-
|----------|-------------|----------|
95-
| `is` | Exact title match | Title is exactly "Login bug" |
96-
| `is not` | Not exact title match | Title is not "Login bug" |
97-
| `contains` | Title contains text | Title contains "authentication" |
93+
| Operator | Description | Use case |
94+
| ------------------ | --------------------------- | ----------------------------------- |
95+
| `is` | Exact title match | Title is exactly "Login bug" |
96+
| `is not` | Not exact title match | Title is not "Login bug" |
97+
| `contains` | Title contains text | Title contains "authentication" |
9898
| `does not contain` | Title does not contain text | Title does not contain "deprecated" |
9999

100100
### Milestone
101101

102102
Filter work items by their associated milestone to track progress toward major goals or releases.
103103

104-
| Operator | Description | Use case |
105-
|----------|-------------|----------|
106-
| `is` | Exactly this milestone | Items in Q1 Launch milestone |
107-
| `is any of` | Any of these milestones | In Q1 Launch or Beta Release |
108-
| `is not` | Not this specific milestone | Not in Q1 Launch |
104+
| Operator | Description | Use case |
105+
| --------------- | ------------------------------ | -------------------------------- |
106+
| `is` | Exactly this milestone | Items in Q1 Launch milestone |
107+
| `is any of` | Any of these milestones | In Q1 Launch or Beta Release |
108+
| `is not` | Not this specific milestone | Not in Q1 Launch |
109109
| `is not any of` | Not in any of these milestones | Not in Q1 Launch or Beta Release |
110-
| `is empty` | No milestone assigned | Items without any milestone |
110+
| `is empty` | No milestone assigned | Items without any milestone |
111111

112112
### Type
113113

@@ -146,13 +146,13 @@ View all, active or backlog work items.
146146

147147
Focus on work items assigned to specific team members to track workloads or identify pending tasks.
148148

149-
| Operator | Description | Use case |
150-
|----------|-------------|----------|
151-
| `is` | Exactly matches one person | Find work assigned to Sarah |
152-
| `is any of` | Matches any of multiple people | Show work for the frontend team |
153-
| `is not` | Excludes one person | Hide items assigned to John |
154-
| `is not any of` | Excludes multiple people | Not assigned to John or Sarah |
155-
| `is empty` | No assignee | Unassigned work items |
149+
| Operator | Description | Use case |
150+
| --------------- | ------------------------------ | ------------------------------- |
151+
| `is` | Exactly matches one person | Find work assigned to Sarah |
152+
| `is any of` | Matches any of multiple people | Show work for the frontend team |
153+
| `is not` | Excludes one person | Hide items assigned to John |
154+
| `is not any of` | Excludes multiple people | Not assigned to John or Sarah |
155+
| `is empty` | No assignee | Unassigned work items |
156156

157157
### Priority
158158

@@ -169,25 +169,25 @@ Filter work items by their priority level (e.g., Urgent, High, Medium, Low) to f
169169

170170
Filter tasks where you or another team member has been mentioned to ensure no critical tasks are missed.
171171

172-
| Operator | Description | Use case |
173-
|----------|-------------|----------|
174-
| `is` | Exactly matches one person | Items mentioning Sarah |
175-
| `is any of` | Matches any of multiple people | Mentioning team leads |
176-
| `is not` | Excludes one person | Not mentioning John |
177-
| `is not any of` | Excludes multiple people | Not mentioning John or Sarah |
178-
| `is empty` | No mentions | Items with no mentions |
172+
| Operator | Description | Use case |
173+
| --------------- | ------------------------------ | ---------------------------- |
174+
| `is` | Exactly matches one person | Items mentioning Sarah |
175+
| `is any of` | Matches any of multiple people | Mentioning team leads |
176+
| `is not` | Excludes one person | Not mentioning John |
177+
| `is not any of` | Excludes multiple people | Not mentioning John or Sarah |
178+
| `is empty` | No mentions | Items with no mentions |
179179

180180
### Label
181181

182182
Filter work items based on custom tags, such as "Frontend", or "Marketing".
183183

184-
| Operator | Description | Use case |
185-
|----------|-------------|----------|
186-
| `is` | Exact label match | Label exactly "bug" |
187-
| `is any of` | Matches any of the Labels| frontend or backend |
188-
| `is not` | Not exact label match | Label not exactly "bug" |
189-
| `is not any of` | Excludes several labels | Not frontend or backend |
190-
| `is empty` | No labels | Items without any labels |
184+
| Operator | Description | Use case |
185+
| --------------- | ------------------------- | ------------------------ |
186+
| `is` | Exact label match | Label exactly "bug" |
187+
| `is any of` | Matches any of the Labels | frontend or backend |
188+
| `is not` | Not exact label match | Label not exactly "bug" |
189+
| `is not any of` | Excludes several labels | Not frontend or backend |
190+
| `is empty` | No labels | Items without any labels |
191191

192192
### Cycle
193193

@@ -199,39 +199,39 @@ View work items tied to specific cycles to monitor progress within a timeframe.
199199
| `is any of` | Any of these cycles | In Sprint 23 or 24 |
200200
| `is not` | Not this specific cycle | Not in Sprint 23 |
201201
| `is not any of` | Not in any of these cycles | Not in Sprint 23 or 24 |
202-
| `is empty` | No cycle assigned | Items not in any cycle |
202+
| `is empty` | No cycle assigned | Items not in any cycle |
203203

204204
### Module
205205

206206
Filter work items by their associated module to analyze related tasks together.
207207

208-
| Operator | Description | Use case |
209-
|----------|-------------|----------|
210-
| `is` | Exactly this module | Items in Authentication module |
211-
| `is any of` | Any of these modules | In API development or Data management modules |
212-
| `is not` | Not this specific module | Not in Authentication module |
213-
| `is not any of` | Not in any of these modules | Not in API or Data management |
214-
| `is empty` | No module assigned | Items not in any module |
208+
| Operator | Description | Use case |
209+
| --------------- | --------------------------- | --------------------------------------------- |
210+
| `is` | Exactly this module | Items in Authentication module |
211+
| `is any of` | Any of these modules | In API development or Data management modules |
212+
| `is not` | Not this specific module | Not in Authentication module |
213+
| `is not any of` | Not in any of these modules | Not in API or Data management |
214+
| `is empty` | No module assigned | Items not in any module |
215215

216216
### Start date, Due date, Created at, and Updated at
217217

218218
Filter work items by start dates to view tasks that are planned or already in progress, and by target dates to track upcoming deadlines or overdue tasks. For even more flexibility, you can specify a custom date range to focus on a specific timeframe.
219219

220-
| Operator | Description | Use case |
221-
|----------|-------------|----------|
222-
| `is` | Exactly this date | Items due today |
223-
| `is not` | Not this specific date | Not due today |
224-
| `before` | Earlier than this date | Due before Monday |
225-
| `not before` | This date or later | Not due before Monday (due Monday or later) |
226-
| `before or on` | This date or earlier | Due Monday or earlier |
227-
| `not before or on` | Later than this date | Not due Monday or earlier (due after Monday) |
228-
| `after` | Later than this date | Due after Friday |
229-
| `not after` | This date or earlier | Not due after Friday (due Friday or earlier) |
230-
| `after or on` | This date or later | Due Friday or later |
231-
| `not after or on` | Earlier than this date | Not due Friday or later (due before Friday) |
232-
| `between` | Within date range | Due this week |
233-
| `not between` | Outside date range | Not due this week |
234-
| `is empty` | No date set | Items without start date or target date |
220+
| Operator | Description | Use case |
221+
| ------------------ | ---------------------- | -------------------------------------------- |
222+
| `is` | Exactly this date | Items due today |
223+
| `is not` | Not this specific date | Not due today |
224+
| `before` | Earlier than this date | Due before Monday |
225+
| `not before` | This date or later | Not due before Monday (due Monday or later) |
226+
| `before or on` | This date or earlier | Due Monday or earlier |
227+
| `not before or on` | Later than this date | Not due Monday or earlier (due after Monday) |
228+
| `after` | Later than this date | Due after Friday |
229+
| `not after` | This date or earlier | Not due after Friday (due Friday or earlier) |
230+
| `after or on` | This date or later | Due Friday or later |
231+
| `not after or on` | Earlier than this date | Not due Friday or later (due before Friday) |
232+
| `between` | Within date range | Due this week |
233+
| `not between` | Outside date range | Not due this week |
234+
| `is empty` | No date set | Items without start date or target date |
235235

236236
### Created by
237237

docs/core-concepts/issues/work-item-url.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ When you visit this URL, Plane authenticates you, redirects to your last active
1919
## Build a URL with parameters
2020

2121
Start with the base URL, add `?`, then append parameters in `name=value` format. Separate multiple parameters with `&`.
22+
2223
```bash
2324
https://app.plane.so/work-items/new?title=Fix+bug&priority=high&assignee=me
2425
```
@@ -160,10 +161,10 @@ https://app.plane.so/work-items/new?title=Implement+dark+mode&description=Add+da
160161
## Things to know
161162

162163
- **Authentication required**
163-
Users must be logged in. If they're not, Plane redirects them to sign in first, then continues to the work item modal.
164-
- **Invalid values are ignored**
165-
If a project identifier or display name doesn't match an existing record, Plane skips that parameter and processes the rest.
166-
- **Case doesn't matter**
167-
Values like priority and project identifier are case-insensitive.
168-
- **Users can still edit**
169-
Pre-filled values aren't locked. After the modal opens, users can change any field before creating the work item.
164+
Users must be logged in. If they're not, Plane redirects them to sign in first, then continues to the work item modal.
165+
- **Invalid values are ignored**
166+
If a project identifier or display name doesn't match an existing record, Plane skips that parameter and processes the rest.
167+
- **Case doesn't matter**
168+
Values like priority and project identifier are case-insensitive.
169+
- **Users can still edit**
170+
Pre-filled values aren't locked. After the modal opens, users can change any field before creating the work item.

docs/devices/mobile.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ Ensure the correct Redirect URI is configured in your OAuth service:
233233
```
234234
- For GitHub Sign-In: Add the following URL to the Callback URL section in your GitHub OAuth app:
235235
`bash
236-
https://<plane.example.com>/auth/mobile/github/callback/
237-
`
236+
https://<plane.example.com>/auth/mobile/github/callback/
237+
`
238238
Verify that the `<plane.example.com>` part of the URL matches your self-hosted instance's domain.
239239

240240
### Link not opening iOS app

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"dev": "vitepress dev docs",
1515
"build": "vitepress build docs",
1616
"preview": "vitepress preview docs",
17-
"format": "prettier --write ."
17+
"format": "oxfmt",
18+
"format:check": "oxfmt --check"
1819
},
1920
"dependencies": {
2021
"lucide-vue-next": "^0.474.0",
@@ -25,8 +26,8 @@
2526
"devDependencies": {
2627
"@tailwindcss/postcss": "^4.0.6",
2728
"autoprefixer": "^10.4.20",
29+
"oxfmt": "^0.35.0",
2830
"postcss": "^8.5.1",
29-
"prettier": "^3.6.2",
3031
"tailwindcss": "^4.0.6"
3132
},
3233
"engines": {

0 commit comments

Comments
 (0)