GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — add go port · gitLibs/server@6cd4f8b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .dockerignore
  • .editorconfig
  • .github
    • actions/base
      • action.yaml
    • codecov.yml
    • pull_request_template.md
    • renovate.json
    • workflows
      • build.yaml
      • ci.yaml
      • lint-other.yaml
      • lint.yaml
      • matcher
        • flake8.json
      • release.yaml
      • test.yaml
  • .gitignore
  • .gitmodules
  • .golangci.yaml
  • .pre-commit-config.yaml
  • Dockerfile
  • LICENSE.txt
  • Makefile
  • auth
    • mysql_repository.go
    • mysql_repository_test.go
    • user_test.go
  • cache
    • interface.go
    • memory.go
    • memory_test.go
    • mock_Generic.go
    • redis.go
    • redis_test.go
  • compat
    • tags.go
    • tags_test.go
    • testdata
      • fields.json
      • subject_8_tags.txt
  • config
    • new.go
    • version.go
  • domain
    • auth.go
    • error.go
    • mock_AuthRepo.go
    • mock_SubjectRepo.go
    • mock_UserRepo.go
    • subject.go
    • user.go
  • go.mod
  • go.sum
  • internal
    • cmd/gen
      • gorm.go
      • method
        • method.go
    • dal
      • dao
        • chii_characters.gen.go
        • chii_crt_subject_index.gen.go
        • chii_episodes.gen.go
        • chii_memberfields.gen.go
        • chii_members.gen.go
        • chii_oauth_access_tokens.gen.go
        • chii_person_cs_index.gen.go
        • chii_person_fields.gen.go
        • chii_persons.gen.go
        • chii_subject_fields.gen.go
        • chii_subject_relations.gen.go
        • chii_subject_revisions.gen.go
        • chii_subjects.gen.go
      • metrics.go
      • new.go
      • query
        • chii_characters.gen.go
        • chii_crt_subject_index.gen.go
        • chii_episodes.gen.go
        • chii_members.gen.go
        • chii_oauth_access_tokens.gen.go
        • chii_person_cs_index.gen.go
        • chii_person_fields.gen.go
        • chii_persons.gen.go
        • chii_subject_fields.gen.go
        • chii_subject_relations.gen.go
        • chii_subject_revisions.gen.go
        • chii_subjects.gen.go
        • gen.go
    • driver
      • redis.go
    • errgo
      • errors.go
      • errors_test.go
    • logger
      • logger.go
      • logger_dev.go
      • logger_prod.go
    • metrics
      • tally.go
    • strparse
      • convert.go
    • strutil
      • split.go
      • split_test.go
    • test
      • gorm.go
      • skip.go
      • web.go
      • web_test.go
    • tools
      • tools.go
  • main.go
  • model
    • group.go
    • group_test.go
    • image.go
    • subject.go
    • subject.type.go
    • user.go
  • pkg
    • duration
      • duration_test.go
      • parse.go
    • readme.md
    • vars
      • index.go
      • platform.json
      • relation.json
      • staff.json
    • wiki
      • bench_test.go
      • error.go
      • parser.go
      • parser_internal_test.go
      • parser_test.go
      • spec_test.go
      • strings.go
      • strings_internal_test.go
      • testdata
        • wiki-syntax-spec
      • type.go
      • type_test.go
  • poetry.lock
  • pol
    • __init__.py
    • api
      • __init__.py
      • readme.md
      • v0
        • __init__.py
        • character.py
        • depends
          • __init__.py
          • auth
            • __init__.py
            • schema.py
            • schema_test.py
        • episode.py
        • index.py
        • me.py
        • models
          • __init__.py
          • base.py
          • creator.py
          • index.py
          • revision.py
          • subject.py
          • wiki.py
        • person.py
        • revision.py
        • subject.py
        • user
          • __init__.py
          • collection.py
        • utils.py
        • utils_test.py
    • compat
      • __init__.py
      • fixtures
        • bool.txt
        • disallow_object.txt
        • with_null.txt
      • phpseralize.py
      • phpseralize_test.py
    • config.py
    • curd
      • __init__.py
      • base.py
      • exceptions.py
      • readme.md
    • db
      • __init__.py
      • _const.py
      • const.py
      • const_test.py
      • readme.md
      • sa.py
      • tables.py
    • depends.py
    • http_cache
      • __init__.py
      • depends.py
    • middlewares
      • __init__.py
      • http.py
    • models
      • __init__.py
      • subject.py
      • user.py
    • permission
      • __init__.py
    • redis
      • json_cache.py
    • res.py
    • router.py
    • server.py
    • services
      • __init__.py
      • index_service.py
      • readme.md
      • rev_service
        • __init__.py
        • character_rev.py
        • ep_rev.py
        • exception.py
        • person_rev.py
        • subject_rev.py
      • subject_service.py
      • user_service.py
    • wiki
      • __init__.py
      • parser.py
      • parser_test.py
  • pyproject.toml
  • readme.md
  • scripts
    • bump.py
    • bump.sh
    • dev.py
    • public_archive.py
  • setup.cfg
  • subject
    • mysql_repository.go
    • mysql_repository_test.go
  • tests
    • app
      • api_v0
        • fixtures
          • subject_2585_tags.txt
        • test_auth.py
        • test_character.py
        • test_collection.py
        • test_ep.py
        • test_index.py
        • test_person.py
        • test_revision.py
        • test_revisions.py
        • test_subject.py
        • test_subject_auth.py
      • services
        • test_subject_service.py
      • test_auth_deps.py
      • test_base_router.py
      • test_redis.py
      • test_user_service.py
    • base.py
    • conftest.py
    • fixtures
      • mock_db.py
      • mock_db_record.py
      • mock_redis.py
      • mock_service.py
    • readme.md
  • user
    • mysql_repository.go
    • mysql_repository_test.go
  • web
    • auth.go
    • handler.go
    • index.go
    • middleware/recovery
      • debug.html
      • dev.go
      • middle_test.go
      • new.go
    • res
      • error.go
      • subject.go
    • subject.go
    • subject_test.go
    • util
      • ip.go
      • ip_dev.go

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.dockerignore‎

Copy file name to clipboardExpand all lines: .dockerignore
-16Lines changed: 0 additions & 16 deletions
This file was deleted.
Collapse file

‎.editorconfig‎

Copy file name to clipboardExpand all lines: .editorconfig
-18Lines changed: 0 additions & 18 deletions
This file was deleted.
Collapse file

‎.github/actions/base/action.yaml‎

Copy file name to clipboard
+22Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Base Setup
2+
3+
description: "basic steps to setup golang tools"
4+
5+
runs:
6+
using: "composite"
7+
steps:
8+
- name: Install Go
9+
uses: actions/setup-go@v2
10+
with:
11+
go-version: "^1.17"
12+
13+
- name: Go Mod Cache
14+
uses: actions/cache@v2
15+
with:
16+
path: ~/go/pkg/mod
17+
key: ${{ runner.os }}-go-mod-1-${{ hashFiles('**/go.sum') }}
18+
restore-keys: |
19+
${{ runner.os }}-go-mod-1-
20+
21+
- run: make install
22+
shell: bash
Collapse file

‎.github/codecov.yml‎

Copy file name to clipboard
+6-13Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
coverage:
2-
precision: 1
3-
round: down
4-
range: 90...95 # custom range of coverage colors from red -> yellow -> green
5-
status:
6-
project:
7-
default:
8-
# basic
9-
target: 99%
10-
threshold: 1%
11-
12-
codecov:
13-
require_ci_to_pass: true
1+
ignore:
2+
- "**/mock_*.go"
3+
- "**/*_test.go"
4+
- "**/*.gen.go"
5+
- "dal/query/gen.go"
6+
- "cmd/gen/gorm.go"
Collapse file

‎.github/pull_request_template.md‎

Copy file name to clipboardExpand all lines: .github/pull_request_template.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
如果你的 PR 添加了新的 API,请针对每一个 API 填写以下部分
1+
<!-- 如果你的 PR 添加了新的 API,请针对每一个 API 填写以下部分 -->
22

33
<details>
44
<summary> New API Name </summary>
Collapse file

‎.github/renovate.json‎

Copy file name to clipboardExpand all lines: .github/renovate.json
+7-21Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,17 @@
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
44
"local>Trim21/renovate-config",
5-
"local>Trim21/renovate-config:monthly",
6-
"local>Trim21/renovate-config:poetry"
5+
"local>Trim21/renovate-config:monthly"
76
],
8-
"separateMajorMinor": true,
97
"separateMinorPatch": false,
10-
"rangeStrategy": "pin",
11-
"pre-commit": {
12-
"enabled": true
13-
},
8+
"separateMajorMinor": true,
9+
"separateMultipleMajor": true,
1410
"packageRules": [
1511
{
16-
"matchManagers": ["pre-commit"],
17-
"semanticCommitType": "chore",
18-
"groupName": "deps-dev",
19-
"semanticCommitScope": "dev"
20-
},
21-
{
22-
"matchManagers": ["dockerfile"],
23-
"rangeStrategy": "pin",
24-
"minor": {
25-
"enabled": false
26-
},
27-
"major": {
28-
"enabled": false
29-
}
12+
"groupName": "deps",
13+
"matchManagers": ["gomod"],
14+
"semanticCommitType": "build",
15+
"matchUpdateTypes": ["patch", "minor"]
3016
}
3117
]
3218
}
Collapse file

‎.github/workflows/build.yaml‎

Copy file name to clipboard
+40Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- go
8+
paths-ignore:
9+
- "**.md"
10+
- "**.txt"
11+
pull_request:
12+
branches:
13+
- master
14+
- go
15+
paths-ignore:
16+
- "**.md"
17+
- "**.txt"
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v2
24+
25+
- uses: ./.github/actions/base
26+
27+
- name: Go Build Cache (build)
28+
uses: actions/cache@v2
29+
with:
30+
path: |
31+
~/.cache/go-build
32+
key: ${{ runner.os }}-go-build-1-${{ hashFiles('**/go.sum') }}-build
33+
restore-keys: |
34+
${{ runner.os }}-go-build-1-${{ hashFiles('**/go.sum') }}-
35+
${{ runner.os }}-go-build-1-
36+
37+
- name: Build
38+
run: make build
39+
40+
- run: docker build .
Collapse file

‎.github/workflows/ci.yaml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci.yaml
-54Lines changed: 0 additions & 54 deletions
This file was deleted.
Collapse file

‎.github/workflows/lint-other.yaml‎

Copy file name to clipboardExpand all lines: .github/workflows/lint-other.yaml
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ on:
44
push:
55
branches:
66
- master
7+
- go
78
paths:
89
- "**.md"
910
- "**.py"
1011
- "**.yaml"
1112
- "**.yml"
1213
- "**.html"
1314
- "**.json"
14-
- "**.toml"
1515
pull_request_target:
16-
types: [opened, synchronize, ready_for_review, reopened]
16+
types: [opened, synchronize, reopened]
1717
branches:
1818
- master
1919
paths:
@@ -23,7 +23,6 @@ on:
2323
- "**.yml"
2424
- "**.html"
2525
- "**.json"
26-
- "**.toml"
2726

2827
jobs:
2928
lint-other:
@@ -32,7 +31,7 @@ jobs:
3231
- name: Install Node LTS
3332
uses: actions/setup-node@v2
3433

35-
- run: npm i -g prettier prettier-plugin-toml
34+
- run: npm i -g prettier
3635

3736
- uses: reviewdog/action-setup@v1
3837
with:
@@ -60,6 +59,6 @@ jobs:
6059
git diff >"${TMPFILE}"
6160
git reset --hard HEAD
6261
63-
reviewdog -f=diff -f.diff.strip=1 -reporter=github-pr-review < "${TMPFILE}"
62+
reviewdog -f=diff -f.diff.strip=1 -reporter=github-pr-review -tee < "${TMPFILE}"
6463
env:
6564
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Collapse file

‎.github/workflows/lint.yaml‎

Copy file name to clipboard
+24-56Lines changed: 24 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,43 @@
1-
name: lint
1+
name: Lint
22

33
on:
44
push:
5-
branches-ignore:
6-
- renovate/**
5+
branches:
6+
- master
7+
- go
78
paths-ignore:
89
- "**.md"
10+
- "**.txt"
911
pull_request:
1012
branches:
1113
- master
14+
- go
1215
paths-ignore:
1316
- "**.md"
17+
- "**.txt"
1418

1519
jobs:
16-
mypy:
17-
runs-on: ubuntu-latest
18-
steps:
19-
- uses: actions/checkout@v2
20-
21-
- uses: actions/setup-python@v2
22-
with:
23-
python-version: 3.8
24-
25-
- uses: Trim21/setup-poetry@dist/v1
26-
27-
- uses: Trim21/install-poetry-project@dist/v1
28-
29-
- uses: liskin/gh-problem-matcher-wrap@v1
30-
with:
31-
action: add
32-
linters: mypy
33-
34-
- name: mypy
35-
run: mypy --show-column-numbers pol
36-
37-
flake8:
20+
lint:
3821
runs-on: ubuntu-latest
3922
steps:
4023
- uses: actions/checkout@v2
4124

42-
- uses: actions/setup-python@v2
43-
with:
44-
python-version: 3.8
45-
46-
- uses: Trim21/setup-poetry@dist/v1
47-
48-
- uses: Trim21/install-poetry-project@dist/v1
49-
50-
- run: echo "::add-matcher::.github/workflows/matcher/flake8.json"
25+
- uses: ./.github/actions/base
5126

52-
- name: flake8
53-
run: flake8
54-
55-
pre-commit:
56-
runs-on: ubuntu-latest
57-
steps:
58-
- uses: actions/checkout@v2
59-
60-
- uses: actions/setup-python@v2
27+
- name: Go Build Cache (lint)
28+
uses: actions/cache@v2
6129
with:
62-
python-version: 3.8
63-
64-
- uses: Trim21/setup-poetry@dist/v1
65-
66-
- uses: Trim21/install-poetry-project@dist/v1
67-
68-
- uses: actions/cache@v2
30+
path: |
31+
~/.cache/go-build
32+
key: ${{ runner.os }}-go-build-1-${{ hashFiles('**/go.sum') }}-lint
33+
restore-keys: |
34+
${{ runner.os }}-go-build-1-${{ hashFiles('**/go.sum') }}-
35+
${{ runner.os }}-go-build-1-
36+
37+
- name: Run linters
38+
uses: golangci/golangci-lint-action@v2
6939
with:
70-
path: ~/.cache/pre-commit
71-
key: precommit-2-${{ env.PY }}-${{ hashFiles('.pre-commit-config.yaml') }}
72-
restore-keys: precommit-2-${{ env.PY }}-
73-
74-
- name: pre-commit
75-
run: pre-commit run --all-files --show-diff-on-failure && pre-commit gc
40+
version: v1.44.1
41+
skip-go-installation: true
42+
skip-pkg-cache: true
43+
skip-build-cache: true

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.