Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: bookstairs/bookhunter
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.11.0
Choose a base ref
...
head repository: bookstairs/bookhunter
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Nov 25, 2022

  1. fix: the log name for k12.

    syhily committed Nov 25, 2022

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    b46b2da View commit details

Commits on Dec 14, 2022

  1. Copy the full SHA
    ef08783 View commit details
  2. Copy the full SHA
    bff08f6 View commit details

Commits on Dec 20, 2022

  1. build: change precommit hooks.

    syhily committed Dec 20, 2022
    Copy the full SHA
    731832f View commit details
  2. docs: add icons in readme.

    syhily committed Dec 20, 2022
    Copy the full SHA
    fc5fd63 View commit details

Commits on Dec 22, 2022

  1. Copy the full SHA
    0cf52fb View commit details
  2. Update goimports.sh

    syhily authored Dec 22, 2022
    Copy the full SHA
    9c2bbd8 View commit details

Commits on Dec 26, 2022

  1. Copy the full SHA
    862e60a View commit details

Commits on Apr 11, 2023

  1. feat: bump deps

    syhily committed Apr 11, 2023
    Copy the full SHA
    cbba501 View commit details

Commits on May 14, 2023

  1. Copy the full SHA
    e405894 View commit details

Commits on Oct 9, 2023

  1. Copy the full SHA
    ae475eb View commit details

Commits on Oct 23, 2023

  1. Copy the full SHA
    df946d4 View commit details
  2. Copy the full SHA
    b652bdb View commit details
  3. chore: bump go version.

    syhily committed Oct 23, 2023
    Copy the full SHA
    f461ef1 View commit details
  4. Copy the full SHA
    eae1bed View commit details
  5. Copy the full SHA
    71fbaf3 View commit details

Commits on Nov 2, 2023

  1. chore: drop tianlang support.

    syhily committed Nov 2, 2023
    Copy the full SHA
    92aa5c9 View commit details

Commits on Dec 28, 2023

  1. Copy the full SHA
    565e308 View commit details
  2. Copy the full SHA
    e8e34c1 View commit details
  3. fix: change the progress store when enable the filter logic.

    syhily committed Dec 28, 2023
    Copy the full SHA
    ce64f50 View commit details

Commits on Jan 16, 2024

  1. feat: add LoongArch support.

    syhily authored Jan 16, 2024
    Copy the full SHA
    8726c9d View commit details
  2. feat: add hsu.life support.

    syhily committed Jan 16, 2024
    Copy the full SHA
    d80e360 View commit details
  3. docs: add hsu life tutorial.

    syhily committed Jan 16, 2024
    Copy the full SHA
    b3a5891 View commit details
  4. typo: fix readme.

    syhily committed Jan 16, 2024
    Copy the full SHA
    0bd746f View commit details

Commits on Jan 17, 2024

  1. Update telegram.go

    syhily authored Jan 17, 2024
    Copy the full SHA
    8767011 View commit details
  2. Update README.md

    syhily authored Jan 17, 2024
    Copy the full SHA
    77281d1 View commit details
  3. Update writer.go

    syhily authored Jan 17, 2024
    Copy the full SHA
    d2f025c View commit details
  4. Update writer.go

    syhily authored Jan 17, 2024
    Copy the full SHA
    3e43373 View commit details
  5. fix: invalid telegram session store.

    syhily committed Jan 17, 2024
    Copy the full SHA
    68954bf View commit details
  6. fix: invalid log head.

    syhily committed Jan 17, 2024
    Copy the full SHA
    1bcc23b View commit details

Commits on Jan 23, 2024

  1. feat: add the forbidden information.

    syhily committed Jan 23, 2024
    Copy the full SHA
    490b276 View commit details

Commits on Jan 31, 2024

  1. chore: bump go deps.

    syhily committed Jan 31, 2024
    Copy the full SHA
    0bcffb1 View commit details

Commits on Jul 4, 2024

  1. Update SoBooks website URL to sobooks.cc (#25)

    jianyun8023 authored Jul 4, 2024
    Copy the full SHA
    1b958fb View commit details

Commits on Jul 8, 2024

  1. chore: clean up the legacy code. bump dependencies. fix some actions.

    syhily committed Jul 8, 2024
    Copy the full SHA
    455bd9d View commit details
  2. build: drop the invalid args.

    syhily committed Jul 8, 2024
    Copy the full SHA
    f3ef9b3 View commit details

Commits on Aug 28, 2024

  1. chore: change the default thread number to the CPU core number.

    syhily committed Aug 28, 2024
    Copy the full SHA
    9ffeb17 View commit details
  2. feat: add arm64 build for windows

    syhily committed Aug 28, 2024
    Copy the full SHA
    adab278 View commit details

Commits on Sep 5, 2024

  1. chore: bump the dependencies to the latest version.

    syhily committed Sep 5, 2024
    Copy the full SHA
    76bbd8a View commit details

Commits on Jan 5, 2025

  1. feat: support sobooks.

    syhily committed Jan 5, 2025
    Copy the full SHA
    2ad5b05 View commit details
  2. chore: fix the deprecation in goreleaser.

    syhily committed Jan 5, 2025
    Copy the full SHA
    07ee395 View commit details
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -15,11 +15,11 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.19'
go-version: '1.23'
check-latest: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -10,19 +10,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: '1.19'
go-version: '1.23'
check-latest: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
17 changes: 14 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -31,7 +31,6 @@ linters-settings:
misspell:
locale: US
nolintlint:
allow-leading-space: true # don't require machine-readable nolint directives (i.e. with no leading space)
allow-unused: false # report any unused nolint directives
require-explanation: false # don't require an explanation for nolint directives
require-specific: false # don't require nolint directives to be specific about which linter is being skipped
@@ -41,6 +40,17 @@ linters-settings:
- G401
- G501
- G306
- G115
depguard:
rules:
main:
# Packages that are not allowed where the value is a suggestion.
deny:
- pkg: "github.com/sirupsen/logrus"
desc: not allowed
- pkg: "github.com/pkg/errors"
desc: Should be replaced by standard lib errors package


linters:
disable-all: true
@@ -52,7 +62,6 @@ linters:
- dogsled
- dupl
- errcheck
- exportloopref
- funlen
- goconst
- gocritic
@@ -79,7 +88,9 @@ linters:

run:
timeout: 5m
skip-dirs:

issues:
exclude-dirs:
- .github
- docker
- scripts
37 changes: 19 additions & 18 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
project_name: bookhunter
version: 2

before:
hooks:
@@ -21,37 +22,37 @@ builds:
- windows
- darwin
goarch:
- "386"
- amd64
- arm64
- loong64
ignore:
- goos: darwin
goarch: "386"
- goos: windows
goarch: arm64
goarch: loong64
- goos: darwin
goarch: loong64

scoop:
bucket:
owner: bookstairs
name: scoop-bucket
branch: master
commit_author:
name: syhily
email: syhily@gmail.com
homepage: "https://github.com/bookstairs"
description: "Software to download chinese ebooks from Internet."
license: MIT
scoops:
- repository:
owner: bookstairs
name: scoop-bucket
branch: master
commit_author:
name: syhily
email: syhily@gmail.com
homepage: "https://github.com/bookstairs"
description: "Software to download chinese ebooks from Internet."
license: MIT

brews:
- name: bookhunter
tap:
repository:
owner: bookstairs
name: homebrew-tap
branch: master
commit_author:
name: syhily
email: syhily@gmail.com
folder: Formula
directory: Formula
homepage: "https://github.com/bookstairs"
description: "Software to download chinese ebooks from Internet."
license: "MIT"
@@ -96,4 +97,4 @@ release:
draft: true

snapshot:
name_template: "{{ incminor .Version }}-next"
version_template: "{{ incminor .Version }}-next"
14 changes: 5 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
- repo: local
hooks:
- id: goimports
name: goimports
entry: scripts/goimports.sh
language: script
types: [ go ]
pass_filenames: true
- repo: https://github.com/tekwizely/pre-commit-golang
rev: v1.0.0-rc.1
hooks:
- id: go-mod-tidy-repo
- id: golangci-lint-mod
- id: my-cmd
name: goimports
alias: goimports
args: [ scripts/goimports.sh, github.com/bookstairs/bookhunter ]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ help: ## Display this help
/^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-10s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST)

build: ## Build executable files
@goreleaser release --rm-dist --snapshot
@goreleaser release --clean --snapshot

test: ## Run tests
go install "github.com/rakyll/gotest@latest"
Loading