{"id":16281230,"url":"https://github.com/vchrombie/grimoirelab-scripts","last_synced_at":"2025-08-16T23:45:24.571Z","repository":{"id":105088800,"uuid":"250046229","full_name":"vchrombie/grimoirelab-scripts","owner":"vchrombie","description":"automation scripts for personal use while working with @grimoirelab project","archived":false,"fork":false,"pushed_at":"2020-11-11T08:36:05.000Z","size":52,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T14:17:16.978Z","etag":null,"topics":["bitergia","chaoss","grimoirelab","grimoirelab-components"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vchrombie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-03-25T17:30:26.000Z","updated_at":"2021-04-26T22:53:58.000Z","dependencies_parsed_at":"2024-01-08T00:33:08.380Z","dependency_job_id":null,"html_url":"https://github.com/vchrombie/grimoirelab-scripts","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":"0.052631578947368474","last_synced_commit":"989384a43764e0d2363344dbb719ac95fbd08b01"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vchrombie%2Fgrimoirelab-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vchrombie%2Fgrimoirelab-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vchrombie%2Fgrimoirelab-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vchrombie%2Fgrimoirelab-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vchrombie","download_url":"https://codeload.github.com/vchrombie/grimoirelab-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247895757,"owners_count":21014379,"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":["bitergia","chaoss","grimoirelab","grimoirelab-components"],"created_at":"2024-10-10T19:05:59.080Z","updated_at":"2025-04-08T17:44:18.883Z","avatar_url":"https://github.com/vchrombie.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# grimoirelab-scripts\n\nautomation scripts for maintaining GrimoireLab.\n\n## tools\n\n### [generate-es-index-schema](generate-es-index-schema.py)\n\n#### Usage\n\nYou can use the script from the command line\n```\n$ python3 generate-es-index-schema.py index_name\n```\n\nReplace `index_name` with the required index name and check if you have varied credentials for connecting to Elasticsearch.\n\nThe initial work was done by animeshk08, [create_schema.py](https://gist.github.com/animeshk08/0a8dafa66826137032efb6c771074d1d).\n\n## setup\n\n### [glab-dev-env-setup](glab-dev-env-setup.py)\n\nA combined version of the above two scripts.\n\nWhile setting up the developer environment of the GrimoireLab, one step is to fork all the GrimoireLab components, clone them to a target local folder (e.g., sources) and each local repo should have two `remotes`: `origin` points to the forked repo, while `upstream` points to the parent repo.\n\nReference: [Cloning the repositories](https://github.com/chaoss/grimoirelab-sirmordred/blob/master/Getting-Started.md#cloning-the-repositories-)\n\nThis script automates the whole process.\n\nTo use these script, you need to install the PyGitHub and GitPython modules in the virtualenvironment (or the machine).\n```\n$ python3 -m pip install PyGitHub GitPython\n```\n\n#### Usage\n\nYou can use the script from the command line\n```\n$ python3 glab-dev-env-setup.py -c -t xxxx\n```\n\nReplace the `xxxx` with the GitHub API Token, you can get one from here [Personal Access Tokens | GitHub](https://github.com/settings/tokens/new). Make sure you have minimum **repo** access level.\n\n#### Examples\n\n* Create a folder `sources` with all the 15 GrimoireLab components forked, cloned and setting their upstream link using the GitHub API token xxxx: \n```\n$ python3 glab-dev-env-setup.py --create --token xxxx --source sources\n```\n \n* Update the existing forks present in the `sources` folder with the latest changes using the GitHub API token xxxx: \n```\n$ python3 glab-dev-env-setup.py --update --token xxxx --source sources\n```\n\n* You can use `--help`, if you need more details.\n```\n$ python3 glab-dev-env-setup.py --help\n```\n\nReference: https://gist.github.com/vchrombie/4403193198cd79e7ee0079259311f6e8\n\n#### [download-sources.sh](download-sources.sh)\n\nFor [setting up the dev-environment in PyCharm](https://github.com/chaoss/grimoirelab-sirmordred#setting-up-a-pycharm-dev-environment), we need to fork, clone and add upstream to each project. A shell script to automate this process.\n\nPython version of the same script, [glab-fork-clone-upstream.py](glab-fork-clone-upstream.py)\n\n#### [sync-local-upstream.sh](sync-local-upstream.sh)\n\nFrom time to time, we need to update the forks. A shell script to automate this process.\n\nPython version of the same script, [glab-sync-local-upstream.py](glab-sync-local-upstream.py)\n\nReferences:\n- https://gist.github.com/vchrombie/18cc5f36fe5c934067addf44a487ead9\n- https://gist.github.com/vchrombie/5593ea202e7f85d0478d2c1532ca2a9b\n\n## mariadb\n\n### [mariadb-script.sh](mariadb-script.sh)\n\nA shell script to install maria-db.\n\n### [dbscript.sh](dbscript.sh)\n\nA shell script to create the test databases in mariadb for elk tests.\n\n---\n\nIf you have any suggestion/improvements, please raise an issue or submit a PR to the scripts.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvchrombie%2Fgrimoirelab-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvchrombie%2Fgrimoirelab-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvchrombie%2Fgrimoirelab-scripts/lists"}