Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gowee/sync-contrib-calendar-action

πŸ’‘Light the contribution graph 🟩⬜🟦 by syncing activities from GitLab, LeetCode, MediaWiki, etc., with the help of GitHub Actions
https://github.com/gowee/sync-contrib-calendar-action

contribution-calendar contribution-graph github-actions gitlab leetcode wikipedia

Last synced: 7 days ago
JSON representation

πŸ’‘Light the contribution graph 🟩⬜🟦 by syncing activities from GitLab, LeetCode, MediaWiki, etc., with the help of GitHub Actions

Awesome Lists containing this project

README

        

[![Build and Test workflow status badge](https://github.com/Gowee/sync-contrib-calendar-action/workflows/Build%20and%20Test/badge.svg)](https://github.com/Gowee/sync-contrib-calendar-action/actions)
[![Relese version badge](https://img.shields.io/github/v/release/Gowee/sync-contrib-calendar-action.svg)](https://github.com/Gowee/intray/releases/)

# Sync Contrib Calendar Action
A :octocat:πŸ”€ GitHub action that helps grabs activities from GitLab, LeetCode, etc., to populate the contribution calendar graph on GitHub.

## What the action actually does?
For every contribution/activity on other platforms, it accordingly creates an emtpy commit at that time point to light (or deepen the color of) a little square on the contribution graph.

## Setup
Create a new empty repository and activate the action by applying the following MVP workflow (e.g. into `.github/workflows/sync-gitlab.yml`). After that, manually trigger the workflow in the Action tab.

```yml
on:
workflow_dispatch

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: gowee/[email protected]
with:
source: gitlab
username: SOME_USERNAME
```
The above workflow is intentionally simplified.

For __a complete workflow__ that runs on schedule automatically, refer to [examples](https://github.com/Gowee/sync-contrib-calendar-action/tree/main/examples).

## Notes
### Security
The action has access to the the [GitHub token](https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token) provided automatically by the GitHub Action runtime, so that to push commits without requiring manual configuration.
Outgoing requests are made only to fetch actitivies from data sources such as GitLab.
But be reminded that the software is provided as-is, with NO WARRANTY.

### Caveat
The action is not well tested, which, in the worst cases, may result in tons of repeated commits unexpectedly.
It is strongly recommended to create a new repository for the action to work separately.