Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能生成中文commit message吗?如果可以要怎么做呢 #118

Open
1 task done
duzefu opened this issue Nov 4, 2024 · 6 comments
Open
1 task done

能生成中文commit message吗?如果可以要怎么做呢 #118

duzefu opened this issue Nov 4, 2024 · 6 comments
Labels
question Further information is requested

Comments

@duzefu
Copy link

duzefu commented Nov 4, 2024

Checklist

  • I've searched the project's issues.

❓ Question

How can I [...]?

Is it possible to [...]?

📎 Additional context

@duzefu duzefu added the question Further information is requested label Nov 4, 2024
Copy link

github-actions bot commented Nov 4, 2024

Hello @duzefu, thanks for your first issue and interest in our work 😊!

If this is a bug report, please provide screenshots, relevant logs and minimum viable code to reproduce your issue, which will help us debug the problem.

@Undertone0809
Copy link
Owner

可以参考 upgrade 先更新到最新版本,再读上面的文章自定义 commit 模板。

@duzefu
Copy link
Author

duzefu commented Nov 7, 2024

vscode@763f0e9ed184:/workspaces/rockchip/my1126$ git c
Traceback (most recent call last):
  File "/home/vscode/.local/bin/gcop", line 5, in <module>
    from gcop.__main__ import app
  File "/home/vscode/.local/lib/python3.8/site-packages/gcop/__main__.py", line 18, in <module>
    from gcop.config import ModelConfig, gcop_config
  File "/home/vscode/.local/lib/python3.8/site-packages/gcop/config.py", line 128, in <module>
    gcop_config = GcopConfig.from_yaml()
  File "/home/vscode/.local/lib/python3.8/site-packages/gcop/config.py", line 98, in from_yaml
    config: dict = read_yaml(config_path or cls._config_path)
  File "/home/vscode/.local/lib/python3.8/site-packages/gcop/utils/__init__.py", line 97, in read_yaml
    with open(file_path, "r", encoding="utf-8") as file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/vscode/.zeeland/gcop/config.yaml'

我用pip install gcop -U更新到了最新的版本.似乎出了问题,

vscode@763f0e9ed184:/workspaces/rockchip/my1126$ gcop init
Traceback (most recent call last):
  File "/home/vscode/.local/bin/gcop", line 5, in <module>
    from gcop.__main__ import app
  File "/home/vscode/.local/lib/python3.8/site-packages/gcop/__main__.py", line 18, in <module>
    from gcop.config import ModelConfig, gcop_config
  File "/home/vscode/.local/lib/python3.8/site-packages/gcop/config.py", line 128, in <module>
    gcop_config = GcopConfig.from_yaml()
  File "/home/vscode/.local/lib/python3.8/site-packages/gcop/config.py", line 98, in from_yaml
    config: dict = read_yaml(config_path or cls._config_path)
  File "/home/vscode/.local/lib/python3.8/site-packages/gcop/utils/__init__.py", line 97, in read_yaml
    with open(file_path, "r", encoding="utf-8") as file:
FileNotFoundError: [Errno 2] No such file or directory: '/home/vscode/.zeeland/gcop/config.yaml'

@Undertone0809
Copy link
Owner

好,我来看看

@duzefu
Copy link
Author

duzefu commented Nov 7, 2024

cp ~/.gcop/config.yaml ~/.zeeland/gcop/
我执行这个之后正常了

@Undertone0809
Copy link
Owner

感谢反馈!

对的,直接 copy 就能使用,就是那个 自动化 migrate 出了点 bug,I will fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants