{"id":15470433,"url":"https://github.com/yuyaban/gitlab-comment","last_synced_at":"2025-04-22T12:10:00.665Z","repository":{"id":65810572,"uuid":"600336222","full_name":"yuyaban/gitlab-comment","owner":"yuyaban","description":"About gitlab-comment is a CLI command to post Merge Request Note.","archived":false,"fork":false,"pushed_at":"2024-05-22T11:49:22.000Z","size":939,"stargazers_count":14,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T12:09:26.755Z","etag":null,"topics":["devops","gitlab","gitlab-ci"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuyaban.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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},"funding":{"github":["yuyaban"]}},"created_at":"2023-02-11T06:57:55.000Z","updated_at":"2024-08-11T16:05:25.000Z","dependencies_parsed_at":"2024-05-21T03:23:18.569Z","dependency_job_id":"3993df4c-d541-4b96-a4c5-6f4e6329776e","html_url":"https://github.com/yuyaban/gitlab-comment","commit_stats":{"total_commits":947,"total_committers":16,"mean_commits":59.1875,"dds":0.658922914466737,"last_synced_commit":"8990cc6291fb5f951653188d874187f63ed8aeea"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuyaban%2Fgitlab-comment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuyaban%2Fgitlab-comment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuyaban%2Fgitlab-comment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuyaban%2Fgitlab-comment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuyaban","download_url":"https://codeload.github.com/yuyaban/gitlab-comment/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250237832,"owners_count":21397401,"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":["devops","gitlab","gitlab-ci"],"created_at":"2024-10-02T02:04:39.147Z","updated_at":"2025-04-22T12:10:00.648Z","avatar_url":"https://github.com/yuyaban.png","language":"Go","readme":"# gitlab-comment\n\n[![Build Status](https://github.com/yuyaban/gitlab-comment/workflows/test/badge.svg)](https://github.com/yuyaban/gitlab-comment/actions)\n[![Go Report Card](https://goreportcard.com/badge/github.com/yuyaban/gitlab-comment)](https://goreportcard.com/report/github.com/yuyaban/gitlab-comment)\n[![GitHub last commit](https://img.shields.io/github/last-commit/yuyaban/gitlab-comment.svg)](https://github.com/yuyaban/gitlab-comment)\n[![License](http://img.shields.io/badge/license-mit-blue.svg?style=flat-square)](https://raw.githubusercontent.com/yuyaban/gitlab-comment/main/LICENSE)\n\nCLI to create GitLab Notes by GitLab REST API  \nFork of [suzuki-shunsuke/github-comment](https://github.com/suzuki-shunsuke/github-comment), supporting GitLab (dropped GitHub support).\n\n## Document\n### Prerequisites\n* Create and store GitLab access token in  [project or group CI variables](https://docs.gitlab.com/ee/ci/variables/#add-a-cicd-variable-to-a-project) with key name `GITLAB_TOKEN` or `GITLAB_ACCESS_TOKEN`.  \n  ref: [Project access tokens | GitLab](https://docs.gitlab.com/ee/user/project/settings/project_access_tokens.html)\n* When using the post command, a default template is not provided, so you must provide configuration file.  \n  The configuration file name must be one of the following.  \n  * .gitlab-comment.yml (or gitlab-comment.yml)\n  * .gitlab-comment.yaml (or gitlab-comment.yaml)\n\nBasic Comamnds are follows:\n\n```shell\n# post\ngithub-comment post -k hello\n# post: Enable updateCondition\ngithub-comment post -k hello -u 'Comment.HasMeta \u0026\u0026 Comment.Meta.TemplateKey == \"hello\"' --var target:\"${CI_JOB_NAME}\"\n\n# exec\ngithub-comment exec -k hello -- echo \"this is comment\"\n# exec: Enable updateCondition\ngithub-comment exec -k hello -u 'Comment.HasMeta \u0026\u0026 Comment.Meta.TemplateKey == \"hello\"' --var target:\"${CI_JOB_NAME}\" -- echo \"this is comment\"\n```\n\nA concrete example of gitlab-comment configuration running on GitLab CI can be found in [.gitlab-ci.yml](example.gitlab-ci.yml).\n\nAnd, See also [the original documentation (suzuki-shunsuke/github-comment)](https://suzuki-shunsuke.github.io/github-comment/).\n## License\n\n[MIT](LICENSE)\n","funding_links":["https://github.com/sponsors/yuyaban"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuyaban%2Fgitlab-comment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuyaban%2Fgitlab-comment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuyaban%2Fgitlab-comment/lists"}