0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

GithubActionのマージ時のgithubコンテキストのペイロード

Posted at

GithubActionで、マージ時にマージ者の情報を使って通知したかったが、
どこから取ればいいかわからなかったため記載。

run: echo '${{ toJSON(github) }}'で取れるのだが、いちいちマージしてそこにワークフロー仕込んでとかやるのが面倒くさかったんで、記載

今回は
https://docs.github.com/ja/developers/webhooks-and-events/webhooks/webhook-events-and-payloads?actionType=closed#pull_request
にあるようなA GitHub userの情報の型を知って、それをどうやって取るか知りたかった

まずはA GitHub userのペイロード例(payload)

      "merged_by": {
        "avatar_url": "xxxx",
        "events_url": "https://api.github.com/users/setsumaru1992/events{/privacy}",
        "followers_url": "https://api.github.com/users/setsumaru1992/followers",
        "following_url": "https://api.github.com/users/setsumaru1992/following{/other_user}",
        "gists_url": "https://api.github.com/users/setsumaru1992/gists{/gist_id}",
        "gravatar_id": "",
        "html_url": "https://github.com/setsumaru1992",
        "id": xxxx,
        "login": "setsumaru1992",
        "node_id": "xxxxx",
        "organizations_url": "https://api.github.com/users/setsumaru1992/orgs",
        "received_events_url": "https://api.github.com/users/setsumaru1992/received_events",
        "repos_url": "https://api.github.com/users/setsumaru1992/repos",
        "site_admin": false,
        "starred_url": "https://api.github.com/users/setsumaru1992/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/setsumaru1992/subscriptions",
        "type": "User",
        "url": "https://api.github.com/users/setsumaru1992"
      },

次にこれを含むgithubコンテキスト(単なるrun: echo '${{ toJSON(github) }}'の結果)
結局${{ github.event.pull_request.merged_by.login }}でマージ者の名前がわかることがわかった

{
  "token": "***",
  "job": "Execute-Top-Level-Action",
  "ref": "main",
  "sha": "xxxx",
  "repository": "setsumaru1992/xxxx",
  "repository_owner": "setsumaru1992",
  "repository_owner_id": "xxxx",
  "repositoryUrl": "git://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits.git",
  "run_id": "xxxx",
  "run_number": "13",
  "retention_days": "90",
  "run_attempt": "1",
  "artifact_cache_size_limit": "10",
  "repository_visibility": "public",
  "repository_id": "xxxx",
  "actor_id": "xxxx",
  "actor": "setsumaru1992",
  "triggering_actor": "setsumaru1992",
  "workflow": "Execute Top Level Action",
  "head_ref": "some-branch-202212281216",
  "base_ref": "main",
  "event_name": "pull_request",
  "event": {
    "action": "closed",
    "number": 8,
    "pull_request": {
      "_links": {
        "comments": {
          "href": "xxxx"
        },
        "commits": {
          "href": "xxxx"
        },
        "html": {
          "href": "xxxx"
        },
        "issue": {
          "href": "xxxx"
        },
        "review_comment": {
          "href": "xxxx"
        },
        "review_comments": {
          "href": "xxxx"
        },
        "self": {
          "href": "xxxx"
        },
        "statuses": {
          "href": "xxxx"
        }
      },
      "active_lock_reason": null,
      "additions": 3,
      "assignee": null,
      "assignees": [],
      "author_association": "OWNER",
      "auto_merge": null,
      "base": {
        "label": "setsumaru1992:main",
        "ref": "main",
        "repo": {
          "allow_auto_merge": false,
          "allow_forking": true,
          "allow_merge_commit": true,
          "allow_rebase_merge": true,
          "allow_squash_merge": true,
          "allow_update_branch": false,
          "archive_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/{archive_format}{/ref}",
          "archived": false,
          "assignees_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/assignees{/user}",
          "blobs_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/git/blobs{/sha}",
          "branches_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/branches{/branch}",
          "clone_url": "https://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits.git",
          "collaborators_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/collaborators{/collaborator}",
          "comments_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/comments{/number}",
          "commits_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/commits{/sha}",
          "compare_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/compare/{base}...{head}",
          "contents_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/contents/{+path}",
          "contributors_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/contributors",
          "created_at": "2022-12-27T06:11:05Z",
          "default_branch": "main",
          "delete_branch_on_merge": false,
          "deployments_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/deployments",
          "description": null,
          "disabled": false,
          "downloads_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/downloads",
          "events_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/events",
          "fork": false,
          "forks": 0,
          "forks_count": 0,
          "forks_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/forks",
          "full_name": "setsumaru1992/notify_test_file_update_between_latest_two_merge_commits",
          "git_commits_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/git/commits{/sha}",
          "git_refs_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/git/refs{/sha}",
          "git_tags_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/git/tags{/sha}",
          "git_url": "git://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits.git",
          "has_discussions": false,
          "has_downloads": true,
          "has_issues": true,
          "has_pages": false,
          "has_projects": true,
          "has_wiki": true,
          "homepage": null,
          "hooks_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/hooks",
          "html_url": "https://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits",
          "id": xxxx,
          "is_template": false,
          "issue_comment_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/issues/comments{/number}",
          "issue_events_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/issues/events{/number}",
          "issues_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/issues{/number}",
          "keys_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/keys{/key_id}",
          "labels_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/labels{/name}",
          "language": "Ruby",
          "languages_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/languages",
          "license": null,
          "merge_commit_message": "PR_TITLE",
          "merge_commit_title": "MERGE_MESSAGE",
          "merges_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/merges",
          "milestones_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/milestones{/number}",
          "mirror_url": null,
          "name": "notify_test_file_update_between_latest_two_merge_commits",
          "node_id": "R_kgDOIrjHKA",
          "notifications_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/notifications{?since,all,participating}",
          "open_issues": 0,
          "open_issues_count": 0,
          "owner": {
            "avatar_url": "https://avatars.githubusercontent.com/u/44469281?v=4",
            "events_url": "https://api.github.com/users/setsumaru1992/events{/privacy}",
            "followers_url": "https://api.github.com/users/setsumaru1992/followers",
            "following_url": "https://api.github.com/users/setsumaru1992/following{/other_user}",
            "gists_url": "https://api.github.com/users/setsumaru1992/gists{/gist_id}",
            "gravatar_id": "",
            "html_url": "https://github.com/setsumaru1992",
            "id": xxxx,
            "login": "setsumaru1992",
            "node_id": "xxxx",
            "organizations_url": "https://api.github.com/users/setsumaru1992/orgs",
            "received_events_url": "https://api.github.com/users/setsumaru1992/received_events",
            "repos_url": "https://api.github.com/users/setsumaru1992/repos",
            "site_admin": false,
            "starred_url": "https://api.github.com/users/setsumaru1992/starred{/owner}{/repo}",
            "subscriptions_url": "https://api.github.com/users/setsumaru1992/subscriptions",
            "type": "User",
            "url": "https://api.github.com/users/setsumaru1992"
          },
          "private": false,
          "pulls_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/pulls{/number}",
          "pushed_at": "2022-12-28T03:19:30Z",
          "releases_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/releases{/id}",
          "size": 26,
          "squash_merge_commit_message": "COMMIT_MESSAGES",
          "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
          "ssh_url": "git@github.com:setsumaru1992/notify_test_file_update_between_latest_two_merge_commits.git",
          "stargazers_count": 0,
          "stargazers_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/stargazers",
          "statuses_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/statuses/{sha}",
          "subscribers_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/subscribers",
          "subscription_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/subscription",
          "svn_url": "https://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits",
          "tags_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/tags",
          "teams_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/teams",
          "topics": [],
          "trees_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/git/trees{/sha}",
          "updated_at": "2022-12-27T11:50:45Z",
          "url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits",
          "use_squash_pr_title_as_default": false,
          "visibility": "public",
          "watchers": 0,
          "watchers_count": 0,
          "web_commit_signoff_required": false
        },
        "sha": "8d747903dc55d9f8397efd30df9c01bbb59e31a8",
        "user": {
          "avatar_url": "https://avatars.githubusercontent.com/u/44469281?v=4",
          "events_url": "https://api.github.com/users/setsumaru1992/events{/privacy}",
          "followers_url": "https://api.github.com/users/setsumaru1992/followers",
          "following_url": "https://api.github.com/users/setsumaru1992/following{/other_user}",
          "gists_url": "https://api.github.com/users/setsumaru1992/gists{/gist_id}",
          "gravatar_id": "",
          "html_url": "https://github.com/setsumaru1992",
          "id": xxxx,
          "login": "setsumaru1992",
          "node_id": "xxxx",
          "organizations_url": "https://api.github.com/users/setsumaru1992/orgs",
          "received_events_url": "https://api.github.com/users/setsumaru1992/received_events",
          "repos_url": "https://api.github.com/users/setsumaru1992/repos",
          "site_admin": false,
          "starred_url": "https://api.github.com/users/setsumaru1992/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/setsumaru1992/subscriptions",
          "type": "User",
          "url": "https://api.github.com/users/setsumaru1992"
        }
      },
      "body": null,
      "changed_files": 1,
      "closed_at": "2022-12-28T03:19:30Z",
      "comments": 0,
      "comments_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/issues/8/comments",
      "commits": 1,
      "commits_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/pulls/8/commits",
      "created_at": "2022-12-28T03:19:26Z",
      "deletions": 0,
      "diff_url": "https://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/pull/8.diff",
      "draft": false,
      "head": {
        "label": "setsumaru1992:some-branch-202212281216",
        "ref": "some-branch-202212281216",
        "repo": {
          "allow_auto_merge": false,
          "allow_forking": true,
          "allow_merge_commit": true,
          "allow_rebase_merge": true,
          "allow_squash_merge": true,
          "allow_update_branch": false,
          "archive_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/{archive_format}{/ref}",
          "archived": false,
          "assignees_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/assignees{/user}",
          "blobs_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/git/blobs{/sha}",
          "branches_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/branches{/branch}",
          "clone_url": "https://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits.git",
          "collaborators_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/collaborators{/collaborator}",
          "comments_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/comments{/number}",
          "commits_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/commits{/sha}",
          "compare_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/compare/{base}...{head}",
          "contents_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/contents/{+path}",
          "contributors_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/contributors",
          "created_at": "2022-12-27T06:11:05Z",
          "default_branch": "main",
          "delete_branch_on_merge": false,
          "deployments_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/deployments",
          "description": null,
          "disabled": false,
          "downloads_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/downloads",
          "events_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/events",
          "fork": false,
          "forks": 0,
          "forks_count": 0,
          "forks_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/forks",
          "full_name": "setsumaru1992/notify_test_file_update_between_latest_two_merge_commits",
          "git_commits_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/git/commits{/sha}",
          "git_refs_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/git/refs{/sha}",
          "git_tags_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/git/tags{/sha}",
          "git_url": "git://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits.git",
          "has_discussions": false,
          "has_downloads": true,
          "has_issues": true,
          "has_pages": false,
          "has_projects": true,
          "has_wiki": true,
          "homepage": null,
          "hooks_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/hooks",
          "html_url": "https://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits",
          "id": xxxx,
          "is_template": false,
          "issue_comment_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/issues/comments{/number}",
          "issue_events_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/issues/events{/number}",
          "issues_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/issues{/number}",
          "keys_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/keys{/key_id}",
          "labels_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/labels{/name}",
          "language": "Ruby",
          "languages_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/languages",
          "license": null,
          "merge_commit_message": "PR_TITLE",
          "merge_commit_title": "MERGE_MESSAGE",
          "merges_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/merges",
          "milestones_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/milestones{/number}",
          "mirror_url": null,
          "name": "notify_test_file_update_between_latest_two_merge_commits",
          "node_id": "R_kgDOIrjHKA",
          "notifications_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/notifications{?since,all,participating}",
          "open_issues": 0,
          "open_issues_count": 0,
          "owner": {
            "avatar_url": "https://avatars.githubusercontent.com/u/44469281?v=4",
            "events_url": "https://api.github.com/users/setsumaru1992/events{/privacy}",
            "followers_url": "https://api.github.com/users/setsumaru1992/followers",
            "following_url": "https://api.github.com/users/setsumaru1992/following{/other_user}",
            "gists_url": "https://api.github.com/users/setsumaru1992/gists{/gist_id}",
            "gravatar_id": "",
            "html_url": "https://github.com/setsumaru1992",
            "id": xxxx,
            "login": "setsumaru1992",
            "node_id": "xxxx",
            "organizations_url": "https://api.github.com/users/setsumaru1992/orgs",
            "received_events_url": "https://api.github.com/users/setsumaru1992/received_events",
            "repos_url": "https://api.github.com/users/setsumaru1992/repos",
            "site_admin": false,
            "starred_url": "https://api.github.com/users/setsumaru1992/starred{/owner}{/repo}",
            "subscriptions_url": "https://api.github.com/users/setsumaru1992/subscriptions",
            "type": "User",
            "url": "https://api.github.com/users/setsumaru1992"
          },
          "private": false,
          "pulls_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/pulls{/number}",
          "pushed_at": "2022-12-28T03:19:30Z",
          "releases_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/releases{/id}",
          "size": 26,
          "squash_merge_commit_message": "COMMIT_MESSAGES",
          "squash_merge_commit_title": "COMMIT_OR_PR_TITLE",
          "ssh_url": "git@github.com:setsumaru1992/notify_test_file_update_between_latest_two_merge_commits.git",
          "stargazers_count": 0,
          "stargazers_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/stargazers",
          "statuses_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/statuses/{sha}",
          "subscribers_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/subscribers",
          "subscription_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/subscription",
          "svn_url": "https://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits",
          "tags_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/tags",
          "teams_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/teams",
          "topics": [],
          "trees_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/git/trees{/sha}",
          "updated_at": "2022-12-27T11:50:45Z",
          "url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits",
          "use_squash_pr_title_as_default": false,
          "visibility": "public",
          "watchers": 0,
          "watchers_count": 0,
          "web_commit_signoff_required": false
        },
        "sha": "xxxx",
        "user": {
          "avatar_url": "https://avatars.githubusercontent.com/u/44469281?v=4",
          "events_url": "https://api.github.com/users/setsumaru1992/events{/privacy}",
          "followers_url": "https://api.github.com/users/setsumaru1992/followers",
          "following_url": "https://api.github.com/users/setsumaru1992/following{/other_user}",
          "gists_url": "https://api.github.com/users/setsumaru1992/gists{/gist_id}",
          "gravatar_id": "",
          "html_url": "https://github.com/setsumaru1992",
          "id": xxxx,
          "login": "setsumaru1992",
          "node_id": "xxxx",
          "organizations_url": "https://api.github.com/users/setsumaru1992/orgs",
          "received_events_url": "https://api.github.com/users/setsumaru1992/received_events",
          "repos_url": "https://api.github.com/users/setsumaru1992/repos",
          "site_admin": false,
          "starred_url": "https://api.github.com/users/setsumaru1992/starred{/owner}{/repo}",
          "subscriptions_url": "https://api.github.com/users/setsumaru1992/subscriptions",
          "type": "User",
          "url": "https://api.github.com/users/setsumaru1992"
        }
      },
      "html_url": "https://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/pull/8",
      "id": xxxx,
      "issue_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/issues/8",
      "labels": [],
      "locked": false,
      "maintainer_can_modify": false,
      "merge_commit_sha": "xxxx",
      "mergeable": null,
      "mergeable_state": "unknown",
      "merged": true,
      "merged_at": "2022-12-28T03:19:30Z",
      "merged_by": {
        "avatar_url": "https://avatars.githubusercontent.com/u/44469281?v=4",
        "events_url": "https://api.github.com/users/setsumaru1992/events{/privacy}",
        "followers_url": "https://api.github.com/users/setsumaru1992/followers",
        "following_url": "https://api.github.com/users/setsumaru1992/following{/other_user}",
        "gists_url": "https://api.github.com/users/setsumaru1992/gists{/gist_id}",
        "gravatar_id": "",
        "html_url": "https://github.com/setsumaru1992",
        "id": xxxx,
        "login": "setsumaru1992",
        "node_id": "xxxx",
        "organizations_url": "https://api.github.com/users/setsumaru1992/orgs",
        "received_events_url": "https://api.github.com/users/setsumaru1992/received_events",
        "repos_url": "https://api.github.com/users/setsumaru1992/repos",
        "site_admin": false,
        "starred_url": "https://api.github.com/users/setsumaru1992/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/setsumaru1992/subscriptions",
        "type": "User",
        "url": "https://api.github.com/users/setsumaru1992"
      },
      "milestone": null,
      "node_id": "PR_kwDOIrjHKM5GRp-J",
      "number": 8,
      "patch_url": "https://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/pull/8.patch",
      "rebaseable": null,
      "requested_reviewers": [],
      "requested_teams": [],
      "review_comment_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/pulls/comments{/number}",
      "review_comments": 0,
      "review_comments_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/pulls/8/comments",
      "state": "closed",
      "statuses_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/statuses/e5b377d9e8eb357860b0e19c69a8a2c54452494a",
      "title": "some-branch-202212281216",
      "updated_at": "2022-12-28T03:19:31Z",
      "url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/pulls/8",
      "user": {
        "avatar_url": "https://avatars.githubusercontent.com/u/44469281?v=4",
        "events_url": "https://api.github.com/users/setsumaru1992/events{/privacy}",
        "followers_url": "https://api.github.com/users/setsumaru1992/followers",
        "following_url": "https://api.github.com/users/setsumaru1992/following{/other_user}",
        "gists_url": "https://api.github.com/users/setsumaru1992/gists{/gist_id}",
        "gravatar_id": "",
        "html_url": "https://github.com/setsumaru1992",
        "id": xxxx,
        "login": "setsumaru1992",
        "node_id": "xxxx",
        "organizations_url": "https://api.github.com/users/setsumaru1992/orgs",
        "received_events_url": "https://api.github.com/users/setsumaru1992/received_events",
        "repos_url": "https://api.github.com/users/setsumaru1992/repos",
        "site_admin": false,
        "starred_url": "https://api.github.com/users/setsumaru1992/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/setsumaru1992/subscriptions",
        "type": "User",
        "url": "https://api.github.com/users/setsumaru1992"
      }
    },
    "repository": {
      "allow_forking": true,
      "archive_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/{archive_format}{/ref}",
      "archived": false,
      "assignees_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/assignees{/user}",
      "blobs_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/git/blobs{/sha}",
      "branches_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/branches{/branch}",
      "clone_url": "https://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits.git",
      "collaborators_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/collaborators{/collaborator}",
      "comments_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/comments{/number}",
      "commits_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/commits{/sha}",
      "compare_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/compare/{base}...{head}",
      "contents_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/contents/{+path}",
      "contributors_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/contributors",
      "created_at": "2022-12-27T06:11:05Z",
      "default_branch": "main",
      "deployments_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/deployments",
      "description": null,
      "disabled": false,
      "downloads_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/downloads",
      "events_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/events",
      "fork": false,
      "forks": 0,
      "forks_count": 0,
      "forks_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/forks",
      "full_name": "setsumaru1992/notify_test_file_update_between_latest_two_merge_commits",
      "git_commits_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/git/commits{/sha}",
      "git_refs_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/git/refs{/sha}",
      "git_tags_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/git/tags{/sha}",
      "git_url": "git://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits.git",
      "has_discussions": false,
      "has_downloads": true,
      "has_issues": true,
      "has_pages": false,
      "has_projects": true,
      "has_wiki": true,
      "homepage": null,
      "hooks_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/hooks",
      "html_url": "https://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits",
      "id": xxxx,
      "is_template": false,
      "issue_comment_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/issues/comments{/number}",
      "issue_events_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/issues/events{/number}",
      "issues_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/issues{/number}",
      "keys_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/keys{/key_id}",
      "labels_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/labels{/name}",
      "language": "Ruby",
      "languages_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/languages",
      "license": null,
      "merges_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/merges",
      "milestones_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/milestones{/number}",
      "mirror_url": null,
      "name": "notify_test_file_update_between_latest_two_merge_commits",
      "node_id": "R_kgDOIrjHKA",
      "notifications_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/notifications{?since,all,participating}",
      "open_issues": 0,
      "open_issues_count": 0,
      "owner": {
        "avatar_url": "https://avatars.githubusercontent.com/u/44469281?v=4",
        "events_url": "https://api.github.com/users/setsumaru1992/events{/privacy}",
        "followers_url": "https://api.github.com/users/setsumaru1992/followers",
        "following_url": "https://api.github.com/users/setsumaru1992/following{/other_user}",
        "gists_url": "https://api.github.com/users/setsumaru1992/gists{/gist_id}",
        "gravatar_id": "",
        "html_url": "https://github.com/setsumaru1992",
        "id": xxxx,
        "login": "setsumaru1992",
        "node_id": "xxxx",
        "organizations_url": "https://api.github.com/users/setsumaru1992/orgs",
        "received_events_url": "https://api.github.com/users/setsumaru1992/received_events",
        "repos_url": "https://api.github.com/users/setsumaru1992/repos",
        "site_admin": false,
        "starred_url": "https://api.github.com/users/setsumaru1992/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/setsumaru1992/subscriptions",
        "type": "User",
        "url": "https://api.github.com/users/setsumaru1992"
      },
      "private": false,
      "pulls_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/pulls{/number}",
      "pushed_at": "2022-12-28T03:19:30Z",
      "releases_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/releases{/id}",
      "size": 26,
      "ssh_url": "git@github.com:setsumaru1992/notify_test_file_update_between_latest_two_merge_commits.git",
      "stargazers_count": 0,
      "stargazers_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/stargazers",
      "statuses_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/statuses/{sha}",
      "subscribers_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/subscribers",
      "subscription_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/subscription",
      "svn_url": "https://github.com/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits",
      "tags_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/tags",
      "teams_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/teams",
      "topics": [],
      "trees_url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/git/trees{/sha}",
      "updated_at": "2022-12-27T11:50:45Z",
      "url": "https://api.github.com/repos/setsumaru1992/notify_test_file_update_between_latest_two_merge_commits",
      "visibility": "public",
      "watchers": 0,
      "watchers_count": 0,
      "web_commit_signoff_required": false
    },
    "sender": {
      "avatar_url": "https://avatars.githubusercontent.com/u/44469281?v=4",
      "events_url": "https://api.github.com/users/setsumaru1992/events{/privacy}",
      "followers_url": "https://api.github.com/users/setsumaru1992/followers",
      "following_url": "https://api.github.com/users/setsumaru1992/following{/other_user}",
      "gists_url": "https://api.github.com/users/setsumaru1992/gists{/gist_id}",
      "gravatar_id": "",
      "html_url": "https://github.com/setsumaru1992",
      "id": xxxx,
      "login": "setsumaru1992",
      "node_id": "xxxx",
      "organizations_url": "https://api.github.com/users/setsumaru1992/orgs",
      "received_events_url": "https://api.github.com/users/setsumaru1992/received_events",
      "repos_url": "https://api.github.com/users/setsumaru1992/repos",
      "site_admin": false,
      "starred_url": "https://api.github.com/users/setsumaru1992/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/setsumaru1992/subscriptions",
      "type": "User",
      "url": "https://api.github.com/users/setsumaru1992"
    }
  },
  "server_url": "https://github.com",
  "api_url": "https://api.github.com",
  "graphql_url": "https://api.github.com/graphql",
  "ref_name": "main",
  "ref_protected": false,
  "ref_type": "branch",
  "secret_source": "Actions",
  "workflow_ref": "setsumaru1992/notify_test_file_update_between_latest_two_merge_commits/.github/workflows/execute_top_level_action.yml@main",
  "workflow_sha": "2ac1c2c4c39a6885174774aa0681ef3d480415c6",
  "workspace": "/home/runner/work/notify_test_file_update_between_latest_two_merge_commits/notify_test_file_update_between_latest_two_merge_commits",
  "action": "__self",
  "event_path": "/home/runner/work/_temp/_github_workflow/event.json",
  "action_repository": "",
  "action_ref": "",
  "path": "/home/runner/work/_temp/_runner_file_commands/add_path_ce5f4e4a-c133-41ca-ab3a-0a27029abd2d",
  "env": "/home/runner/work/_temp/_runner_file_commands/set_env_ce5f4e4a-c133-41ca-ab3a-0a27029abd2d",
  "step_summary": "/home/runner/work/_temp/_runner_file_commands/step_summary_ce5f4e4a-c133-41ca-ab3a-0a27029abd2d",
  "state": "/home/runner/work/_temp/_runner_file_commands/save_state_ce5f4e4a-c133-41ca-ab3a-0a27029abd2d",
  "output": "/home/runner/work/_temp/_runner_file_commands/set_output_ce5f4e4a-c133-41ca-ab3a-0a27029abd2d",
  "action_path": "/home/runner/work/notify_test_file_update_between_latest_two_merge_commits/notify_test_file_update_between_latest_two_merge_commits/./",
  "action_status": "Success"
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?