From dfc47d3b5a9bf38fa8358d203d3f8d8de11f71c1 Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Thu, 22 Feb 2024 16:07:10 +0000 Subject: [PATCH 1/3] Add devcontainer config --- .devcontainer/devcontainer.json | 42 ++++++++++++++++++++++++++++++ .github/linters/.markdown-lint.yml | 11 ++++++++ 2 files changed, 53 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..0716833 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,42 @@ +{ + "name": "GitHub Actions (TypeScript)", + "image": "mcr.microsoft.com/devcontainers/typescript-node:20", + "postCreateCommand": "npm install", + "customizations": { + "codespaces": { + "openFiles": ["README.md"] + }, + "vscode": { + "extensions": [ + "bierner.markdown-preview-github-styles", + "davidanson.vscode-markdownlint", + "dbaeumer.vscode-eslint", + "esbenp.prettier-vscode", + "github.copilot", + "github.copilot-chat", + "github.vscode-github-actions", + "github.vscode-pull-request-github", + "me-dutour-mathieu.vscode-github-actions", + "redhat.vscode-yaml", + "rvest.vs-code-prettier-eslint", + "yzhang.markdown-all-in-one" + ], + "settings": { + "editor.defaultFormatter": "esbenp.prettier-vscode", + "editor.tabSize": 2, + "editor.formatOnSave": true, + "markdown.extension.list.indentationSize": "adaptive", + "markdown.extension.italic.indicator": "_", + "markdown.extension.orderedList.marker": "one" + } + } + }, + "remoteEnv": { + "GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}" + }, + "features": { + "ghcr.io/devcontainers/features/git-lfs:1": {}, + "ghcr.io/devcontainers/features/github-cli:1": {}, + "ghcr.io/devcontainers-contrib/features/prettier:1": {} + } +} diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml index 6d79773..cb5883f 100644 --- a/.github/linters/.markdown-lint.yml +++ b/.github/linters/.markdown-lint.yml @@ -5,3 +5,14 @@ MD004: # Ordered list item prefix MD029: style: one + +# Spaces after list markers +MD030: + ul_single: 1 + ol_single: 1 + ul_multi: 1 + ol_multi: 1 + +# Code block style +MD046: + style: fenced From 79b9da46c0c85e60991459e68e78fb3ecdc7f0b7 Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Thu, 22 Feb 2024 11:32:42 -0500 Subject: [PATCH 2/3] Add codespaces badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 84bba69..82220d3 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,8 @@ publishing, and versioning guidance. If you are new, there's also a simpler introduction in the [Hello world JavaScript action repository](https://github.com/actions/hello-world-javascript-action). +[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/actions/typescript-action) + ## Create Your Own Action To create your own action, you can use this repository as a template! Just From 969491d950aa64c47e70591cd6e64025969f0805 Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Thu, 22 Feb 2024 16:42:08 -0500 Subject: [PATCH 3/3] Remove button --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 82220d3..84bba69 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,6 @@ publishing, and versioning guidance. If you are new, there's also a simpler introduction in the [Hello world JavaScript action repository](https://github.com/actions/hello-world-javascript-action). -[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/actions/typescript-action) - ## Create Your Own Action To create your own action, you can use this repository as a template! Just