Skip to content

Commit 0374441

Browse files
authored
chore: synced file(s) with dgibbs64/repo-sync (#4804)
* chore: synced local '.github/' with remote 'general/.github/' * chore: synced local './' with remote 'bash/'
1 parent e2397f1 commit 0374441

File tree

10 files changed

+144
-37
lines changed

10 files changed

+144
-37
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@
1616
"vscode": {
1717
"extensions": [
1818
"DavidAnson.vscode-markdownlint",
19+
"editorconfig.editorconfig",
20+
"esbenp.prettier-vscode",
1921
"github.vscode-github-actions",
2022
"GitHub.vscode-pull-request-github",
21-
"hashicorp.terraform",
22-
"ms-azuretools.vscode-azureterraform",
2323
"redhat.vscode-yaml",
2424
"timonwong.shellcheck",
2525
"yzhang.markdown-all-in-one"
2626
]
2727
}
28-
}
28+
},
29+
"postCreateCommand": "npm init -y >/dev/null 2>&1 || true && npm install --no-save prettier prettier-plugin-sh prettier-plugin-jinja-template"
2930
}

.editorconfig

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,17 @@
11
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.
2-
# Atom: Please assure your Atom's config setting Tab Type is set to auto, otherwise Atom-EditorConfig may not work as expected. Also disable whitespace package.
32
# http://editorconfig.org/
43

54
root = true
65

76
[*]
87
charset = utf-8
9-
indent_style = tab
10-
indent_size = 4
11-
trim_trailing_whitespace = true
128
end_of_line = lf
13-
insert_final_newline = true
14-
15-
# YAML Files
16-
[*.{yml,yaml}]
17-
indent_size = 2
18-
indent_style = space
19-
20-
# JSON Files
21-
[*.{json,json5,webmanifest}]
229
indent_size = 2
2310
indent_style = space
11+
insert_final_newline = true
12+
trim_trailing_whitespace = true
2413

2514
# BASH Files
2615
[*.{.sh}]
27-
indent_style = tab
2816
indent_size = 4
17+
indent_style = tab

.github/FUNDING.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,2 @@
1-
# These are supported funding model platforms
2-
3-
github: dgibbs64 # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4-
patreon: dgibbs # Replace with a single Patreon username
5-
open_collective: # Replace with a single Open Collective username
6-
ko_fi: # Replace with a single Ko-fi username
7-
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9-
liberapay: # Replace with a single Liberapay username
10-
issuehunt: # Replace with a single IssueHunt username
11-
otechie: # Replace with a single Otechie username
12-
custom: # Replace with a single custom sponsorship URL
1+
github: dgibbs64
2+
patreon: dgibbs

.github/dependabot.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
# Set update schedule for GitHub Actions
1+
---
22
version: 2
33
updates:
44
- package-ecosystem: "github-actions"
55
directory: "/"
66
schedule:
7-
# Check for updates to GitHub Actions every weekday
8-
interval: "daily"
7+
interval: "weekly"
8+
9+
- package-ecosystem: "devcontainers"
10+
directory: "/"
11+
schedule:
12+
interval: weekly

.github/workflows/action-prettier.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Prettier
2+
on:
3+
push:
4+
branches:
5+
- "*"
6+
7+
concurrency:
8+
group: prettier-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
prettier:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v5
21+
22+
- name: Install Prettier and plugins
23+
run: |
24+
npm install --no-save prettier prettier-plugin-sh prettier-plugin-jinja-template
25+
26+
- name: Prettify code
27+
uses: creyD/prettier_action@v4.6
28+
with:
29+
prettier_plugins: "prettier-plugin-sh prettier-plugin-jinja-template"
30+
prettier_options: --write .
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
commit_message: "chore(prettier): format code"
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
name: Super Linter
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches:
8+
- "*"
9+
10+
concurrency:
11+
group: super-linter-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
permissions: {}
15+
16+
jobs:
17+
build:
18+
name: Lint
19+
runs-on: ubuntu-latest
20+
21+
permissions:
22+
contents: read
23+
packages: read
24+
# To report GitHub Actions status checks
25+
statuses: write
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v5
30+
with:
31+
# super-linter needs the full git history to get the
32+
# list of files that changed across commits
33+
fetch-depth: 0
34+
35+
- name: Install Prettier plugins (for summary formatting)
36+
run: |
37+
npm install --no-save prettier prettier-plugin-sh prettier-plugin-jinja-template || true
38+
39+
- name: Super-linter
40+
uses: super-linter/super-linter@v8
41+
env:
42+
# To report GitHub Actions status checks
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
VALIDATE_JSCPD: false
45+
VALIDATE_SHELL_SHFMT: false
46+
VALIDATE_YAML_PRETTIER: false
47+
VALIDATE_JSON_PRETTIER: false
48+
VALIDATE_MARKDOWN_PRETTIER: false
49+
VALIDATE_NATURAL_LANGUAGE: false
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Update copyright year(s) in license file
2+
on:
3+
workflow_dispatch:
4+
schedule:
5+
- cron: "0 3 1 1 *" # 03:00 AM on January 1
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
update-license-year:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v5
16+
with:
17+
fetch-depth: 0
18+
- name: Action Update License Year
19+
uses: FantasticFiasco/action-update-license-year@v3
20+
with:
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
path: LICENSE.md
23+
- name: Merge pull request
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
run: |
27+
gh pr merge --merge --delete-branch

.gitignore

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
1-
.vscode/settings.json
2-
/node_modules
1+
# Visual Studio Code
2+
.vscode/*
3+
!.vscode/settings.json
4+
!.vscode/tasks.json
5+
!.vscode/launch.json
6+
!.vscode/extensions.json
7+
!.vscode/*.code-snippets
8+
.history/
9+
*.vsix
10+
11+
# Node.js
12+
node_modules

.prettierrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"plugins": ["prettier-plugin-sh"]
3+
}

.vscode/extensions.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"recommendations": [
3-
"ms-python.python",
3+
"DavidAnson.vscode-markdownlint",
44
"editorconfig.editorconfig",
5-
"yzhang.markdown-all-in-one",
65
"esbenp.prettier-vscode",
6+
"github.vscode-github-actions",
7+
"GitHub.vscode-pull-request-github",
8+
"redhat.vscode-yaml",
79
"timonwong.shellcheck",
8-
"redhat.vscode-yaml"
10+
"yzhang.markdown-all-in-one"
911
]
1012
}

0 commit comments

Comments
 (0)