{"id":24929834,"url":"https://github.com/traptitech/devopsbot","last_synced_at":"2026-02-27T02:33:24.565Z","repository":{"id":44569096,"uuid":"224980727","full_name":"traPtitech/DevOpsBot","owner":"traPtitech","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-01T21:31:35.000Z","size":230,"stargazers_count":3,"open_issues_count":5,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-09T21:51:01.845Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"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/traPtitech.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":"2019-11-30T08:13:28.000Z","updated_at":"2025-03-26T15:52:35.000Z","dependencies_parsed_at":"2023-09-26T17:32:44.000Z","dependency_job_id":"f02a971b-dc09-47c7-80c5-23d9039f09f9","html_url":"https://github.com/traPtitech/DevOpsBot","commit_stats":{"total_commits":66,"total_committers":9,"mean_commits":7.333333333333333,"dds":0.6515151515151515,"last_synced_commit":"0e304a83bbcfc542be716d55be8bcad2c4277b73"},"previous_names":[],"tags_count":45,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2FDevOpsBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2FDevOpsBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2FDevOpsBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/traPtitech%2FDevOpsBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/traPtitech","download_url":"https://codeload.github.com/traPtitech/DevOpsBot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119403,"owners_count":21050754,"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":[],"created_at":"2025-02-02T13:51:59.317Z","updated_at":"2026-02-27T02:33:24.535Z","avatar_url":"https://github.com/traPtitech.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DevOpsBot\n\nChatOps を行う bot です。\n\n## 設定\n\n設定はファイルを通して行います。\n\n`CONFIG_FILE` 環境変数に設定されたパスから、設定ファイルを読み込みます。\n指定が無い場合は `./config.yaml` をデフォルトで読み込みます。\n\n### 設定ファイルの書き方\n\nすべてのコマンドは、1つの「テンプレート」を通して実行されます。\n\n`# コメント` となっている行は yaml のコメント行です。\nBot が読み取るファイルの中身には関係ありません。\n\n```yaml\n# テンプレート一覧\ntemplates:\n  - name: echo-template\n    command: |\n      #!/bin/sh\n      \n      echo test-arg1 \"$@\"\n\n# 実際に実行できるコマンド一覧\ncommands:\n    # (required) コマンドの名前 → この場合は /echo-test となる\n  - name: echo-test\n    # (required) templates で設定したテンプレートの名前\n    templateRef: echo-template\n    # (optional) /help で表示されるコマンドの説明\n    description: \"コマンドの説明\"    \n    # (optional) テンプレート実行時に、先頭に追加する引数\n    argsPrefix:\n      - test-arg2\n      - test-arg3\n    # (optional) テンプレートがユーザーからの引数をさらに必要とする場合、明示的に true と書く\n    allowArgs: true\n    # (optional) テンプレートがユーザーからの引数をさらに必要とする場合、ここにドキュメントを行う\n    argsSyntax: \"[example|extra|arg|description]\"\n    # (optional) このコマンド（とサブコマンド）を実行可能なユーザーの ID 一覧\n    # 定義しなければ、全員がこのコマンド（とサブコマンド）実行可能になります\n    operators:\n      - toki\n      - cp20\n    # (optional) サブコマンドの定義 (フィールドは一緒)\n    subCommands:\n      - name: sub-command\n        ... (省略)\n```\n\n以上の設定を反映し、`/echo-test test-arg4` と打つと、DevOpsBot のローカルで\n\n- `echo test-arg1 test-arg2 test-arg3 test-arg4`\n\nが実行されます。\n\nテンプレートの中で SSH を使ったり、npm version と git push でバージョン更新を自動化したり、様々なスクリプトを実行できます。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraptitech%2Fdevopsbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftraptitech%2Fdevopsbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftraptitech%2Fdevopsbot/lists"}