diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..040d8a5 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,61 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "PR", + "type": "shell", + "command": "make pr-status", + "group": "test", + "dependsOn": [ + "Lint", + "Test", + "Static type check", + "Setup PR", + ], + "presentation": { + "reveal": "always", + "group": "pr" + } + }, + { + "label": "Lint", + "type": "shell", + "command": "make lint", + "presentation": { + "reveal": "always", + "group": "pr" + }, + "problemMatcher": [] + }, + { + "label": "Setup PR", + "type": "shell", + "command": "make setup-pr", + "presentation": { + "reveal": "always", + "group": "pr" + }, + "problemMatcher": [] + }, + { + "label": "Test", + "type": "shell", + "command": "make test", + "presentation": { + "reveal": "always", + "group": "pr" + }, + }, + { + "label": "Static type check", + "type": "shell", + "command": "make types", + "presentation": { + "reveal": "always", + "group": "pr" + } + } + ] +} \ No newline at end of file diff --git a/makefile b/makefile index 945791a..da4f1ce 100644 --- a/makefile +++ b/makefile @@ -74,6 +74,12 @@ pr-status: @gh pr view | cat | grep "title" @gh pr view | cat | grep "url" +setup-pr: ## Update everything and setup the PR + @make merge-main + @make push + @make create-pr + @make enable-automerge + pr: ## Run relevant tests before PR @make merge-main @make push