Skip to content

Commit ebb3041

Browse files
committed
chore: standardize repository configuration
- Implement .editorconfig (4-space default, 2-space for json/yaml/md) - Implement Prettier with format validation workflow - Update CSpell configurations and sync custom dictionaries - Standardize release workflows and ignore configurations
1 parent 2ac3010 commit ebb3041

10 files changed

Lines changed: 1463 additions & 7 deletions

File tree

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
indent_style = space
9+
indent_size = 4
10+
11+
[*.{json,yml,yaml,md}]
12+
indent_size = 2

.github/workflows/format.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Format
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
format:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 22
24+
cache: npm
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Run prettier format check
30+
run: npx prettier --check "**/*.{md,json,yml,yaml}"

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Validate tag format
20+
run: |
21+
if [[ ! "$GITHUB_REF_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
22+
echo "Tag '$GITHUB_REF_NAME' does not match vX.Y.Z format"
23+
exit 1
24+
fi
25+
env:
26+
GITHUB_REF_NAME: ${{ github.ref_name }}
27+
28+
- name: Package Toolkit
29+
run: |
30+
mkdir -p dist
31+
zip -r dist/vscode-copilot-sync.zip scripts/ configure.ps1
32+
33+
- name: Create release
34+
uses: softprops/action-gh-release@v2
35+
with:
36+
tag_name: ${{ github.ref_name }}
37+
name: vscode-copilot-sync ${{ github.ref_name }}
38+
body: |
39+
See [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/${{ github.ref_name }}/CHANGELOG.md) for full release notes.
40+
files: |
41+
dist/vscode-copilot-sync.zip
42+
fail_on_unmatched_files: true
43+
draft: false
44+
prerelease: false

.github/workflows/spellcheck.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Spellcheck
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
spellcheck:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
22+
with:
23+
node-version: 22
24+
cache: npm
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Run spellcheck
30+
run: npm run spellcheck

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ Thumbs.db
3333
.github/workflows/*.md
3434
# Subscription tracking manifest (local state, not redistributed)
3535
.github/.copilot-subscriptions.json
36+
37+
# Node dependencies
38+
node_modules/

.prettierrc

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"tabWidth": 4,
3+
"useTabs": false,
4+
"semi": true,
5+
"singleQuote": false,
6+
"trailingComma": "es5",
7+
"endOfLine": "lf",
8+
"overrides": [
9+
{
10+
"files": ["*.md", "*.json", "*.yml", "*.yaml"],
11+
"options": {
12+
"tabWidth": 2
13+
}
14+
}
15+
]
16+
}

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ A PowerShell toolkit to sync, install, and manage [GitHub Copilot](https://githu
99

1010
### What goes where
1111

12-
| Resource | Location |
13-
| ---------------- | -------------------------------- |
14-
| **Agents** | `.github/agents/` |
15-
| **Hooks** | `.github/hooks/<name>/` |
16-
| **Instructions** | `.github/instructions/` |
12+
| Resource | Location |
13+
| ---------------- | ---------------------------------------------------------------------------------------------------- |
14+
| **Agents** | `.github/agents/` |
15+
| **Hooks** | `.github/hooks/<name>/` |
16+
| **Instructions** | `.github/instructions/` |
1717
| **Plugins** | Components distributed to their respective locations above; `plugin.json``.github/plugin/<name>/` |
18-
| **Skills** | `.github/skills/` |
19-
| **Workflows** | `.github/workflows/` |
18+
| **Skills** | `.github/skills/` |
19+
| **Workflows** | `.github/workflows/` |
2020

2121
## Prerequisites
2222

cspell.json

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
{
2+
"version": "0.2",
3+
"language": "en-GB",
4+
"useGitignore": true,
5+
"ignorePaths": [
6+
"node_modules",
7+
"package-lock.json",
8+
".git",
9+
".reframe-backups"
10+
],
11+
"words": [
12+
"Aikar",
13+
"analysing",
14+
"apify",
15+
"ARAM",
16+
"autoexec",
17+
"backbuffer",
18+
"Baldur",
19+
"baldurs",
20+
"Battl",
21+
"BattlEye",
22+
"beastmode",
23+
"behavior",
24+
"BIRP",
25+
"borderless",
26+
"chatmode",
27+
"chatmodes",
28+
"coeff",
29+
"compatdata",
30+
"Configurator",
31+
"csgo",
32+
"dataverse",
33+
"diffblue",
34+
"DLSS",
35+
"dota",
36+
"doublecheck",
37+
"duplicatescheme",
38+
"DXDIAG",
39+
"dxdiag",
40+
"dyscalculia",
41+
"Elden",
42+
"farclip",
43+
"filmgrain",
44+
"flowstudio",
45+
"forcepreload",
46+
"forceredraw",
47+
"Fortnite",
48+
"frontmatter",
49+
"fullbright",
50+
"gilfoyle",
51+
"gitops",
52+
"HDRP",
53+
"HKCU",
54+
"HKLM",
55+
"Imagespace",
56+
"instr",
57+
"keybd",
58+
"kubestellar",
59+
"Kusto",
60+
"kusto",
61+
"laravel",
62+
"Larian",
63+
"LASTEXITCODE",
64+
"lingodotdev",
65+
"llms",
66+
"LOCALAPPDATA",
67+
"maxfps",
68+
"mcflags",
69+
"Mistlands",
70+
"MMCSS",
71+
"modpack",
72+
"Netracells",
73+
"nextjs",
74+
"Noita",
75+
"Nolla",
76+
"nuxt",
77+
"NVAPI",
78+
"NVCP",
79+
"Omnimovement",
80+
"pathfinding",
81+
"pillarboxing",
82+
"pimcore",
83+
"playark",
84+
"powerbi",
85+
"Prefs",
86+
"Projekt",
87+
"pscustomobject",
88+
"PUBG",
89+
"pyproject",
90+
"ragdoll",
91+
"recs",
92+
"redengine",
93+
"rescan",
94+
"Respawn",
95+
"Rockstar",
96+
"Roshan",
97+
"RTSS",
98+
"runspace",
99+
"setactive",
100+
"SFIO",
101+
"shaderlod",
102+
"showfps",
103+
"SKSE",
104+
"Skyrim",
105+
"SMAA",
106+
"softprops",
107+
"SSAO",
108+
"SSGI",
109+
"stabiliser",
110+
"stackhawk",
111+
"steamapps",
112+
"steamuser",
113+
"superwide",
114+
"Symdicate",
115+
"taxcore",
116+
"teamfights",
117+
"terratest",
118+
"Thru",
119+
"Titanfall",
120+
"Treyarch",
121+
"trypophobia",
122+
"UEFI",
123+
"UIPI",
124+
"ultrawide",
125+
"unsanitised",
126+
"USERPROFILE",
127+
"Valheim",
128+
"Valorant",
129+
"vars",
130+
"venv",
131+
"videoconfig",
132+
"virtualised",
133+
"vsync",
134+
"vuejs",
135+
"Warframe",
136+
"Windrose",
137+
"winforms",
138+
"winui",
139+
"Wowpedia",
140+
"WSGF"
141+
]
142+
}

0 commit comments

Comments
 (0)