Skip to content

Commit d2c9843

Browse files
committed
20220910A
1 parent 6ab00d7 commit d2c9843

24 files changed

+686
-333
lines changed

.eslintrc.yml

Lines changed: 209 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,209 @@
1+
env:
2+
amd: false
3+
applescript: false
4+
atomtest: false
5+
browser: true
6+
commonjs: true
7+
embertest: false
8+
es6: true
9+
es2017: true
10+
es2020: true
11+
es2021: true
12+
greasemonkey: false
13+
jasmine: false
14+
jest: false
15+
jquery: false
16+
meteor: false
17+
mocha: false
18+
mongo: false
19+
nashorn: false
20+
node: true
21+
phantomjs: false
22+
prototypejs: false
23+
protractor: false
24+
qunit: false
25+
serviceworker: true
26+
shared-node-browser: true
27+
shelljs: false
28+
webextensions: true
29+
worker: true
30+
extends:
31+
- "eslint:all"
32+
parserOptions:
33+
ecmaFeatures:
34+
arrowFunctions: true
35+
classes: true
36+
defaultParams: true
37+
destructuring: true
38+
experimentalObjectRestSpread: true
39+
forOf: true
40+
generators: true
41+
globalReturn: false
42+
impliedStrict: true
43+
jsx: false
44+
modules: true
45+
objectLiteralComputedProperties: true
46+
objectLiteralDuplicateProperties: true
47+
objectLiteralShorthandMethods: true
48+
objectLiteralShorthandProperties: true
49+
regexUFlag: true
50+
regexYFlag: true
51+
restParams: true
52+
spread: true
53+
superInFunctions: false
54+
templateStrings: true
55+
unicodeCodePointEscapes: true
56+
ecmaVersion: "latest"
57+
sourceType: "module"
58+
plugins:
59+
- "only-warn"
60+
rules:
61+
array-element-newline:
62+
- "warn"
63+
- "consistent"
64+
arrow-body-style:
65+
- "warn"
66+
- "always"
67+
brace-style:
68+
- "warn"
69+
- "1tbs"
70+
- allowSingleLine: false
71+
capitalized-comments: "off"
72+
complexity: "off"
73+
dot-location: "off"
74+
dot-notation: "off"
75+
eqeqeq:
76+
- "warn"
77+
- "always"
78+
func-names:
79+
- "warn"
80+
- "as-needed"
81+
func-style:
82+
- "warn"
83+
- "declaration"
84+
- allowArrowFunctions: true
85+
function-call-argument-newline:
86+
- "warn"
87+
- "consistent"
88+
function-paren-newline:
89+
- "warn"
90+
- "multiline-arguments"
91+
guard-for-in: "off"
92+
id-length:
93+
- "warn"
94+
- max: 80
95+
min: 1
96+
properties: "always"
97+
indent:
98+
- "warn"
99+
- "tab"
100+
- flatTernaryExpressions: false
101+
ImportDeclaration: 1
102+
MemberExpression: 1
103+
ObjectExpression: 1
104+
outerIIFEBody: 1
105+
SwitchCase: 1
106+
VariableDeclarator: 1
107+
init-declarations: "off"
108+
line-comment-position: "off"
109+
linebreak-style: "off"
110+
lines-around-comment: "off"
111+
lines-between-class-members: "off"
112+
max-classes-per-file: "off"
113+
max-depth: "off"
114+
max-len: "off"
115+
max-lines-per-function: "off"
116+
max-lines: "off"
117+
max-params:
118+
- "warn"
119+
- max: 5
120+
max-statements: "off"
121+
multiline-comment-style: "off"
122+
multiline-ternary:
123+
- "warn"
124+
- "always-multiline"
125+
new-cap: "off"
126+
no-alert: "off"
127+
no-bitwise: "off"
128+
no-case-declarations: "off"
129+
no-console: "off"
130+
no-continue: "off"
131+
no-empty:
132+
- "warn"
133+
- allowEmptyCatch: true
134+
no-extra-parens:
135+
- "warn"
136+
- "all"
137+
- conditionalAssign: false
138+
ignoreJSX: "multi-line"
139+
nestedBinaryExpressions: false
140+
returnAssign: false
141+
no-inline-comments: "off"
142+
no-labels: "off"
143+
no-magic-numbers: "off"
144+
no-mixed-operators:
145+
- "warn"
146+
- allowSamePrecedence: true
147+
no-new: "off"
148+
no-param-reassign: "off"
149+
no-plusplus:
150+
- "warn"
151+
- allowForLoopAfterthoughts: true
152+
no-tabs:
153+
- "warn"
154+
- allowIndentationTabs: true
155+
no-ternary: "off"
156+
no-undefined: "off"
157+
no-var: "off"
158+
no-void: "off"
159+
object-curly-newline:
160+
- "warn"
161+
- consistent: true
162+
multiline: true
163+
object-curly-spacing:
164+
- "warn"
165+
- "always"
166+
object-shorthand:
167+
- "warn"
168+
- "consistent-as-needed"
169+
one-var-declaration-per-line: "off"
170+
one-var: "off"
171+
padded-blocks:
172+
- "warn"
173+
- "never"
174+
prefer-arrow-callback:
175+
- "warn"
176+
- allowNamedFunctions: true
177+
prefer-const: "off"
178+
prefer-destructuring: "off"
179+
prefer-exponentiation-operator: "off"
180+
prefer-rest-params: "off"
181+
quote-props:
182+
- "warn"
183+
- "consistent"
184+
quotes:
185+
- "warn"
186+
- "double"
187+
- allowTemplateLiterals: true
188+
semi:
189+
- "warn"
190+
- "always"
191+
- omitLastInOneLineBlock: false
192+
sort-imports:
193+
- "warn"
194+
- allowSeparatedGroups: false
195+
ignoreCase: true
196+
sort-keys:
197+
- "warn"
198+
- "asc"
199+
- caseSensitive: false
200+
natural: true
201+
sort-vars:
202+
- "warn"
203+
- ignoreCase: true
204+
space-before-function-paren:
205+
- "warn"
206+
- anonymous: "always"
207+
named: "never"
208+
asyncArrow: "always"
209+
spaced-comment: "off"

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ body:
1818
description: "What versions are affected? Versions must be listed as supported in the Security Policy (i.e.: file `SECURITY.md`)."
1919
multiple: true
2020
options:
21+
- "v1.0.1"
2122
- "v1.0.0"
2223
- "v0.5.5"
2324
- "v0.5.4"

CONTRIBUTING.md

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,43 @@
11
# Contributing Guide
22

3-
## Preface
4-
53
This Contributing Guide includes the guidelines, methods, and ways to contribute on different categories, items, and types; If this Contributing Guide does not include some of the categories, items, and/or types, maybe:
64

75
- those guidelines, methods, and/or ways are separated from this Contributing Guide and exist and/or store in their corresponding places,
86
- those categories, items, and/or types are easy to understand how to correctly contributing, or
97
- maintainers and/or owners forgot to edit this Contributing Guide.
108

11-
If you still confused, try to create a discussion or an issue.
9+
If you have any questions and/or still confused, try to create a discussion.
10+
11+
## Codes
12+
13+
All of the codes in this project and repository are follow the "[hxhS (hugoalh & hugoalh Studio) Coding Guide](https://github.com/hugoalh/hugoalh/blob/main/coding-guide/main.md)".
14+
15+
## Deploys, Releases, Tags & Versions
16+
17+
These are always the works for the maintainers and owners.
1218

1319
## Discussions
1420

1521
- Before create a discussion, check whether any similar discussions are already exist.
16-
- For any bug reports, it is better to create an issue.
17-
- For any security vulnerability reports, please visit the Security Policy (/.github/SECURITY.md).
22+
- Any reports and requests should create an issue instead.
23+
24+
## Documentations, Documents & Wikis
25+
26+
To improve the documentations and/or documents, clone this repository, edit the documentations and/or documents, and create a pull request.
27+
28+
This project and repository does not have wikis.
29+
30+
## I18ns (Internationalizations) & Translations
31+
32+
This project and repository does not have necessary things to do i18ns and/or translations.
33+
34+
If you want to do i18ns and/or translations on the documentations, documents and/or wikis, please see section "[Documentations, Documents & Wikis](#documentations-documents--wikis)".
1835

1936
## Issues
2037

2138
- Before create an issue, check whether any similar issues are already exist.
22-
- For any questions, it is better to create a discussion.
23-
- For any security vulnerability reports, please visit the Security Policy (/.github/SECURITY.md).
39+
- Any questions should create a discussion instead.
40+
- For any security vulnerability reports, please visit the Security Policy (file: `SECURITY.md`).
2441

2542
## Pull Requests
2643

@@ -30,4 +47,4 @@ If you still confused, try to create a discussion or an issue.
3047
- Try to avoid a pull request with too many changes if possible.
3148
- A large pull request not only stretches the review time, but also makes it much harder to spot issues.
3249
- It is better to split the pull request to multiple smaller ones.
33-
- If your pull request is not ready but want to save it first, you can submit it by mark as draft, and no need to add any identifications to the title (e.g.: `WIP`).
50+
- If your pull request is not ready but want to save it first, you can submit it by mark as draft, and no need to add any identifications to the title (e.g.: `[WIP]`).

hugoalh.GitHubActionsToolkit/_get-package-commands.ps1

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#Requires -PSEdition Core
2+
#Requires -Version 7.2
3+
<#
4+
This script is help for copy members to the file `hugoalh.GitHubActionsToolkit.psd1` for best performance, and use for debug.
5+
#>
6+
[String]$PackageName = 'hugoalh.GitHubActionsToolkit'
7+
@(
8+
"$PackageName.psm1"
9+
) |
10+
ForEach-Object -Process { Join-Path -Path $PSScriptRoot -ChildPath $_ } |
11+
Import-Module -Scope 'Local'
12+
[PSCustomObject[]]$PackageCommands = Get-Command -Module $PackageName -ListImported
13+
ForEach ($CommandType In @('Function', 'Alias')) {
14+
$PackageCommands |
15+
Where-Object -FilterScript { $_.CommandType -ieq $CommandType } |
16+
Select-Object -ExpandProperty 'Name' |
17+
Sort-Object |
18+
Join-String -Separator ",`n" -SingleQuote |
19+
Set-Clipboard -Confirm
20+
}

hugoalh.GitHubActionsToolkit/hugoalh.GitHubActionsToolkit.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
RootModule = 'hugoalh.GitHubActionsToolkit.psm1'
44

55
# Version number of this module.
6-
ModuleVersion = '1.0.0'
6+
ModuleVersion = '1.0.1'
77

88
# Supported PSEditions
99
# CompatiblePSEditions = @()

hugoalh.GitHubActionsToolkit/hugoalh.GitHubActionsToolkit.psm1

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#Requires -PSEdition Core
22
#Requires -Version 7.2
3-
[String]$ModuleRoot = Join-Path -Path $PSScriptRoot -ChildPath 'module'
43
[String[]]$ModulesNames = @(
54
'command-base',
65
'artifact',
@@ -16,10 +15,14 @@
1615
'tool-cache',
1716
'utility'
1817
)
19-
Import-Module -Name ($ModulesNames | ForEach-Object -Process {
20-
Return (Join-Path -Path $ModuleRoot -ChildPath "$_.psm1")
21-
}) -Scope 'Local'
18+
$ModulesNames |
19+
ForEach-Object -Process { Join-Path -Path $PSScriptRoot -ChildPath 'module' -AdditionalChildPath "$_.psm1" } |
20+
Import-Module -Scope 'Local'
2221
[PSCustomObject[]]$PackageCommands = Get-Command -Module $ModulesNames -ListImported
23-
[String[]]$PackageCommandsFunctions = ($PackageCommands | Where-Object -FilterScript { Return ($_.CommandType -ieq 'Function') }).Name
24-
[String[]]$PackageCommandsAliases = ($PackageCommands | Where-Object -FilterScript { Return ($_.CommandType -ieq 'Alias') }).Name
22+
[String[]]$PackageCommandsFunctions = $PackageCommands |
23+
Where-Object -FilterScript { $_.CommandType -ieq 'Function' } |
24+
Select-Object -ExpandProperty 'Name'
25+
[String[]]$PackageCommandsAliases = $PackageCommands |
26+
Where-Object -FilterScript { $_.CommandType -ieq 'Alias' } |
27+
Select-Object -ExpandProperty 'Name'
2528
Export-ModuleMember -Function $PackageCommandsFunctions -Alias $PackageCommandsAliases

0 commit comments

Comments
 (0)