Open6

GitHub

yorifujiyorifuji

slackで通知を受け取る

/github subscribe owner/repo

workflowの実行だけ受け取る

/github subscribe owner/repo workflows:{event:"pull_request", "push", "workflow_dispatch", "schedule"}
/github unsubscribe owner/repo issues pulls commits releases deployments

subscribeしている内容を表示する

/github subscribe list features

https://github.com/integrations/slack

https://github.blog/changelog/2022-12-06-github-actions-workflow-notifications-in-slack-and-microsoft-teams/

yorifujiyorifuji

コメントが付与されたコメントを調べる

venus~(:|✔) % gh api \
  -H "Accept: application/vnd.github+json" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  /repos/yorifuji/flutter-analyze-commenter-ci/pulls/1080/comments | jq | less
[
  {
    "url": "https://api.github.com/repos/yorifuji/flutter-analyze-commenter-ci/pulls/comments/1518833508",
    "pull_request_review_id": 1926522250,
    "id": 1518833508,
    "node_id": "PRRC_kwDOKs6Mcc5ah49k",
    "diff_hunk": "@@ -1,6 +1,7 @@\n import 'package:flutter/material.dart';\n \n void main() {\n+  final String x = 0;",
    "path": "lib/main.dart",
    "commit_id": "6e1faa6e27f1f9919dd3da92c8baabeecd28a19f",
    "original_commit_id": "6e1faa6e27f1f9919dd3da92c8baabeecd28a19f",
    "user": {
      "login": "github-actions[bot]",
      "id": 41898282,
      "node_id": "MDM6Qm90NDE4OTgyODI=",
      "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/github-actions%5Bbot%5D",
      "html_url": "https://github.com/apps/github-actions",
      "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
      "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
      "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
      "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
      "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
      "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
      "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
      "type": "Bot",
      "site_admin": false
    },
    "body": "<table><thead><tr><th>Level</th><th>Message</th></tr></thead><tbody><tr><td>❌</td><td>A value of type 'int' can't be assigned to a variable of type 'String'</td></tr><tr><td>⚠️</td><td>The value of the local variable 'x' isn't used</td></tr><tr><td>ℹ️</td><td>Use 'const' for final variables initialized to a constant value</td></tr></tbody></table><!-- Flutter Analyze Commenter: issue -->",
    "created_at": "2024-03-10T12:06:17Z",
    "updated_at": "2024-03-10T12:06:17Z",
    "html_url": "https://github.com/yorifuji/flutter-analyze-commenter-ci/pull/1080#discussion_r1518833508",
    "pull_request_url": "https://api.github.com/repos/yorifuji/flutter-analyze-commenter-ci/pulls/1080",
    "author_association": "NONE",
    "_links": {
      "self": {
        "href": "https://api.github.com/repos/yorifuji/flutter-analyze-commenter-ci/pulls/comments/1518833508"
      },
      "html": {
        "href": "https://github.com/yorifuji/flutter-analyze-commenter-ci/pull/1080#discussion_r1518833508"
      },
      "pull_request": {
        "href": "https://api.github.com/repos/yorifuji/flutter-analyze-commenter-ci/pulls/1080"
      }
    },
    "reactions": {
      "url": "https://api.github.com/repos/yorifuji/flutter-analyze-commenter-ci/pulls/comments/1518833508/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "start_line": null,
    "original_start_line": null,
    "start_side": null,
    "line": 4,
    "original_line": 4,
    "side": "RIGHT",
    "original_position": 4,
    "position": 4,
    "subject_type": "line"
  },
  {
    "url": "https://api.github.com/repos/yorifuji/flutter-analyze-commenter-ci/pulls/comments/1518833671",
    "pull_request_review_id": 1926522434,
    "id": 1518833671,
    "node_id": "PRRC_kwDOKs6Mcc5ah5AH",
    "diff_hunk": "@@ -1,6 +1,7 @@\n import 'package:flutter/material.dart';\n \n void main() {\n+  final String x = 0;",
    "path": "lib/main.dart",
    "commit_id": "6e1faa6e27f1f9919dd3da92c8baabeecd28a19f",
    "original_commit_id": "6e1faa6e27f1f9919dd3da92c8baabeecd28a19f",
    "user": {
      "login": "yorifuji",
      "id": 583917,
      "node_id": "MDQ6VXNlcjU4MzkxNw==",
      "avatar_url": "https://avatars.githubusercontent.com/u/583917?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/yorifuji",
      "html_url": "https://github.com/yorifuji",
      "followers_url": "https://api.github.com/users/yorifuji/followers",
      "following_url": "https://api.github.com/users/yorifuji/following{/other_user}",
      "gists_url": "https://api.github.com/users/yorifuji/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/yorifuji/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/yorifuji/subscriptions",
      "organizations_url": "https://api.github.com/users/yorifuji/orgs",
      "repos_url": "https://api.github.com/users/yorifuji/repos",
      "events_url": "https://api.github.com/users/yorifuji/events{/privacy}",
      "received_events_url": "https://api.github.com/users/yorifuji/received_events",
      "type": "User",
      "site_admin": false
    },
    "body": "test2",
    "created_at": "2024-03-10T12:07:09Z",
    "updated_at": "2024-03-10T12:07:10Z",
    "html_url": "https://github.com/yorifuji/flutter-analyze-commenter-ci/pull/1080#discussion_r1518833671",
    "pull_request_url": "https://api.github.com/repos/yorifuji/flutter-analyze-commenter-ci/pulls/1080",
    "author_association": "OWNER",
    "_links": {
      "self": {
        "href": "https://api.github.com/repos/yorifuji/flutter-analyze-commenter-ci/pulls/comments/1518833671"
      },
      "html": {
        "href": "https://github.com/yorifuji/flutter-analyze-commenter-ci/pull/1080#discussion_r1518833671"
      },
      "pull_request": {
        "href": "https://api.github.com/repos/yorifuji/flutter-analyze-commenter-ci/pulls/1080"
      }
    },
    "reactions": {
      "url": "https://api.github.com/repos/yorifuji/flutter-analyze-commenter-ci/pulls/comments/1518833671/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "start_line": null,
    "original_start_line": null,
    "start_side": null,
    "line": 4,
    "original_line": 4,
    "side": "RIGHT",
    "in_reply_to_id": 1518833508,
    "original_position": 4,
    "position": 4,
    "subject_type": "line"
  },
  {
    "url": "https://api.github.com/repos/yorifuji/flutter-analyze-commenter-ci/pulls/comments/1518834508",
    "pull_request_review_id": 1926523216,
    "id": 1518834508,
    "node_id": "PRRC_kwDOKs6Mcc5ah5NM",
    "diff_hunk": "@@ -1,6 +1,7 @@\n import 'package:flutter/material.dart';\n \n void main() {\n+  final String x = 0;",
    "path": "lib/main.dart",
    "commit_id": "6e1faa6e27f1f9919dd3da92c8baabeecd28a19f",
    "original_commit_id": "6e1faa6e27f1f9919dd3da92c8baabeecd28a19f",
    "user": {
      "login": "yorifuji",
      "id": 583917,
      "node_id": "MDQ6VXNlcjU4MzkxNw==",
      "avatar_url": "https://avatars.githubusercontent.com/u/583917?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/yorifuji",
      "html_url": "https://github.com/yorifuji",
      "followers_url": "https://api.github.com/users/yorifuji/followers",
      "following_url": "https://api.github.com/users/yorifuji/following{/other_user}",
      "gists_url": "https://api.github.com/users/yorifuji/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/yorifuji/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/yorifuji/subscriptions",
      "organizations_url": "https://api.github.com/users/yorifuji/orgs",
      "repos_url": "https://api.github.com/users/yorifuji/repos",
      "events_url": "https://api.github.com/users/yorifuji/events{/privacy}",
      "received_events_url": "https://api.github.com/users/yorifuji/received_events",
      "type": "User",
      "site_admin": false
    },
    "body": "test3",
    "created_at": "2024-03-10T12:11:32Z",
    "updated_at": "2024-03-10T12:11:33Z",
    "html_url": "https://github.com/yorifuji/flutter-analyze-commenter-ci/pull/1080#discussion_r1518834508",
    "pull_request_url": "https://api.github.com/repos/yorifuji/flutter-analyze-commenter-ci/pulls/1080",
    "author_association": "OWNER",
    "_links": {
      "self": {
        "href": "https://api.github.com/repos/yorifuji/flutter-analyze-commenter-ci/pulls/comments/1518834508"
      },
      "html": {
        "href": "https://github.com/yorifuji/flutter-analyze-commenter-ci/pull/1080#discussion_r1518834508"
      },
      "pull_request": {
        "href": "https://api.github.com/repos/yorifuji/flutter-analyze-commenter-ci/pulls/1080"
      }
    },
    "reactions": {
      "url": "https://api.github.com/repos/yorifuji/flutter-analyze-commenter-ci/pulls/comments/1518834508/reactions",
      "total_count": 0,
      "+1": 0,
      "-1": 0,
      "laugh": 0,
      "hooray": 0,
      "confused": 0,
      "heart": 0,
      "rocket": 0,
      "eyes": 0
    },
    "start_line": null,
    "original_start_line": null,
    "start_side": null,
    "line": 4,
    "original_line": 4,
    "side": "RIGHT",
    "in_reply_to_id": 1518833508,
    "original_position": 4,
    "position": 4,
    "subject_type": "line"
  }
]

in_reply_to_id が親となるコメント

yorifujiyorifuji

個人が複数の無料GitHubアカウントを保有することは利用規約で禁止されている

1 人の個人または 1 法人が維持できる無料アカウントは 1 つのみです (マシン アカウントを管理することを選択することもできますが、アカウントはマシンを実行するためにのみ使用できます)。
https://docs.github.com/ja/site-policy/github-terms/github-terms-of-service

ただし無料個人アカウントの他に無料マシン アカウントを 1 つだけ維持できる

マシン アカウントは、アカウントのために利用条件に同意し、有効な電子メール アドレスを提供し、その行動に責任を負う個人によって開設されます。 マシン アカウントは、自動化タスクを実行するためだけに使用されます。 複数のユーザーがマシン アカウントのアクションを指示できますが、アカウントのオーナーはマシンのアクションに対して最終的な責任を負います。 お客様は、無料個人アカウントの他に無料マシン アカウントを 1 つだけ維持できます。

その他の選択肢

https://techblog.zozo.com/entry/github_sso