Skip to content

Commit f7352a2

Browse files
committed
Update resources
1 parent 71251c6 commit f7352a2

Some content is hidden

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

43 files changed

+776
-5675
lines changed

.eslintrc.yml

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

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @hugoalh-studio/develop
1+
* @hugoalh

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 64 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -5,90 +5,108 @@ labels:
55
- "Status/Pending 🔵"
66
- "Type/Bug 🐛"
77
body:
8-
- type: "textarea"
9-
id: "describe"
8+
- type: "input"
9+
id: "version"
1010
attributes:
11-
label: "Describe"
11+
label: "Version"
1212
description: |-
13-
What the bug is? Add images and/or videos to help for explain this bug if needed.
13+
Which version occur this bug? Version must be supported at the time of submit, the supported versions are listed in the Security Policy file `SECURITY.md`.
1414
1515
> [!NOTE]
16-
> - Should not blur anything in the images and/or videos, except personal secrets.
17-
> - For external images and/or videos, please ensure we are able to view those.
18-
placeholder: |-
19-
It cannot XXXXXXXX.
16+
> - For multiple versions, separate each version with comma-space (`, `), or use versions range syntax from [OSGi](https://docs.osgi.org/whitepaper/semantic-versioning/040-semantic-versions.html) or [SemVer](https://devhints.io/semver).
17+
placeholder: "1.0.2"
2018
validations:
2119
required: true
2220
- type: "textarea"
23-
id: "reproduce"
21+
id: "describe"
2422
attributes:
25-
label: "To Reproduce"
23+
label: "Describe"
2624
description: |-
27-
Is this bug reproducible? If reproducible, please show the required steps by list, images, and/or videos!
25+
What the bug is? If needed, use images, videos, or other media type to help for explain this bug.
2826
2927
> [!NOTE]
30-
> - Should not blur anything in the images and/or videos, except personal secrets.
31-
> - For external images and/or videos, please ensure we are able to view those.
28+
> - For external media, please ensure we are able to view those without any extra step.
3229
placeholder: |-
33-
1. Go to XXXXXXXX.
34-
2. Click on XXXXXXXX.
35-
3. Scroll to XXXXXXXX.
36-
4. Encounter this error.
30+
It unable to XXXXXXXX.
3731
validations:
38-
required: false
39-
- type: "textarea"
40-
id: "expected-behaviour"
32+
required: true
33+
- type: "input"
34+
id: "behaviour-expected"
4135
attributes:
42-
label: "Expected Behaviour"
36+
label: "Behaviour Expected"
4337
description: |-
4438
What things should expected to happen?
4539
placeholder: |-
4640
It should XXXXXXXX.
4741
validations:
4842
required: false
43+
- type: "input"
44+
id: "behaviour-actual"
45+
attributes:
46+
label: "Behaviour Actual"
47+
description: |-
48+
What things happened instead of the expected?
49+
placeholder: |-
50+
It XXXXXXXX.
51+
validations:
52+
required: false
4953
- type: "textarea"
50-
id: "version"
54+
id: "reproduce"
5155
attributes:
52-
label: "Version"
56+
label: "To Reproduce"
5357
description: |-
54-
Which versions are affected by this bug?
58+
Is this bug reproducible? If reproducible, please show the reproduce steps; If needed, use images, videos, or other media to help for show the reproduce steps.
5559
5660
> [!NOTE]
57-
> - Accept versions range.
58-
> - Versions must be listed as supported in the Security Policy (file `SECURITY.md`).
61+
> - For external media, please ensure we are able to view those without any extra step.
5962
placeholder: |-
60-
1.2.3
63+
1. Go to XXXXXXXX.
64+
2. Click on XXXXXXXX.
65+
3. Scroll to XXXXXXXX.
66+
4. Encounter this bug.
6167
validations:
6268
required: false
69+
- type: "dropdown"
70+
id: "frequency"
71+
attributes:
72+
label: "Frequency"
73+
description: |-
74+
How often does this bug occur?
75+
options:
76+
- "Unknown / Untested"
77+
- "Always (~100%)"
78+
- "Frequently (~75%)"
79+
- "Half (~50%)"
80+
- "Sometimes (~25%)"
81+
- "Rarely (~5%)"
82+
multiple: false
83+
default: 0
84+
validations:
85+
required: true
6386
- type: "textarea"
6487
id: "execution-environment"
6588
attributes:
6689
label: "Execution Environment"
6790
description: |-
68-
How is the execution environment?
91+
How is the execution environment? Different execution environment may have different outcome, provide this information may help for reproduce this bug.
6992
70-
- **Type:** Device type.
71-
> Computer / Phone / Server / ...
72-
- **Hardware:** Hardware specifications.
73-
- **Platforms:** Operate system and softwares, with architecture and version.
74-
> Windows 11 22H2 X64 / Android 14 ARM64 / Alpine 3.18.0 X64 / NodeJS 20.6.0 X64 / Deno 1.36.0 X64 / Git 2.42.0 X64 / Python 3.11.0 X64 / ...
75-
- **IsSubSystem:** Whether the execution environment in the sub system?
76-
> False / True
77-
- **Variables:** Environment variables.
78-
> NO_COLOR=1 / ...
93+
These are common categories:
94+
95+
- **`type`:** Device type (e.g.: `computer`, `phone`, `server`).
96+
- **`cpu`:** Details of the central processing unit (e.g.: `Intel i7-6700`).
97+
- **`ram`:** Details of the random access memory (e.g.: `8 GB`).
98+
- **`storage`:** Details of the storage unit (e.g.: `500 GB SSD`).
99+
- **`network`:** Details of the network.
100+
- **`gpu`:** Details of the graphics processing unit (e.g.: `NVIDIA GeForce RTX 4090`).
101+
- **`os`:** Details of the operate system (e.g.: `Windows 11 Professional 23H2 X64`).
102+
- **`softwares`:** List of the installed softwares (e.g.: `NodeJS 20.6.0 X64`, `Deno 1.36.0 X64`).
103+
- **`env`:** List of the environment variables (e.g.: `NO_COLOR=1`).
79104
80105
> [!NOTE]
81106
> - Accept multiple execution environments.
82-
> - All of the properties are optional.
83-
> - It is recommended to provide this information for reproducible steps.
107+
> - All of the categories are optional.
84108
85109
**\[🖌️ YAML\]**
86-
placeholder: |-
87-
- Type: Server
88-
Platforms:
89-
- Ubuntu 23.04 X64
90-
- NodeJS 20.6.0 X64
91-
IsSubSystem: false
92110
render: "yml"
93111
validations:
94112
required: false
@@ -97,6 +115,6 @@ body:
97115
attributes:
98116
label: "Additional Information"
99117
description: |-
100-
If there have information that related to this bug but not suitable at other fields, please list those at here.
118+
If there have information which relevant to this bug but not suitable at other fields, please list those at here.
101119
validations:
102120
required: false

.github/ISSUE_TEMPLATE/documentation-issue.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,34 @@ labels:
66
- "Type/Documentation 📓"
77
body:
88
- type: "textarea"
9-
id: "page"
9+
id: "document"
1010
attributes:
11-
label: "Page"
11+
label: "Document"
1212
description: |-
13-
List of the related pages.
13+
Which document occur this issue?
14+
15+
> [!NOTE]
16+
> - Accept multiple documents.
17+
placeholder: |-
18+
README.md
1419
validations:
1520
required: true
1621
- type: "textarea"
1722
id: "describe"
1823
attributes:
1924
label: "Describe"
2025
description: |-
21-
What the issue is? Add images and/or videos to help for explain this issue if needed.
26+
What the issue is? If needed, use images, videos, or other media type to help for explain this issue.
2227
2328
> [!NOTE]
24-
> - Should not blur anything in the images and/or videos, except personal secrets.
25-
> - For external images and/or videos, please ensure we are able to view those.
29+
> - For external media, please ensure we are able to view those without any extra step.
2630
validations:
2731
required: true
28-
- type: "textarea"
29-
id: "expected-content"
30-
attributes:
31-
label: "Expected Content"
32-
description: |-
33-
What contents should expected?
34-
validations:
35-
required: false
3632
- type: "textarea"
3733
id: "additional-information"
3834
attributes:
3935
label: "Additional Information"
4036
description: |-
41-
If there have information that related to this issue but not suitable at other fields, please list those at here.
37+
If there have information which relevant to this issue but not suitable at other fields, please list those at here.
4238
validations:
4339
required: false

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,27 @@ body:
1010
attributes:
1111
label: "Describe"
1212
description: |-
13-
What feature do you want? Is your feature request related to a problem?
13+
What feature do you want? Is your feature request related to a problem? If needed, use images, videos, or other media type to help for explain this feature.
14+
15+
> [!NOTE]
16+
> - For external media, please ensure we are able to view those without any extra step.
1417
validations:
1518
required: true
16-
- type: "textarea"
17-
id: "expected-behaviour"
19+
- type: "input"
20+
id: "behaviour-expected"
1821
attributes:
19-
label: "Expected Behaviour"
22+
label: "Behaviour Expected"
2023
description: |-
2124
What things should expected to happen?
25+
placeholder: |-
26+
It should XXXXXXXX.
2227
validations:
23-
required: true
28+
required: false
2429
- type: "textarea"
2530
id: "additional-information"
2631
attributes:
2732
label: "Additional Information"
2833
description: |-
29-
If there have information that related to this issue but not suitable at other fields, please list those at here.
34+
If there have information which relevant to this feature but not suitable at other fields, please list those at here.
3035
validations:
3136
required: false

.github/dependabot.yml

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ updates:
44
- package-ecosystem: "github-actions"
55
directory: "/"
66
schedule:
7-
interval: "weekly"
8-
day: "sunday"
9-
time: "00:00"
7+
interval: "daily"
108
timezone: "Etc/UTC"
119
labels:
1210
- "Platform/GitHubActions"
@@ -15,37 +13,3 @@ updates:
1513
open-pull-requests-limit: 100
1614
pull-request-branch-name:
1715
separator: "/"
18-
- package-ecosystem: "npm"
19-
directory: "/"
20-
schedule:
21-
interval: "weekly"
22-
day: "sunday"
23-
time: "00:00"
24-
timezone: "Etc/UTC"
25-
groups:
26-
development:
27-
patterns:
28-
- "@*/eslint-config-*"
29-
- "@*/eslint-config"
30-
- "@*/eslint-formatter-*"
31-
- "@*/eslint-formatter"
32-
- "@*/eslint-parser-*"
33-
- "@*/eslint-parser"
34-
- "@*/eslint-plugin-*"
35-
- "@*/eslint-plugin"
36-
- "@types/*"
37-
- "@typescript-eslint/*"
38-
- "eslint-config-*"
39-
- "eslint-formatter-*"
40-
- "eslint-parser-*"
41-
- "eslint-plugin-*"
42-
- "eslint"
43-
- "typescript"
44-
labels:
45-
- "Platform/NodeJS"
46-
- "Status/Pending 🔵"
47-
- "Type/Dependency 📦"
48-
open-pull-requests-limit: 100
49-
pull-request-branch-name:
50-
separator: "/"
51-
versioning-strategy: "increase"

.github/labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# yaml-language-server: $schema=https://hugoalh.github.io/schema/json/github-labels.json
1+
# yaml-language-server: $schema=https://hugoalh.github.io/schema/json/sdvcfs-labels.json
22
- name: "Platform/Android"
33
color: "#3DDC84"
44
description: "Related to Android."
Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,35 @@
11
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2-
name: "Announce New Release - Discord"
2+
name: "Announce New Release"
33
on:
44
release:
55
types:
66
- "published"
77
jobs:
8-
main:
9-
name: "Main"
8+
discord:
9+
name: "Discord"
1010
permissions: {}
1111
runs-on: "ubuntu-latest"
1212
steps:
1313
- name: "Send Discord Webhook"
14-
uses: "hugoalh/send-discord-webhook-ghaction@v6.0.1"
14+
uses: "hugoalh/send-discord-webhook-ghaction@v7"
1515
with:
16-
key: "${{secrets.DISCORD_HXHS_PROJECTNEWRELEASEANNOUNCER_WEBHOOK}}"
17-
embeds: |
18-
- title: "GitHub Actions Toolkit (PowerShell)"
19-
description: |
16+
key: "${{secrets.COMMUNITY_DISCORD_PROJECTNEWRELEASEANNOUNCER_WEBHOOK}}"
17+
embeds: |-
18+
- title: "GitHub Actions - Core (PowerShell)"
19+
description: |-
2020
> ${{github.event.repository.description}}
2121
22-
Version ${{github.event.release.name}} (${{github.event.release.tag_name}}) just released!
22+
Version ${{github.event.release.name}} (`${{github.event.release.tag_name}}`) just released!
2323
timestamp: "${{github.event.release.published_at}}"
2424
color: "#0072C6"
25-
thumbnail:
26-
url: "https://i.imgur.com/OhKCMwk.png"
2725
author:
2826
name: "${{github.event.release.author.login}}"
2927
url: "${{github.event.release.author.html_url}}"
3028
icon_url: "${{github.event.release.author.avatar_url}}"
3129
fields:
32-
- name: "GitHub - Release & Changelog"
30+
- name: "📋 Changelog"
3331
value: "${{github.event.release.html_url}}"
34-
inline: false
35-
- name: "GitHub - Repository"
32+
- name: "GitHub"
3633
value: "${{github.event.repository.html_url}}"
37-
inline: false
3834
- name: "PowerShell Gallery"
39-
value: "https://www.powershellgallery.com/packages/hugoalh.GitHubActionsToolkit"
40-
inline: false
35+
value: "https://www.powershellgallery.com/packages/hugoalh.GitHubActionsCore"
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
name: "Invoke DevSkim Analysis"
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
pull_request:
8+
branches:
9+
- "**"
10+
types:
11+
- "edited"
12+
- "opened"
13+
- "reopened"
14+
- "synchronize"
15+
workflow_dispatch:
16+
jobs:
17+
main:
18+
permissions:
19+
actions: "read"
20+
contents: "read"
21+
security-events: "write"
22+
runs-on: "ubuntu-latest"
23+
steps:
24+
- name: "Checkout Repository"
25+
uses: "actions/checkout@v4"
26+
with:
27+
fetch-depth: "0"
28+
- name: "Analyze Repository"
29+
uses: "microsoft/DevSkim-Action@v1"
30+
with:
31+
should-scan-archives: "true"
32+
ignore-globs: "**/.git/**"
33+
- name: "Upload Analysis Result"
34+
uses: "github/codeql-action/upload-sarif@v3"
35+
with:
36+
sarif_file: "devskim-results.sarif"

0 commit comments

Comments
 (0)