{"id":15055467,"url":"https://github.com/emochka2007/gitlab-stats","last_synced_at":"2026-03-27T03:50:40.409Z","repository":{"id":239459598,"uuid":"799328226","full_name":"emochka2007/gitlab-stats","owner":"emochka2007","description":"GitLab Stats Display for GitHub README","archived":false,"fork":false,"pushed_at":"2024-05-12T20:19:16.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T23:26:22.225Z","etag":null,"topics":["gitlab","profile","profile-readme","statistics"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emochka2007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-11T19:55:56.000Z","updated_at":"2024-11-23T14:03:18.000Z","dependencies_parsed_at":"2024-05-12T16:50:15.475Z","dependency_job_id":"075fd81a-7256-4d62-848b-3b86412a4e84","html_url":"https://github.com/emochka2007/gitlab-stats","commit_stats":null,"previous_names":["emochka2007/gitlab-stats"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emochka2007%2Fgitlab-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emochka2007%2Fgitlab-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emochka2007%2Fgitlab-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emochka2007%2Fgitlab-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emochka2007","download_url":"https://codeload.github.com/emochka2007/gitlab-stats/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243523097,"owners_count":20304530,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gitlab","profile","profile-readme","statistics"],"created_at":"2024-09-24T21:42:26.508Z","updated_at":"2025-12-30T16:37:13.486Z","avatar_url":"https://github.com/emochka2007.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitlab-stats\n\n- **Create an Action Secret**:\n    - Navigate to the Settings of your GitHub repository.\n    - Go to the Secrets and variables section.\n    - Click on Actions and 'New repository secret'.\n    - Name the secret `GITLAB_USERNAME` and provide the appropriate GitLab username as its value.\n\n- **Add the Secret to your `README.md`**:\n    - Embed the action secret in your GitHub Actions workflow by enclosing it within the workflow file. This does not expose the secret in your `README.md`, but you can indicate where the data will appear.\n    - Edit your `README.md` to include the following section where the GitLab username will be utilized:\n\n      ```markdown\n      \u003c!--START_SECTION:emo-gitlab--\u003e\n      \u003c!--END_SECTION:emo-gitlab--\u003e\n      ```\n\n      This section can be used by a GitHub Actions workflow to insert dynamically generated content, such as statistics or updates related to the GitLab username stored in your secret.\n\n- **Add workflow to your profile repo `.github/workflows`**:\n    ```markdown\n  name: Gitlab Stats update\n  on:\n    workflow_dispatch:\n    schedule:\n        - cron: \"0 0 * * *\"\n\n  jobs:\n    update-readme:\n        runs-on: ubuntu-latest\n\n\n    steps:\n      - name: Checkout ${{ github.event.repository.name }} repository\n        uses: actions/checkout@v2\n        with:\n          path: ${{ github.event.repository.name }}\n\n      - name: Checkout gitlab-stats repository\n        uses: actions/checkout@v2\n        with:\n          repository: 'emochka2007/gitlab-stats'\n          token: ${{ secrets.GITHUB_TOKEN }}   # Use a GitHub Secret for the token\n          path: 'gitlab_stats'\n\n      - name: Set up Rust\n        uses: actions-rs/toolchain@v1\n        with:\n          toolchain: stable\n          profile: minimal\n          override: true\n\n      - name: Build and run Rust application\n        run: cargo run ${{ secrets.GITLAB_USERNAME }} \u003e ../${{ github.event.repository.name }}/output.md\n        working-directory: gitlab_stats\n\n      - name: Update README\n        run: |\n            sed -i '/^\u003c!--START_SECTION:emo-gitlab--\u003e$/,/^\u003c!--END_SECTION:emo-gitlab--\u003e/{//!d;}' README.md\n            sed -i '/^\u003c!--START_SECTION:emo-gitlab--\u003e/r ./output.md' README.md\n        working-directory: ${{ github.event.repository.name }}\n\n      - name: Commit and push changes\n        run: |\n            git config --global user.name ${{ github.actor }}\n            git config user.email \"${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com\"\n            git add README.md\n            git commit -m \"Updated README with new stats\"\n            git push\n        working-directory: ${{ github.event.repository.name }}\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femochka2007%2Fgitlab-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femochka2007%2Fgitlab-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femochka2007%2Fgitlab-stats/lists"}