Skip to content

Commit 41fc1a4

Browse files
authored
Merge branch 'main' into feat-update-sentry
2 parents f49c648 + 9b7100e commit 41fc1a4

1,041 files changed

Lines changed: 6438 additions & 14498 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.devcontainer/devcontainer.json‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"name": "vscode-material-icon-theme",
3+
4+
// Use Microsoft's Ubuntu Base image for the dev container
5+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
6+
"features": {
7+
"ghcr.io/michidk/devcontainers-features/bun:1": {}
8+
},
9+
10+
"privileged": true,
11+
12+
"onCreateCommand": {
13+
// Install dependencies in the dev container
14+
"install-bun-packages": "bun install"
15+
},
16+
17+
"customizations": {
18+
"vscode": {
19+
"settings": {
20+
// Define suggested settings for the dev container
21+
"resmon.show.battery": false,
22+
"resmon.show.cpufreq": false
23+
},
24+
"extensions": [
25+
"biomejs.biome",
26+
"jock.svg",
27+
"EditorConfig.EditorConfig",
28+
"oven.bun-vscode"
29+
]
30+
}
31+
}
32+
}

‎.eslintignore‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎.eslintrc.json‎

Lines changed: 0 additions & 51 deletions
This file was deleted.

‎.github/PULL_REQUEST_TEMPLATE/pull_request_template.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
## Contribution Guidelines
66

7-
[ ] By creating this pull request, I acknowledge that I have read the [Contribution Guidelines](../../CONTRIBUTING.md) for this project.
7+
- [ ] By creating this pull request, I acknowledge that I have read the [Contribution Guidelines](../../CONTRIBUTING.md) for this project.

‎.github/dependabot.yml‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
# To get started with Dependabot version updates, you'll need to specify which
3+
# package ecosystems to update and where the package manifests are located.
4+
# Please see the documentation for all configuration options:
5+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
6+
7+
version: 2
8+
updates:
9+
- package-ecosystem: 'github-actions' # See documentation for possible values
10+
directory: '/' # Location of package manifests
11+
schedule:
12+
interval: 'weekly'
13+
assignees:
14+
- 'PKief'
15+
groups:
16+
github-actions:
17+
patterns:
18+
- 'actions/*'

‎.github/workflows/build.yml‎

Lines changed: 19 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,33 @@
11
name: Build + Test
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions:
8+
contents: read
49

510
jobs:
6-
test:
7-
runs-on: ${{ matrix.os }}
8-
strategy:
9-
matrix:
10-
os: [windows-latest, ubuntu-latest]
11-
node-version: [16.x]
11+
build:
12+
runs-on: [ubuntu-latest]
1213

13-
name: ${{ matrix.os }} (Node.js ${{ matrix.node-version }})
14+
name: Build Material Icon Theme
1415

1516
steps:
1617
- name: Checkout 🛎
17-
uses: actions/checkout@v4
18-
19-
- name: Setup Node.js ${{ matrix.node-version }} ⚙
20-
uses: actions/setup-node@v3
18+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2119
with:
22-
node-version: ${{ matrix.node-version }}
23-
24-
- name: Run display server 🖥
25-
run: /usr/bin/Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & echo "Started xvfb"
26-
shell: bash
27-
if: ${{ success() && matrix.os == 'ubuntu-latest' }}
20+
persist-credentials: false
2821

29-
- name: Install node_modules 📦
30-
run: npm ci
31-
32-
- name: Cache node_modules 💾
33-
uses: actions/cache@v3
34-
env:
35-
cache-name: cache-node-modules
22+
- name: Setup Platform 🛠
23+
uses: oven-sh/setup-bun@123c6c4e2fea3eb7bffaa91a85eb6b3d505bf7af # v2
3624
with:
37-
# npm cache files are stored in `~/.npm` on Linux/macOS
38-
path: ~/.npm
39-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
40-
restore-keys: |
41-
${{ runner.os }}-build-${{ env.cache-name }}-
42-
${{ runner.os }}-build-
43-
${{ runner.os }}-
25+
bun-version: 1.1.13
26+
27+
- name: Install dependencies 📦
28+
run: bun install --frozen-lockfile
4429

4530
- name: Test + Build 🚀
4631
run: |
47-
npm test
48-
npm run vscode:prepublish
49-
env:
50-
DISPLAY: ':99.0'
32+
bun test
33+
bun run vscode:prepublish

‎.github/workflows/color-check.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,23 @@ on:
55
paths:
66
- 'icons/*.svg'
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
color-check:
1013
name: SVG Color Check
1114
runs-on: ubuntu-latest
1215
env:
1316
TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
17+
1418
steps:
1519
- name: Checkout 🛎️
16-
uses: actions/checkout@v4
20+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1721
with:
1822
fetch-depth: 0
19-
23+
persist-credentials: false
24+
2025
- name: Check colors 🎨
2126
run: |
2227
svgFiles=$(git diff origin/${{ env.TARGET_BRANCH }} --diff-filter=ACMRTUX --name-only | grep '.svg$')

‎.github/workflows/icon-review.yml‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,35 @@ on:
55
paths:
66
- 'icons/*.svg'
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
icon-review:
1013
name: Icon Review
1114
runs-on: ubuntu-latest
1215
env:
1316
TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
17+
18+
permissions:
19+
pull-requests: write
20+
1421
steps:
1522
- name: Checkout Fork 🛎️
16-
uses: actions/checkout@v4
23+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1724
with:
1825
ref: ${{ github.event.pull_request.head.ref }}
1926
repository: ${{ github.event.pull_request.head.repo.full_name }}
2027
fetch-depth: 0
2128
path: fork
29+
persist-credentials: false
2230

2331
- name: Checkout Original 🛎️
24-
uses: actions/checkout@v4
32+
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2533
with:
2634
fetch-depth: 0
2735
path: main
36+
persist-credentials: false
2837

2938
- name: Review SVG files 🔍
3039
run: |
@@ -46,12 +55,12 @@ jobs:
4655
shell: bash
4756

4857
- name: Post review in PR ✍️
49-
uses: actions/github-script@v7
58+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
5059
with:
5160
script: |
5261
const image_url = "${{ env.image_url }}";
5362
console.log('URL: '+image_url);
54-
const commentBody = '## Preview \n\nThank you for creating a pull request. This preview shows you how your changes will look on the different themes: \n\n ![Generated Preview](' + image_url + ') \n\n You can find more information how to contribute in the [contribution guidelines](https://github.com/PKief/vscode-material-icon-theme/blob/main/CONTRIBUTING.md).';
63+
const commentBody = '## Preview \n\nThank you for creating a pull request. This preview shows you how your changes will look on the different themes: \n\n ![Generated Preview](' + image_url + ') \n\n You can find more information how to contribute in the [contribution guidelines](https://github.com/material-extensions/vscode-material-icon-theme/blob/main/CONTRIBUTING.md).';
5564
5665
github.rest.issues.createComment({
5766
issue_number: context.issue.number,

‎.github/workflows/pr-closed.yml‎

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,29 @@ on:
55
types:
66
- closed
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
thank_you:
1013
runs-on: ubuntu-latest
1114
if: github.event.pull_request.merged == true
15+
16+
permissions:
17+
pull-requests: write
18+
1219
steps:
1320
- name: Post Thank You Comment 🙏
14-
uses: actions/github-script@v7
21+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
1522
with:
1623
script: |
1724
github.rest.issues.createComment({
1825
issue_number: context.issue.number,
1926
owner: context.repo.owner,
2027
repo: context.repo.repo,
21-
body: `## Merge Successful
22-
23-
Thanks for your contribution! 🎉
24-
28+
body: `## Merge Successful
29+
30+
Thanks for your contribution! 🎉
31+
2532
The changes will be part of the upcoming update on the marketplace.`
2633
})

0 commit comments

Comments
 (0)