mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-10-23 03:27:27 +09:00
chore: Mount user Copilot instructions into devcontainer (#5607)
- Mount ~/.github/instructions from host to devcontainer - Symlink mounted instructions to workspace .github/instructions - Add .github/instructions to gitignore
This commit is contained in:
1 parent
c28172eaa2
commit
724df48280
3 files changed
+10
No files matched your search
@@ -13,6 +13,7 @@ services:
|
||||
# preserve history
|
||||
- ./.local:/home/node/.local
|
||||
- docker-data:/var/lib/docker
|
||||
- ${HOME}/.github/instructions:/home/node/.github/instructions
|
||||
|
||||
entrypoint: ["/usr/local/share/docker-init.sh"]
|
||||
# Overrides default command so things don't shut down after the process ends.
|
||||
|
||||
@@ -42,5 +42,11 @@ alias gitclean="(git remote | xargs git remote prune) && git branch -vv | egrep
|
||||
alias gitrebase="git rebase --interactive main"
|
||||
EOF
|
||||
|
||||
# Symlink workspace GitHub instructions to mounted user instructions (for Copilot)
|
||||
if [ -d "/home/node/.github/instructions" ]; then
|
||||
mkdir -p /workspaces/webstudio/.github
|
||||
ln -sfn /home/node/.github/instructions /workspaces/webstudio/.github/instructions
|
||||
fi
|
||||
|
||||
|
||||
echo "postinstall.sh finished"
|
||||
@@ -64,3 +64,6 @@ packages/prisma-client/src/__generated__
|
||||
|
||||
.temp
|
||||
*.timestamp-*.mjs
|
||||
|
||||
# copilot instructions
|
||||
.github/instructions
|
||||
Reference in new issue
Block a user