Code Monkey home page Code Monkey logo

bcanseco / github-contribution-graph-action Goto Github PK

View Code? Open in Web Editor NEW
74.0 3.0 11.0 497 KB

๐Ÿ™ˆ This GitHub action will automatically push empty commits to one of your repositories.

Home Page: https://github.com/marketplace/actions/autopopulate-your-contribution-graph

License: MIT License

Dockerfile 13.18% JavaScript 86.82%
github-actions github-action contribution-graph contributions-graph contribution-spoofing contributions-chart

github-contribution-graph-action's Introduction

github-contribution-graph-action's People

Contributors

bcanseco avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

github-contribution-graph-action's Issues

Discussion for CUSTOM_TEXT feature

CUSTOM_TEXT is currently out of scope for a feature request because the proposed solution of deleting the entire repo and recreating it for the correct contribution history on a repo is outside the permissions of GITHUB_TOKEN. However, I think it's a super cool idea & I'd love to explore it more.

Unfortunately though, commits made on a GitHub repository will always show on the graph even if those commits are later removed through a force push.

According to the github contribution docs the commits that are counted in the graph are "in the repository's default branch". My first thought was that the commit history could be added to a different branch that replaces the repo's default branch, then the original default branch is deleted.

However: at a glance, it does not seem that the token is allowed to delete anything whatsoever? And It's unclear if it's allowed to change the default branch of a repo. ๐Ÿค”

Basic configuration with multiple commits per day is failling

Using below config, the server is sending thousands of commits in less than 2 minutes.:

# .github/workflows/main.yml

on:
  push:
    branches: [ master ]

jobs:
  backfill-commits:
    runs-on: ubuntu-latest
    steps:
    - uses: bcanseco/github-contribution-graph-action@master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        GIT_EMAIL: [email protected] # replace me
        MAX_DAYS: 365
        MIN_COMMITS_PER_DAY: 1
        MAX_COMMITS_PER_DAY: 5

Expected: Maximum of 5 commits.
Tested using v1.1.0 and v1.2.0

Default branches on github are now named "main"

'backfill-commits' fails because there is no remote branch 'master' to clone in new repositories:

warning: Could not find remote branch master to clone.
fatal: Remote branch master not found in upstream origin

Workflow auto starts after first push

im using back fill graph action. after the fist commit the workflow starts and then ends successfully but after an interval it starts again and then again , it keeps on committing

im using this code below
` on: push

jobs:
backfill-commits:
runs-on: ubuntu-latest
steps:
- uses: bcanseco/github-contribution-graph-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GIT_EMAIL: [email protected] # replace me
MAX_DAYS: 365
MIN_COMMITS_PER_DAY: 1
MAX_COMMITS_PER_DAY: 5
`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.