From 284d09c51079ddaf8d7ff098dfa1999de50495da Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Thu, 22 Feb 2024 15:31:51 +0000 Subject: [PATCH 1/4] Move lint rules out of .vscode settings --- .github/linters/.markdown-lint.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 4ddec8647670ec2511a15650b2cc46bce0d2b71f Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Thu, 22 Feb 2024 15:35:35 +0000 Subject: [PATCH 2/4] Add initial devcontainer config --- .devcontainer/devcontainer.json | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..83cd1c6 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,42 @@ +{ + "name": "GitHub Actions (JavaScript)", + "image": "mcr.microsoft.com/devcontainers/javascript-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": {} + } +} From c4a216827edf2bafd4a6357cc1504cbed3da1b62 Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Thu, 22 Feb 2024 11:31:21 -0500 Subject: [PATCH 3/4] Add codespaces badge --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 6627811..eb0467e 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,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/javascript-action) + ## Create Your Own Action To create your own action, you can use this repository as a template! Just From 3517fa9e2136d9ed7444ea3bda44b433f262fa4a Mon Sep 17 00:00:00 2001 From: Nick Alteen Date: Thu, 22 Feb 2024 16:42:00 -0500 Subject: [PATCH 4/4] Remove button --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index eb0467e..6627811 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,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/javascript-action) - ## Create Your Own Action To create your own action, you can use this repository as a template! Just