chore: add Go version lint check, modernize issue templates (#557)

- Add go.mod version check in lint workflow (fails if go directive != 1.20)
- Add golang.org/x/sys to dependabot ignore list (newer versions require Go 1.21+)
- Fix golang.org/x/text ignore comment
- Migrate issue templates from markdown to YAML forms:
- Update PR template (dev → main, add go.mod checklist item)
- Update .gitignore for YAML issue templates
This commit is contained in:
Roger
2026-04-06 00:33:25 +08:00
committed by GitHub
parent d8032ac824
commit 4c3dd9704f
10 changed files with 207 additions and 73 deletions
@@ -0,0 +1,51 @@
name: Browser Support Request
description: Request support for a new browser
labels: ["enhancement", "browser"]
body:
- type: input
id: browser-name
attributes:
label: Browser Name
placeholder: "e.g. Waterfox, Floorp, Whale"
validations:
required: true
- type: dropdown
id: engine
attributes:
label: Browser Engine
options:
- Chromium-based
- Firefox-based
- Other / Unknown
validations:
required: true
- type: dropdown
id: platform
attributes:
label: Platform
multiple: true
options:
- Windows
- macOS
- Linux
validations:
required: true
- type: input
id: data-dir
attributes:
label: User Data Directory
description: The browser's profile/data directory path. You can usually find this at `chrome://version` or `about:support`.
placeholder: "e.g. ~/Library/Application Support/BrowserName/"
validations:
required: false
- type: textarea
id: additional
attributes:
label: Additional Context
description: Any other information about this browser (download link, encryption differences, etc.)
validations:
required: false
-40
View File
@@ -1,40 +0,0 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
## Describe the bug
A clear and concise description of what the bug is.
## Log Output
Please attach or paste the relevant log output. Use `./hack-browser-data -vv` and paste result here.
## Expected vs Actual Behavior
Describe what you expected to happen and what actually happened.
## Desktop (please complete the following information):
Select the operating system(s) you are using:
- [ ] Windows
- [ ] macOS
- [ ] Linux
- OS Version: [e.g. windows 10, macos 10.15.7, ubuntu 20.04]
- OS Architecture: [e.g. 32-bit, 64-bit]
- Browser Name: [e.g. chrome, firefox]
- Browser Version: [e.g. 86.0.4240.111, 82.0.3]
## Additional Details
- [ ] I ran `hack-browser-data` with administrator/root privileges.
## Checklist
- [ ] I have checked the [existing issues](https://github.com/moonD4rk/HackBrowserData/issues) for similar problems.
## Screenshots/Videos
If applicable, add screenshots or videos to help explain your problem.
## Additional context
Add any other context about the problem here.
+96
View File
@@ -0,0 +1,96 @@
name: Bug Report
description: Report a bug to help us improve
labels: ["bug"]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to report a bug! Please fill out the information below.
- type: dropdown
id: os
attributes:
label: Operating System
options:
- Windows
- macOS
- Linux
validations:
required: true
- type: input
id: os-version
attributes:
label: OS Version
placeholder: "e.g. Windows 10 22H2, macOS 14.5, Ubuntu 24.04"
validations:
required: true
- type: dropdown
id: browser
attributes:
label: Browser
options:
- Chrome
- Chrome Beta
- Chromium
- Edge
- Brave
- Opera
- OperaGX
- Vivaldi
- Yandex
- CocCoc
- Arc
- QQ
- 360 ChromeX
- 360 Chrome
- DC Browser
- Sogou Explorer
- Firefox
- Other
validations:
required: false
- type: input
id: browser-version
attributes:
label: Browser Version
placeholder: "e.g. Chrome 135.0.7049.96, Firefox 144.0"
validations:
required: false
- type: textarea
id: description
attributes:
label: Bug Description
description: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
id: log-output
attributes:
label: Log Output
description: Run `hack-browser-data -v` and paste the output here.
render: shell
validations:
required: false
- type: textarea
id: expected
attributes:
label: Expected vs Actual Behavior
description: What you expected to happen and what actually happened.
validations:
required: false
- type: checkboxes
id: checklist
attributes:
label: Checklist
options:
- label: I have checked the [existing issues](https://github.com/moonD4rk/HackBrowserData/issues) for similar reports.
required: true
- label: I ran `hack-browser-data` with administrator/root privileges.
required: false
+5
View File
@@ -0,0 +1,5 @@
blank_issues_enabled: true
contact_links:
- name: Documentation
url: https://github.com/moonD4rk/HackBrowserData/tree/main/rfcs
about: Read the RFCs for architecture and encryption details.
-23
View File
@@ -1,23 +0,0 @@
---
name: Feature Request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''
---
## Feature Description
A clear and concise description of what the feature is.
## Why is this feature needed?
A clear and concise description of why this feature is needed.
## Checklist
- [ ] I have checked the [existing issues](https://github.com/moonD4rk/HackBrowserData/issues) for similar problems.
## Screenshots/Videos
If applicable, add screenshots or videos to help explain your proposal.
## Additional Context
Add any other context or screenshots about the feature request here.
@@ -0,0 +1,35 @@
name: Feature Request
description: Suggest an idea for this project
labels: ["enhancement"]
body:
- type: textarea
id: description
attributes:
label: Feature Description
description: A clear and concise description of the feature.
validations:
required: true
- type: textarea
id: motivation
attributes:
label: Why is this feature needed?
description: Describe the problem this feature would solve or the use case it enables.
validations:
required: true
- type: textarea
id: proposed-solution
attributes:
label: Proposed Solution
description: If you have an idea for how this could be implemented, describe it here.
validations:
required: false
- type: checkboxes
id: checklist
attributes:
label: Checklist
options:
- label: I have checked the [existing issues](https://github.com/moonD4rk/HackBrowserData/issues) for similar requests.
required: true
+7 -7
View File
@@ -1,13 +1,13 @@
## Proposed changes
## Summary
<!-- Describe the overall picture of your modifications to help maintainers understand the pull request. PRs are required to be associated to their related issue tickets or feature request. -->
<!-- Describe the overall picture of your changes. Link to the related issue if applicable. -->
Fixes #
## Checklist
<!-- Put an "x" in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code. -->
- [ ] Pull request is created against the [dev](https://github.com/moonD4rk/HackBrowserData/tree/dev) branch
- [ ] All checks passed (lint, unit, build tests etc.) with my changes
- [ ] Pull request targets the `main` branch
- [ ] All CI checks pass (lint, test, build)
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have added necessary documentation (if appropriate)
- [ ] I have added necessary documentation (if appropriate)
- [ ] go.mod directive remains `go 1.20` (do not bump)
+2 -1
View File
@@ -9,7 +9,8 @@ updates:
ignore:
- dependency-name: "modernc.org/sqlite"
versions: [">=1.32.0"] # v1.32+ requires Go 1.21, project is pinned to Go 1.20
- dependency-name: "golang.org/x/text" # will be removed in upcoming refactoring
- dependency-name: "golang.org/x/text" # indirect dep, newer versions may require Go 1.21+
- dependency-name: "golang.org/x/sys" # newer versions require Go 1.21+
- package-ecosystem: "github-actions"
directory: "/"
schedule:
+10
View File
@@ -23,6 +23,16 @@ jobs:
with:
go-version-file: go.mod
- name: Check Go version constraint
if: matrix.os == 'ubuntu-latest'
run: |
GO_VERSION=$(grep '^go ' go.mod | awk '{print $2}')
if [ "$GO_VERSION" != "1.20" ]; then
echo "::error::go.mod directive must remain 'go 1.20' (Windows 7 support requirement)"
echo "::error::Current value: go $GO_VERSION"
exit 1
fi
- name: Check spelling
if: matrix.os == 'ubuntu-latest'
uses: crate-ci/typos@master
+1 -2
View File
@@ -25,14 +25,13 @@
!CONTRIBUTING.md
!CODE_OF_CONDUCT.md
!LOGO.png
!CONTRIBUTORS.svg
# === GitHub ===
!.github/workflows/*.yml
!.github/ISSUE_TEMPLATE/*.md
!.github/ISSUE_TEMPLATE/*.yml
!.github/PULL_REQUEST_TEMPLATE.md
!.github/dependabot.yml
!.github/release-drafter.yml
# === RFCs ===
!rfcs/*.md