Skip to content

Commit 939ec4b

Browse files
committed
now also generating the github copilot instructions file
1 parent 62cb297 commit 939ec4b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build_release.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
1111
"""
1212

13+
GITHUB_COPILOT_FRONTMATTER = """---
14+
applyTo: "**/*.ts,**/*.tsx,**/*.js,**/*.jsx"
15+
---
16+
17+
"""
18+
1319

1420
def main():
1521
os.makedirs("dist", exist_ok=True)
@@ -37,6 +43,11 @@ def main():
3743
f.write(MDC_FRONTMATTER)
3844
f.write(build_release_rules())
3945

46+
# Instructions for GithubCopilot
47+
with open("dist/convex.instructions.md", "w") as f:
48+
f.write(GITHUB_COPILOT_FRONTMATTER)
49+
f.write(build_release_rules())
50+
4051

4152
if __name__ == "__main__":
4253
main()

0 commit comments

Comments
 (0)