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
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"@iconify-json/lucide": "^1.2.123",
"@types/hast": "^3.0.5",
"@types/html-escaper": "^3.0.4",
"@types/js-yaml": "^4.0.9",
"@types/mdast": "^4.0.4",
"@types/node": "^26.2.0",
"@types/viz.js": "^2.1.5",
Expand Down Expand Up @@ -95,7 +94,7 @@
"cheerio": "^1.2.0",
"classnames": "^2.5.1",
"dotenv": "^17.4.2",
"js-yaml": "^4.3.1",
"js-yaml": "^5.3.0",
"jsonpointer": "^5.0.1",
"react": "^19.2.8",
"react-dom": "^19.2.8",
Expand Down
20 changes: 10 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/validate-config-examples.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import Ajv2020 from 'ajv/dist/2020.js';
import yaml from 'js-yaml';
import * as yaml from 'js-yaml';

const ROOT = path.resolve(fileURLToPath(import.meta.url), '..', '..');
const SCHEMA_PATH = path.join(ROOT, 'public', 'mergify-configuration-schema.json');
Expand Down
6 changes: 4 additions & 2 deletions src/components/Tables/OptionsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ export function defToIdPrefix(def: string): string {
function dumpDefault(value: unknown): string {
return yaml
.dump(value, {
noCompatMode: true,
lineWidth: -1,
quotingType: '"',
// Not the default ('single'): these dumps are copy-pasted into configs, and
// double quotes keep Jinja templates like "{{ title }} '{{ name }}'" readable
// without escaping the inner single quotes.
quoteStyle: 'double',
noRefs: true,
})
.replace(/\n$/, '');
Expand Down