How bcanseco/github-contribution-graph-action works
This GitHub Action creates contribution-graph commits in a configured repository. The workflow reads and parses environment settings, prepares a local clone or fresh repository, selects eligible dates and randomized commit counts, creates empty dated commits, then pushes them to the configured branch. The source excerpts show the orchestration and random helper; README documents the supported configuration options. External GitHub Actions inputs and the Git remote are represented separately.
Main entry points: src/index.js Environment configuration · random/index.js Random commit count
Components 8
Action workflow
- Environment configuration
src/index.js
Commit generation
- Date selection
src/index.js - Random commit count
src/random/index.js - Empty commit creation
src/index.js
Repository access
- Local repository setup
src/index.js - Branch push
src/index.js
Other components
- GitHub Actions runner
- Git remote repository
Connections 9
- GitHub Actions runner → Environment configuration: provides variables
README.md - Environment configuration → Local repository setup: configures repository
src/index.js - Environment configuration → Date selection: sets date range
src/index.js - Date selection → Random commit count: requests count
src/index.js - Random commit count → Empty commit creation: returns count
src/index.js - Local repository setup → Git remote repository: clones repository
src/index.js - Empty commit creation → Local repository setup: writes commits
src/index.js - Branch push → Git remote repository: pushes branch
src/index.js - Environment configuration → Branch push: sets push options
src/index.js