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
7 changes: 7 additions & 0 deletions .devcontainer/bin/update_content.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh -e

# If a Trunk configuration directory exists, upgrade Trunk (functionally
# initializing the tool for the first time in this workspace)
if test -d ./.trunk; then
trunk upgrade
fi
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"image": "ghcr.io/nomirose/devcontainer:edge",
"remoteUser": "root",
"updateContentCommand": ".devcontainer/bin/update_content.sh",
"customizations": {
"vscode": {
"settings": {},
Expand Down
6 changes: 3 additions & 3 deletions .trunk/trunk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ runtimes:
- node@16.14.2
actions:
enabled:
- trunk-fmt-pre-commit
- trunk-check-pre-push
- commitlint
# - trunk-fmt-pre-commit
# - trunk-check-pre-push
# - commitlint
- trunk-upgrade-available