Skip to content

Commit

Permalink
[refactor] migrate Issue templates from Markdown to YAML
Browse files Browse the repository at this point in the history
[optimize] update Upstream packages
  • Loading branch information
TechQuery committed Nov 17, 2023
1 parent 89a12c8 commit 7e31051
Show file tree
Hide file tree
Showing 7 changed files with 735 additions and 674 deletions.
23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/bug.md

This file was deleted.

35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Reference: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms

name: 🐞Bug
description: Bug feedback
labels:
- bug
assignees: TechQuery

# Reference: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema
body:
- type: textarea
attributes:
label: Operation steps
validations:
required: true
- type: textarea
attributes:
label: Expect result
validations:
required: true
- type: textarea
attributes:
label: Actual behavior
description: better with Screen Shot or Record
validations:
required: true
- type: markdown
attributes:
value: |
## Environment
- type: input
attributes:
label: User Agent string
validations:
required: true
18 changes: 0 additions & 18 deletions .github/ISSUE_TEMPLATE/package.md

This file was deleted.

40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Reference: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms

name: 📦Package
description: New package
labels:
- package
assignees: TechQuery

# Reference: https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-githubs-form-schema
body:
- type: textarea
attributes:
label: Web feature summary
description: Its official name and description
validations:
required: true
- type: markdown
attributes:
value: |
## Reference
- type: input
attributes:
label: Specification
description: https://www.w3.org/ , https://whatwg.org/ or https://tc39.es/
validations:
required: true
- type: input
attributes:
label: Documentation
description: https://developer.mozilla.org/
validations:
required: true
- type: input
attributes:
label: Git repository
description: https://github.com/ or https://gitlab.com/
- type: input
attributes:
label: NPM package
description: https://www.npmjs.com/
2 changes: 1 addition & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ LAN_HOST=https://polyfill.example.kp
[5]: https://www.jsdelivr.com/
[6]: https://github.com/EasyWebApp/Web-polyfill/actions/workflows/main.yml
[7]: https://github.com/EasyWebApp/Web-polyfill/blob/master/source/list.ts
[8]: https://github.com/EasyWebApp/Web-polyfill/issues/new?assignees=TechQuery&labels=package&template=package.md&title=
[8]: https://github.com/EasyWebApp/Web-polyfill/issues/new?assignees=TechQuery&labels=package&template=package.yml
[9]: https://github.com/EasyWebApp/Web-polyfill/edit/master/source/list.ts
[10]: https://github.com/features/actions
[11]: https://github.com/EasyWebApp/Web-polyfill
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web-polyfill",
"version": "0.6.4",
"version": "0.6.5",
"license": "AGPL-3.0",
"author": "shiy2008@gmail.com",
"description": "An automatic CDN service for Web polyfills, which is based on TypeScript, Node.js & JSDelivr.",
Expand Down Expand Up @@ -29,15 +29,15 @@
"dotenv": "^16.3.1",
"fs-extra": "^11.1.1",
"koapache": "^2.2.2",
"marked": "^9.0.2"
"marked": "^10.0.0"
},
"devDependencies": {
"@types/fs-extra": "^11.0.2",
"@types/node": "^18.17.17",
"@types/fs-extra": "^11.0.4",
"@types/node": "^18.18.9",
"husky": "^8.0.3",
"lint-staged": "^14.0.1",
"prettier": "^3.0.3",
"tsx": "^3.12.10",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"tsx": "^4.1.3",
"typescript": "~5.2.2"
},
"prettier": {
Expand Down
Loading

0 comments on commit 7e31051

Please sign in to comment.