V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
channg01
V2EX  ›  程序员

自动生成 github Contribution 工具,包括过去的空缺

  •  
  •   channg01 · 2019-04-04 12:10:41 +08:00 · 2712 次点击
    这是一个创建于 1820 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://github.com/channg/gayhub

    你只需要进入一个本地 github 仓库

    然后运行 npx gayhub (需要先安装 nodejs )

    然后你 contribution 就都变得圆满了

    14 条回复    2019-04-05 09:43:04 +08:00
    paoloo
        1
    paoloo  
       2019-04-04 12:14:00 +08:00 via Android
    为何过去的也变绿了?原理是啥?
    via
        2
    via  
       2019-04-04 12:29:41 +08:00 via iPhone
    我也写过一个一模一样的工具 😅 https://github.com/Jaggle/Gitfool
    Kilerd
        3
    Kilerd  
       2019-04-04 12:34:42 +08:00 via iPhone
    @paoloo GIT 可以修改提交时间
    channg01
        4
    channg01  
    OP
       2019-04-04 12:49:04 +08:00
    @via 😅😅
    channg01
        5
    channg01  
    OP
       2019-04-04 12:50:09 +08:00
    @via 准备后面支持画心形 写字母数字 功能
    paoloo
        6
    paoloo  
       2019-04-04 13:08:27 +08:00 via Android
    @Kilerd 这是 contribution 不是 commit 呀,不应该是 push 时间吗?
    EvilCult
        7
    EvilCult  
       2019-04-04 13:28:21 +08:00
    @paoloo

    Commits will appear on your contributions graph if they meet all of the following conditions:

    The email address used for the commits is associated with your GitHub account.
    The commits were made in a standalone repository, not a fork.
    The commits were made:

    In the repository's default branch (usually master)
    In the gh-pages branch (for repositories with Project Pages sites)
    In addition, at least one of the following must be true:

    You are a collaborator on the repository or are a member of the organization that owns the repository.
    You have forked the repository.
    You have opened a pull request or issue in the repository.
    You have starred the repository.

    更详细可见: https://help.github.com/en/articles/why-are-my-contributions-not-showing-up-on-my-profile#contributions-that-are-counted
    Jonz
        8
    Jonz  
       2019-04-04 15:26:51 +08:00
    已使用。。会被举报吗。。。。
    channg01
        9
    channg01  
    OP
       2019-04-04 15:32:48 +08:00
    @Jonz 为啥要举报。。。。
    Vegetable
        10
    Vegetable  
       2019-04-04 15:34:06 +08:00
    哈哈哈,这玩意还是不要流行了吧,不然我怕 github 把个功能关了
    Jonz
        11
    Jonz  
       2019-04-04 15:39:43 +08:00
    @channg01 2L 那个项目底部说了
    WARNING
    you may be reported for abusing if you push these commits to Github.
    azhangbing
        12
    azhangbing  
       2019-04-04 18:05:14 +08:00 via iPhone
    哈哈哈 晚上试试
    JohnWick
        13
    JohnWick  
       2019-04-05 00:04:36 +08:00
    哈哈,厉害
    limbo0
        14
    limbo0  
       2019-04-05 09:43:04 +08:00 via Android
    @Vegetable 已经好多轮子了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1446 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:25 · PVG 01:25 · LAX 10:25 · JFK 13:25
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.