diff --git a/cache/api.github.com/webhook-events-and-payloads.html b/cache/api.github.com/webhook-events-and-payloads.html index 71e81c142..e5742451e 100644 --- a/cache/api.github.com/webhook-events-and-payloads.html +++ b/cache/api.github.com/webhook-events-and-payloads.html @@ -8,7 +8,7 @@

Webhook events and payloads

Box-sc-1gh2r6s-0 sc-gsDKAQ ehctan - iGLrqc + iGLrsy border-bottom border-xl-0 pb-4 mb-5 @@ -605,6 +605,24 @@

+ -

+

-

+

>pull requests" REST API.

-

+

  • Organization webhooks
  • GitHub Apps with the pull_requests permission
  • -

    +

    -

    +

    >pull request reviews" REST API.

    -

    +

  • Organization webhooks
  • GitHub Apps with the pull_requests permission
  • -

    +

    -

    +

    >pull request review comments" REST API.

    -

    +

  • Organization webhooks
  • GitHub Apps with the pull_requests permission
  • -

    +

    -

    +

    resolved or unresolved. The type of activity is specified in the action property of the payload object.

    -

    +

  • Organization webhooks
  • GitHub Apps with the pull_requests permission
  • -

    +

    -

    +

    when you push more than three tags at once.

    -

    +

  • Organization webhooks
  • GitHub Apps with the contents permission
  • -

    +

    -

    +

    information, see the "releases" REST API.

    -

    +

  • Organization webhooks
  • GitHub Apps with the contents permission
  • -

    +

    -

    +

    >Create a repository dispatch event" endpoint.

    -

    +

    this webhook. -

    +

    information, see the "repositories" REST API.

    -

    +

    event types except deleted -

    +

    -

    +

    >Source imports API.

    -

    +

  • Repository webhooks
  • Organization webhooks
  • -

    +

    -

    +

    >About Dependabot alerts".

    -

    +

  • Repository webhooks
  • Organization webhooks
  • -

    +

    -

    +

    >About Dependabot alerts."

    -

    +

    • GitHub Apps with the security_events permission
    -

    +

    -

    +

    >Configuring webhooks for events in your sponsored account".

    -

    +

    • Sponsored accounts
    -

    +

    >starring" REST API.

    -

    +

  • Repository webhooks
  • Organization webhooks
  • -

    +

    -

    +

    "statuses" REST API.

    -

    +

  • Organization webhooks
  • GitHub Apps with the statuses permission
  • -

    +

    -

    +

    more information, see the "teams" REST API.

    -

    +

  • Organization webhooks
  • GitHub Apps with the members permission
  • -

    +

    -

    +

    >repository is added to a team.

    -

    +

  • Organization webhooks
  • GitHub Apps with the members permission
  • -

    +

    -

    +

    starred a repository, and the event’s repository is the repository that was starred.

    -

    +

  • Organization webhooks
  • GitHub Apps with the metadata permission
  • -

    +

    -

    +

    >Events that trigger workflows."

    -

    +

    this webhook. -

    +

    + Webhook payload object +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    KeyTypeDescription
    inputsobject + Inputs to the workflow. Each key represents the name of the input + while it's value represents the value of that input. +
    organizationobject + Webhook payloads contain the + organization + object when the webhook is configured for an organization or the + event occurs from activity in a repository owned by an + organization. +
    refstringThe branch ref from which the workflow was run.
    repositoryobject + The + repository + where the event occurred. +
    senderobjectThe user that triggered the event.
    workflowstring + Relative path to the workflow file which contains the workflow. +
    +

    + been completed on a repository. The type of activity is specified in the action property of the payload object.

    -

    +

  • Organization webhooks
  • Enterprise webhooks
  • -

    +

    -

    +

    >Events that trigger workflows."

    -

    +

    contents permissions. -

    +

    -

    +

    Webhook events and payloads

    @@ -248,16 +237,7 @@

    payload contains more detailed information.

    Note: Payloads are capped at 25 MB. If your event @@ -376,16 +356,7 @@

    check_run

    >" REST API.

    Note: The Checks API only looks for pushes in the @@ -973,16 +944,7 @@

    check_suite

    >" REST API.

    Note: The Checks API only looks for pushes in the @@ -1606,16 +1568,7 @@

    create

    >" REST API.

    Note: You will not receive a webhook for this event @@ -1874,16 +1827,7 @@

    delete

    >" REST API.

    Note: You will not receive a webhook for this event @@ -3616,16 +3560,7 @@

    installation

    >" REST API.

    Note: This event replaces the deprecated @@ -3827,16 +3762,7 @@

    >" REST API.

    Note: This event replaces the deprecated @@ -9616,16 +9542,7 @@

    push

    One or more commits are pushed to a repository branch or tag.

    Note: You will not receive a webhook for this event diff --git a/cache/ghes-222/webhook-events-and-payloads.html b/cache/ghes-222/webhook-events-and-payloads.html index a7e7e61f7..9e43fab23 100644 --- a/cache/ghes-222/webhook-events-and-payloads.html +++ b/cache/ghes-222/webhook-events-and-payloads.html @@ -42,13 +42,7 @@ >

    @@ -141,17 +135,7 @@

    In this article @@ -480,16 +464,7 @@

    payload contains more detailed information.

    Note: Payloads are capped at 25 MB. If your event @@ -676,16 +651,7 @@

    >" REST API.

    Note: The Checks API only looks for pushes in the @@ -1375,16 +1341,7 @@

    >" REST API.

    Note: The Checks API only looks for pushes in the @@ -2884,16 +2841,7 @@

    >" REST API.

    Note: You will not receive a webhook for this event @@ -3245,16 +3193,7 @@

    >" REST API.

    Note: You will not receive a webhook for this event @@ -13508,16 +13447,7 @@

    One or more commits are pushed to a repository branch or tag.

    Note: You will not receive a webhook for this event diff --git a/cache/ghes-30/webhook-events-and-payloads.html b/cache/ghes-30/webhook-events-and-payloads.html index 346656304..a40d11bd3 100644 --- a/cache/ghes-30/webhook-events-and-payloads.html +++ b/cache/ghes-30/webhook-events-and-payloads.html @@ -4,17 +4,7 @@

    Webhook events and payloads

    payload contains more detailed information.

    Note: Payloads are capped at 25 MB. If your event @@ -1173,16 +1154,7 @@

    >" REST API.

    Note: The Checks API only looks for pushes in the @@ -1872,16 +1844,7 @@

    >" REST API.

    Note: The Checks API only looks for pushes in the @@ -3381,16 +3344,7 @@

    >" REST API.

    Note: You will not receive a webhook for this event @@ -3742,16 +3696,7 @@

    >" REST API.

    Note: You will not receive a webhook for this event @@ -14004,16 +13949,7 @@

    One or more commits are pushed to a repository branch or tag.

    Note: You will not receive a webhook for this event diff --git a/cache/ghes-31/webhook-events-and-payloads.html b/cache/ghes-31/webhook-events-and-payloads.html index 89d205021..4545f1261 100644 --- a/cache/ghes-31/webhook-events-and-payloads.html +++ b/cache/ghes-31/webhook-events-and-payloads.html @@ -4,17 +4,7 @@

    Webhook events and payloads

    payload contains more detailed information.

    Note: Payloads are capped at 25 MB. If your event @@ -1227,16 +1208,7 @@

    >" REST API.

    Note: The Checks API only looks for pushes in the @@ -1944,16 +1916,7 @@

    >" REST API.

    Note: The Checks API only looks for pushes in the @@ -3463,16 +3426,7 @@

    >" REST API.

    Note: You will not receive a webhook for this event @@ -3824,16 +3778,7 @@

    >" REST API.

    payload contains more detailed information.

    Note: Payloads are capped at 25 MB. If your event @@ -1227,16 +1208,7 @@

    >" REST API.

    Note: The Checks API only looks for pushes in the @@ -1944,16 +1916,7 @@

    >" REST API.

    Note: The Checks API only looks for pushes in the @@ -3463,16 +3426,7 @@

    >" REST API.

    Note: You will not receive a webhook for this event @@ -3824,16 +3778,7 @@

    >" REST API.

    payload contains more detailed information.

    Note: Payloads are capped at 25 MB. If your event @@ -1628,16 +1609,7 @@

    >" REST API.

    Note: The Checks API only looks for pushes in the @@ -2345,16 +2317,7 @@

    >" REST API.

    @@ -891,16 +899,7 @@

    payload contains more detailed information.

    Note: Payloads are capped at 25 MB. If your event @@ -1452,16 +1451,7 @@

    >" REST API.

    Note: The Checks API only looks for pushes in the @@ -2182,16 +2172,7 @@

    >" REST API.

    Note: The Checks API only looks for pushes in the @@ -3470,16 +3451,7 @@

    >" REST API.

    Note: You will not receive a webhook for this event @@ -3830,16 +3802,7 @@

    >" REST API.

    Note: You will not receive a webhook for this event @@ -3928,8 +3891,8 @@

    ref_type string - The type of Git ref oject deleted in the repository. Can be - branch or tag. + The type of Git ref object deleted in the repository. Can be + either branch or tag. @@ -14204,16 +14167,7 @@

    One or more commits are pushed to a repository branch or tag.

    Note: You will not receive a webhook for this event @@ -17517,6 +17471,415 @@

    "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uNQ==" } } + +

    +

    + + workflow_job +

    +

    + A GitHub Actions workflow job has been queued, is in progress, or has + been completed on a repository. The type of activity is specified in the + action property of the payload object. +

    +

    + + Availability +

    +
      +
    • Repository webhooks
    • +
    • Organization webhooks
    • +
    • Enterprise webhooks
    • +
    +

    + + Webhook payload object +

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    KeyTypeDescription
    actionstring + The action performed. Can be one of: +
      +
    • queued - A new job was created.
    • +
    • + in_progress - The job has started processing on + the runner. +
    • +
    • + completed - The status of the job is + completed. +
    • +
    +
    workflow_jobobject + The workflow job. Many workflow_job keys, such as + head_sha, conclusion, and + started_at are the same as those in a + check_run object. +
    workflow_job[status]string + The current status of the job. Can be queued, + in_progress, or completed. +
    workflow_job[labels]array + Custom labels for the job. Specified by the + "runs-on" attribute + in the workflow YAML. +
    workflow_job[runner_id]integer + The ID of the runner that is running this job. This will be + null as long as workflow_job[status] is + queued. +
    workflow_job[runner_name]string + The name of the runner that is running this job. This will be + null as long as workflow_job[status] is + queued. +
    workflow_job[runner_group_id]integer + The ID of the runner group that is running this job. This will be + null as long as workflow_job[status] is + queued. +
    workflow_job[runner_group_name]string + The name of the runner group that is running this job. This will + be null as long as + workflow_job[status] is queued. +
    repositoryobject + The + repository + where the event occurred. +
    organizationobject + Webhook payloads contain the + organization + object when the webhook is configured for an organization or the + event occurs from activity in a repository owned by an + organization. +
    senderobjectThe user that triggered the event.
    +

    + + Webhook payload example +

    +
    +
    {
    +  "action": "in_progress",
    +  "workflow_job": {
    +    "id": 2832853555,
    +    "run_id": 940463255,
    +    "run_url": "https://api.github.com/repos/octo-org/example-workflow/actions/runs/940463255",
    +    "node_id": "MDg6Q2hlY2tSdW4yODMyODUzNT55",
    +    "head_sha": "e3103f8eb03e1ad7f2331c5446b23c070fc54055",
    +    "url": "https://api.github.com/repos/octo-org/example-workflow/actions/jobs/2832853555",
    +    "html_url": "https://github.com/octo-org/example-workflow/runs/2832853555",
    +    "status": "in_progress",
    +    "conclusion": null,
    +    "started_at": "2021-06-15T19:22:27Z",
    +    "completed_at": null,
    +    "name": "Test workflow",
    +    "steps": [
    +      {
    +        "name": "Set up job",
    +        "status": "in_progress",
    +        "conclusion": null,
    +        "number": 1,
    +        "started_at": "2021-06-15T19:22:27.000Z",
    +        "completed_at": null
    +      }
    +    ],
    +    "check_run_url": "https://api.github.com/repos/octo-org/example-workflow/check-runs/2832853555",
    +    "labels": [
    +      "gpu",
    +      "db-app",
    +      "dc-03"
    +    ],
    +    "runner_id": 1,
    +    "runner_name": "my runner",
    +    "runner_group_id": 2,
    +    "runner_group_name": "my runner group"
    +  },
    +  "repository": {
    +    "id": 376034443,
    +    "node_id": "MDEwOlJlcG9zaXRvcnkzNzYwMzQ0ND55",
    +    "name": "example-workflow",
    +    "full_name": "octo-org/example-workflow",
    +    "private": true,
    +    "owner": {
    +      "login": "octo-org",
    +      "id": 33435655,
    +      "node_id": "MDEyOk9yZ2FuaXphdGlvbjMzNDM1Nj55",
    +      "avatar_url": "https://avatars.githubusercontent.com/u/21031067?s=460&u=d851e01410b4f1674f000ba7e0dc94e0b82cd9cc&v=4",
    +      "gravatar_id": "",
    +      "url": "https://api.github.com/users/octo-org",
    +      "html_url": "https://github.com/octo-org",
    +      "followers_url": "https://api.github.com/users/octo-org/followers",
    +      "following_url": "https://api.github.com/users/octo-org/following{/other_user}",
    +      "gists_url": "https://api.github.com/users/octo-org/gists{/gist_id}",
    +      "starred_url": "https://api.github.com/users/octo-org/starred{/owner}{/repo}",
    +      "subscriptions_url": "https://api.github.com/users/octo-org/subscriptions",
    +      "organizations_url": "https://api.github.com/users/octo-org/orgs",
    +      "repos_url": "https://api.github.com/users/octo-org/repos",
    +      "events_url": "https://api.github.com/users/octo-org/events{/privacy}",
    +      "received_events_url": "https://api.github.com/users/octo-org/received_events",
    +      "type": "Organization",
    +      "site_admin": false
    +    },
    +    "html_url": "https://github.com/octo-org/example-workflow",
    +    "description": "Test workflow",
    +    "fork": false,
    +    "url": "https://api.github.com/repos/octo-org/example-workflow",
    +    "forks_url": "https://api.github.com/repos/octo-org/example-workflow/forks",
    +    "keys_url": "https://api.github.com/repos/octo-org/example-workflow/keys{/key_id}",
    +    "collaborators_url": "https://api.github.com/repos/octo-org/example-workflow/collaborators{/collaborator}",
    +    "teams_url": "https://api.github.com/repos/octo-org/example-workflow/teams",
    +    "hooks_url": "https://api.github.com/repos/octo-org/example-workflow/hooks",
    +    "issue_events_url": "https://api.github.com/repos/octo-org/example-workflow/issues/events{/number}",
    +    "events_url": "https://api.github.com/repos/octo-org/example-workflow/events",
    +    "assignees_url": "https://api.github.com/repos/octo-org/example-workflow/assignees{/user}",
    +    "branches_url": "https://api.github.com/repos/octo-org/example-workflow/branches{/branch}",
    +    "tags_url": "https://api.github.com/repos/octo-org/example-workflow/tags",
    +    "blobs_url": "https://api.github.com/repos/octo-org/example-workflow/git/blobs{/sha}",
    +    "git_tags_url": "https://api.github.com/repos/octo-org/example-workflow/git/tags{/sha}",
    +    "git_refs_url": "https://api.github.com/repos/octo-org/example-workflow/git/refs{/sha}",
    +    "trees_url": "https://api.github.com/repos/octo-org/example-workflow/git/trees{/sha}",
    +    "statuses_url": "https://api.github.com/repos/octo-org/example-workflow/statuses/{sha}",
    +    "languages_url": "https://api.github.com/repos/octo-org/example-workflow/languages",
    +    "stargazers_url": "https://api.github.com/repos/octo-org/example-workflow/stargazers",
    +    "contributors_url": "https://api.github.com/repos/octo-org/example-workflow/contributors",
    +    "subscribers_url": "https://api.github.com/repos/octo-org/example-workflow/subscribers",
    +    "subscription_url": "https://api.github.com/repos/octo-org/example-workflow/subscription",
    +    "commits_url": "https://api.github.com/repos/octo-org/example-workflow/commits{/sha}",
    +    "git_commits_url": "https://api.github.com/repos/octo-org/example-workflow/git/commits{/sha}",
    +    "comments_url": "https://api.github.com/repos/octo-org/example-workflow/comments{/number}",
    +    "issue_comment_url": "https://api.github.com/repos/octo-org/example-workflow/issues/comments{/number}",
    +    "contents_url": "https://api.github.com/repos/octo-org/example-workflow/contents/{+path}",
    +    "compare_url": "https://api.github.com/repos/octo-org/example-workflow/compare/{base}...{head}",
    +    "merges_url": "https://api.github.com/repos/octo-org/example-workflow/merges",
    +    "archive_url": "https://api.github.com/repos/octo-org/example-workflow/{archive_format}{/ref}",
    +    "downloads_url": "https://api.github.com/repos/octo-org/example-workflow/downloads",
    +    "issues_url": "https://api.github.com/repos/octo-org/example-workflow/issues{/number}",
    +    "pulls_url": "https://api.github.com/repos/octo-org/example-workflow/pulls{/number}",
    +    "milestones_url": "https://api.github.com/repos/octo-org/example-workflow/milestones{/number}",
    +    "notifications_url": "https://api.github.com/repos/octo-org/example-workflow/notifications{?since,all,participating}",
    +    "labels_url": "https://api.github.com/repos/octo-org/example-workflow/labels{/name}",
    +    "releases_url": "https://api.github.com/repos/octo-org/example-workflow/releases{/id}",
    +    "deployments_url": "https://api.github.com/repos/octo-org/example-workflow/deployments",
    +    "created_at": "2021-06-11T13:29:13Z",
    +    "updated_at": "2021-06-11T13:33:01Z",
    +    "pushed_at": "2021-06-11T13:32:58Z",
    +    "git_url": "git://github.com/octo-org/example-workflow.git",
    +    "ssh_url": "git@github.com:octo-org/example-workflow.git",
    +    "clone_url": "https://github.com/octo-org/example-workflow.git",
    +    "svn_url": "https://github.com/octo-org/example-workflow",
    +    "homepage": null,
    +    "size": 1,
    +    "stargazers_count": 0,
    +    "watchers_count": 0,
    +    "language": null,
    +    "has_issues": true,
    +    "has_projects": true,
    +    "has_downloads": true,
    +    "has_wiki": true,
    +    "has_pages": false,
    +    "forks_count": 0,
    +    "mirror_url": null,
    +    "archived": false,
    +    "disabled": false,
    +    "open_issues_count": 0,
    +    "license": null,
    +    "forks": 0,
    +    "open_issues": 0,
    +    "watchers": 0,
    +    "default_branch": "main"
    +  },
    +  "organization": {
    +    "login": "octo-org",
    +    "id": 33435655,
    +    "node_id": "MDEyOk9yZ2FuaXphdGlvbjMzNDM1Nj55",
    +    "url": "https://api.github.com/orgs/octo-org",
    +    "repos_url": "https://api.github.com/orgs/octo-org/repos",
    +    "events_url": "https://api.github.com/orgs/octo-org/events",
    +    "hooks_url": "https://api.github.com/orgs/octo-org/hooks",
    +    "issues_url": "https://api.github.com/orgs/octo-org/issues",
    +    "members_url": "https://api.github.com/orgs/octo-org/members{/member}",
    +    "public_members_url": "https://api.github.com/orgs/octo-org/public_members{/member}",
    +    "avatar_url": "https://avatars.githubusercontent.com/u/21031067?s=460&u=d851e01410b4f1674f000ba7e0dc94e0b82cd9cc&v=4",
    +    "description": "octo-org"
    +  },
    +  "sender": {
    +    "login": "octocat",
    +    "id": 319655,
    +    "node_id": "MDQ6VXNlcjMxOTY1NQ55",
    +    "avatar_url": "https://avatars.githubusercontent.com/u/21031067?s=460&u=d851e01410b4f1674f000ba7e0dc94e0b82cd9cc&v=4",
    +    "gravatar_id": "",
    +    "url": "https://api.github.com/users/octocat",
    +    "html_url": "https://github.com/octocat",
    +    "followers_url": "https://api.github.com/users/octocat/followers",
    +    "following_url": "https://api.github.com/users/octocat/following{/other_user}",
    +    "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
    +    "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
    +    "subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
    +    "organizations_url": "https://api.github.com/users/octocat/orgs",
    +    "repos_url": "https://api.github.com/users/octocat/repos",
    +    "events_url": "https://api.github.com/users/octocat/events{/privacy}",
    +    "received_events_url": "https://api.github.com/users/octocat/received_events",
    +    "type": "User",
    +    "site_admin": true
    +  }
    +}
     
    diff --git a/payload-examples/api.github.com/index.json b/payload-examples/api.github.com/index.json index d56f8a7f4..f0ae1a27c 100644 --- a/payload-examples/api.github.com/index.json +++ b/payload-examples/api.github.com/index.json @@ -6748,7 +6748,7 @@ }, "ref_type": { "type": "string", - "description": "The type of Git ref oject deleted in the repository. Can be `branch` or `tag`." + "description": "The type of Git ref object deleted in the repository. Can be either `branch` or `tag`." }, "pusher_type": { "type": "string", @@ -30045,6 +30045,476 @@ } ] }, + { + "name": "projects_v2_item", + "description": "Activity related to items in a Projects (beta) project. The type of activity is specified in the `action` property of the payload object. For more information, see \"[About projects (beta)](https://docs.github.com/en/issues/trying-out-the-new-projects-experience/about-projects).\"", + "actions": [ + "archived", + "converted", + "created", + "deleted", + "edited", + "reordered", + "restored" + ], + "properties": { + "projects_v2_item": { + "type": "object", + "description": "The project item itself. To find more information about the project item, you can use `node_id` (the node ID of the project item) and `project_node_id` (the node ID of the project) to query information in the GraphQL API. For more information, see \"[Using the API to manage projects (beta)](https://docs.github.com/en/issues/trying-out-the-new-projects-experience/using-the-api-to-manage-projects).\"" + }, + "changes": { + "type": "object", + "description": "The changes to the project item." + }, + "organization": { + "type": "object", + "description": "Webhook payloads contain the [`organization`](https://docs.github.com/en/rest/reference/orgs#get-an-organization) object when the webhook is configured for an organization or the event occurs from activity in a repository owned by an organization." + }, + "installation": { + "type": "object", + "description": "The GitHub App installation. Webhook payloads contain the `installation` property when the event is configured for and sent to a GitHub App." + }, + "sender": { + "type": "object", + "description": "The user that triggered the event." + } + }, + "examples": [ + { + "action": "archived", + "projects_v2_item": { + "id": 5679898, + "node_id": "PVTI_lADOAWcTxs4ACgDdzgBWqxo", + "project_node_id": "PVT_kwDOAWcTxs4ACgDd", + "content_node_id": "I_kwDOCG5vGM5La0aB", + "content_type": "Issue", + "creator": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-06-08T21:14:07Z", + "updated_at": "2022-06-08T21:19:35Z", + "archived_at": "2022-06-08T21:19:35Z" + }, + "changes": { + "archived_at": { "from": null, "to": "2022-06-08T17:19:35-04:00" } + }, + "organization": { + "login": "Octocoders", + "id": 38302899, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5", + "url": "https://api.github.com/orgs/Octocoders", + "repos_url": "https://api.github.com/orgs/Octocoders/repos", + "events_url": "https://api.github.com/orgs/Octocoders/events", + "hooks_url": "https://api.github.com/orgs/Octocoders/hooks", + "issues_url": "https://api.github.com/orgs/Octocoders/issues", + "members_url": "https://api.github.com/orgs/Octocoders/members{/member}", + "public_members_url": "https://api.github.com/orgs/Octocoders/public_members{/member}", + "avatar_url": "https://avatars1.githubusercontent.com/u/38302899?v=4", + "description": "" + }, + "sender": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + } + }, + { + "action": "converted", + "projects_v2_item": { + "id": 5679898, + "node_id": "PVTI_lADOAWcTxs4ACgDdzgBWqxo", + "project_node_id": "PVT_kwDOAWcTxs4ACgDd", + "content_node_id": "I_kwDOCG5vGM5La0aB", + "content_type": "Issue", + "creator": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-06-08T21:14:07Z", + "updated_at": "2022-06-08T21:14:17Z", + "archived_at": null + }, + "changes": { "content_type": { "from": "DraftIssue", "to": "Issue" } }, + "organization": { + "login": "Octocoders", + "id": 38302899, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5", + "url": "https://api.github.com/orgs/Octocoders", + "repos_url": "https://api.github.com/orgs/Octocoders/repos", + "events_url": "https://api.github.com/orgs/Octocoders/events", + "hooks_url": "https://api.github.com/orgs/Octocoders/hooks", + "issues_url": "https://api.github.com/orgs/Octocoders/issues", + "members_url": "https://api.github.com/orgs/Octocoders/members{/member}", + "public_members_url": "https://api.github.com/orgs/Octocoders/public_members{/member}", + "avatar_url": "https://avatars1.githubusercontent.com/u/38302899?v=4", + "description": "" + }, + "sender": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "installation": { + "id": 1, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMQ==" + } + }, + { + "action": "created", + "projects_v2_item": { + "id": 5678510, + "node_id": "PVTI_lADOAWcTxs07G84AVqWu", + "project_node_id": "PVT_kwDOAWcTxs07Gw", + "content_node_id": "DI_lADOAWcTxs07G84AIjOy", + "content_type": "DraftIssue", + "creator": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-06-08T20:34:26Z", + "updated_at": "2022-06-08T20:34:26Z", + "archived_at": null + }, + "organization": { + "login": "Octocoders", + "id": 38302899, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5", + "url": "https://api.github.com/orgs/Octocoders", + "repos_url": "https://api.github.com/orgs/Octocoders/repos", + "events_url": "https://api.github.com/orgs/Octocoders/events", + "hooks_url": "https://api.github.com/orgs/Octocoders/hooks", + "issues_url": "https://api.github.com/orgs/Octocoders/issues", + "members_url": "https://api.github.com/orgs/Octocoders/members{/member}", + "public_members_url": "https://api.github.com/orgs/Octocoders/public_members{/member}", + "avatar_url": "https://avatars1.githubusercontent.com/u/38302899?v=4", + "description": "" + }, + "sender": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "installation": { + "id": 1, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMQ==" + } + }, + { + "action": "edited", + "projects_v2_item": { + "id": 5678510, + "node_id": "PVTI_lADOAWcTxs07G84AVqWu", + "project_node_id": "PVT_kwDOAWcTxs07Gw", + "content_node_id": "DI_lADOAWcTxs07G84AIjOy", + "content_type": "DraftIssue", + "creator": { + "login": "wolfy1339", + "id": 4595477, + "node_id": "MDQ6VXNlcjQ1OTU0Nzc=", + "avatar_url": "https://avatars.githubusercontent.com/u/4595477?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/wolfy1339", + "html_url": "https://github.com/wolfy1339", + "followers_url": "https://api.github.com/users/wolfy1339/followers", + "following_url": "https://api.github.com/users/wolfy1339/following{/other_user}", + "gists_url": "https://api.github.com/users/wolfy1339/gists{/gist_id}", + "starred_url": "https://api.github.com/users/wolfy1339/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/wolfy1339/subscriptions", + "organizations_url": "https://api.github.com/users/wolfy1339/orgs", + "repos_url": "https://api.github.com/users/wolfy1339/repos", + "events_url": "https://api.github.com/users/wolfy1339/events{/privacy}", + "received_events_url": "https://api.github.com/users/wolfy1339/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-06-08T20:34:26Z", + "updated_at": "2022-06-08T20:34:26Z", + "archived_at": null + }, + "changes": { + "field_value": { + "field_node_id": "PVTF_lADOAWcTxs07G84AAali", + "field_type": "single_select" + } + }, + "organization": { + "login": "Octocoders", + "id": 38302899, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5", + "url": "https://api.github.com/orgs/Octocoders", + "repos_url": "https://api.github.com/orgs/Octocoders/repos", + "events_url": "https://api.github.com/orgs/Octocoders/events", + "hooks_url": "https://api.github.com/orgs/Octocoders/hooks", + "issues_url": "https://api.github.com/orgs/Octocoders/issues", + "members_url": "https://api.github.com/orgs/Octocoders/members{/member}", + "public_members_url": "https://api.github.com/orgs/Octocoders/public_members{/member}", + "avatar_url": "https://avatars1.githubusercontent.com/u/38302899?v=4", + "description": "" + }, + "sender": { + "login": "wolfy1339", + "id": 4595477, + "node_id": "MDQ6VXNlcjQ1OTU0Nzc=", + "avatar_url": "https://avatars.githubusercontent.com/u/4595477?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/wolfy1339", + "html_url": "https://github.com/wolfy1339", + "followers_url": "https://api.github.com/users/wolfy1339/followers", + "following_url": "https://api.github.com/users/wolfy1339/following{/other_user}", + "gists_url": "https://api.github.com/users/wolfy1339/gists{/gist_id}", + "starred_url": "https://api.github.com/users/wolfy1339/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/wolfy1339/subscriptions", + "organizations_url": "https://api.github.com/users/wolfy1339/orgs", + "repos_url": "https://api.github.com/users/wolfy1339/repos", + "events_url": "https://api.github.com/users/wolfy1339/events{/privacy}", + "received_events_url": "https://api.github.com/users/wolfy1339/received_events", + "type": "User", + "site_admin": false + } + }, + { + "action": "reordered", + "projects_v2_item": { + "id": 5679898, + "node_id": "PVTI_lADOAWcTxs4ACgDdzgBWqxo", + "project_node_id": "PVT_kwDOAWcTxs4ACgDd", + "content_node_id": "I_kwDOCG5vGM5La0aB", + "content_type": "Issue", + "creator": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-06-08T21:14:07Z", + "updated_at": "2022-06-08T21:14:17Z", + "archived_at": null + }, + "changes": { + "previous_projects_v2_item_node_id": { + "from": "PVTI_lADOAWcTxs4ACgDdzgBWqwI", + "to": "PVTI_lADOAWcTxs4ACgDdzgBWqwI" + } + }, + "organization": { + "login": "Octocoders", + "id": 38302899, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5", + "url": "https://api.github.com/orgs/Octocoders", + "repos_url": "https://api.github.com/orgs/Octocoders/repos", + "events_url": "https://api.github.com/orgs/Octocoders/events", + "hooks_url": "https://api.github.com/orgs/Octocoders/hooks", + "issues_url": "https://api.github.com/orgs/Octocoders/issues", + "members_url": "https://api.github.com/orgs/Octocoders/members{/member}", + "public_members_url": "https://api.github.com/orgs/Octocoders/public_members{/member}", + "avatar_url": "https://avatars1.githubusercontent.com/u/38302899?v=4", + "description": "" + }, + "sender": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "installation": { + "id": 249715, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMjQ5NzE1" + } + }, + { + "action": "restored", + "projects_v2_item": { + "id": 5679898, + "node_id": "PVTI_lADOAWcTxs4ACgDdzgBWqxo", + "project_node_id": "PVT_kwDOAWcTxs4ACgDd", + "content_node_id": "I_kwDOCG5vGM5La0aB", + "content_type": "Issue", + "creator": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-06-08T21:14:07Z", + "updated_at": "2022-06-08T21:19:43Z", + "archived_at": null + }, + "changes": { + "archived_at": { "from": "2022-06-08T17:19:35-04:00", "to": null } + }, + "organization": { + "login": "Octocoders", + "id": 38302899, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5", + "url": "https://api.github.com/orgs/Octocoders", + "repos_url": "https://api.github.com/orgs/Octocoders/repos", + "events_url": "https://api.github.com/orgs/Octocoders/events", + "hooks_url": "https://api.github.com/orgs/Octocoders/hooks", + "issues_url": "https://api.github.com/orgs/Octocoders/issues", + "members_url": "https://api.github.com/orgs/Octocoders/members{/member}", + "public_members_url": "https://api.github.com/orgs/Octocoders/public_members{/member}", + "avatar_url": "https://avatars1.githubusercontent.com/u/38302899?v=4", + "description": "" + }, + "sender": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + } + } + ] + }, { "name": "public", "description": "When a private repository is made public. Without a doubt: the best GitHub event.", @@ -58234,7 +58704,32 @@ "name": "workflow_dispatch", "description": "This event occurs when someone triggers a workflow run on GitHub or sends a `POST` request to the \"[Create a workflow dispatch event](https://docs.github.com/en/rest/reference/actions/#create-a-workflow-dispatch-event)\" endpoint. For more information, see \"[Events that trigger workflows](https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch).\"", "actions": [], - "properties": {}, + "properties": { + "inputs": { + "type": "object", + "description": "Inputs to the workflow. Each key represents the name of the input while it's value represents the value of that input." + }, + "organization": { + "type": "object", + "description": "Webhook payloads contain the [`organization`](https://docs.github.com/en/rest/reference/orgs#get-an-organization) object when the webhook is configured for an organization or the event occurs from activity in a repository owned by an organization." + }, + "ref": { + "type": "string", + "description": "The branch ref from which the workflow was run." + }, + "repository": { + "type": "object", + "description": "The [`repository`](https://docs.github.com/en/rest/reference/repos#get-a-repository) where the event occurred." + }, + "sender": { + "type": "object", + "description": "The user that triggered the event." + }, + "workflow": { + "type": "string", + "description": "Relative path to the workflow file which contains the workflow." + } + }, "examples": [ { "inputs": {}, diff --git a/payload-examples/api.github.com/projects_v2_item/archived.payload.json b/payload-examples/api.github.com/projects_v2_item/archived.payload.json new file mode 100644 index 000000000..9f800389c --- /dev/null +++ b/payload-examples/api.github.com/projects_v2_item/archived.payload.json @@ -0,0 +1,70 @@ +{ + "action": "archived", + "projects_v2_item": { + "id": 5679898, + "node_id": "PVTI_lADOAWcTxs4ACgDdzgBWqxo", + "project_node_id": "PVT_kwDOAWcTxs4ACgDd", + "content_node_id": "I_kwDOCG5vGM5La0aB", + "content_type": "Issue", + "creator": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-06-08T21:14:07Z", + "updated_at": "2022-06-08T21:19:35Z", + "archived_at": "2022-06-08T21:19:35Z" + }, + "changes": { + "archived_at": { "from": null, "to": "2022-06-08T17:19:35-04:00" } + }, + "organization": { + "login": "Octocoders", + "id": 38302899, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5", + "url": "https://api.github.com/orgs/Octocoders", + "repos_url": "https://api.github.com/orgs/Octocoders/repos", + "events_url": "https://api.github.com/orgs/Octocoders/events", + "hooks_url": "https://api.github.com/orgs/Octocoders/hooks", + "issues_url": "https://api.github.com/orgs/Octocoders/issues", + "members_url": "https://api.github.com/orgs/Octocoders/members{/member}", + "public_members_url": "https://api.github.com/orgs/Octocoders/public_members{/member}", + "avatar_url": "https://avatars1.githubusercontent.com/u/38302899?v=4", + "description": "" + }, + "sender": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/payload-examples/api.github.com/projects_v2_item/converted.payload.json b/payload-examples/api.github.com/projects_v2_item/converted.payload.json new file mode 100644 index 000000000..36ed9f025 --- /dev/null +++ b/payload-examples/api.github.com/projects_v2_item/converted.payload.json @@ -0,0 +1,72 @@ +{ + "action": "converted", + "projects_v2_item": { + "id": 5679898, + "node_id": "PVTI_lADOAWcTxs4ACgDdzgBWqxo", + "project_node_id": "PVT_kwDOAWcTxs4ACgDd", + "content_node_id": "I_kwDOCG5vGM5La0aB", + "content_type": "Issue", + "creator": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-06-08T21:14:07Z", + "updated_at": "2022-06-08T21:14:17Z", + "archived_at": null + }, + "changes": { "content_type": { "from": "DraftIssue", "to": "Issue" } }, + "organization": { + "login": "Octocoders", + "id": 38302899, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5", + "url": "https://api.github.com/orgs/Octocoders", + "repos_url": "https://api.github.com/orgs/Octocoders/repos", + "events_url": "https://api.github.com/orgs/Octocoders/events", + "hooks_url": "https://api.github.com/orgs/Octocoders/hooks", + "issues_url": "https://api.github.com/orgs/Octocoders/issues", + "members_url": "https://api.github.com/orgs/Octocoders/members{/member}", + "public_members_url": "https://api.github.com/orgs/Octocoders/public_members{/member}", + "avatar_url": "https://avatars1.githubusercontent.com/u/38302899?v=4", + "description": "" + }, + "sender": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "installation": { + "id": 1, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMQ==" + } +} diff --git a/payload-examples/api.github.com/projects_v2_item/created.payload.json b/payload-examples/api.github.com/projects_v2_item/created.payload.json new file mode 100644 index 000000000..cdcd77ace --- /dev/null +++ b/payload-examples/api.github.com/projects_v2_item/created.payload.json @@ -0,0 +1,71 @@ +{ + "action": "created", + "projects_v2_item": { + "id": 5678510, + "node_id": "PVTI_lADOAWcTxs07G84AVqWu", + "project_node_id": "PVT_kwDOAWcTxs07Gw", + "content_node_id": "DI_lADOAWcTxs07G84AIjOy", + "content_type": "DraftIssue", + "creator": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-06-08T20:34:26Z", + "updated_at": "2022-06-08T20:34:26Z", + "archived_at": null + }, + "organization": { + "login": "Octocoders", + "id": 38302899, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5", + "url": "https://api.github.com/orgs/Octocoders", + "repos_url": "https://api.github.com/orgs/Octocoders/repos", + "events_url": "https://api.github.com/orgs/Octocoders/events", + "hooks_url": "https://api.github.com/orgs/Octocoders/hooks", + "issues_url": "https://api.github.com/orgs/Octocoders/issues", + "members_url": "https://api.github.com/orgs/Octocoders/members{/member}", + "public_members_url": "https://api.github.com/orgs/Octocoders/public_members{/member}", + "avatar_url": "https://avatars1.githubusercontent.com/u/38302899?v=4", + "description": "" + }, + "sender": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "installation": { + "id": 1, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMQ==" + } +} diff --git a/payload-examples/api.github.com/projects_v2_item/edited.payload.json b/payload-examples/api.github.com/projects_v2_item/edited.payload.json new file mode 100644 index 000000000..ebcafd6a0 --- /dev/null +++ b/payload-examples/api.github.com/projects_v2_item/edited.payload.json @@ -0,0 +1,73 @@ +{ + "action": "edited", + "projects_v2_item": { + "id": 5678510, + "node_id": "PVTI_lADOAWcTxs07G84AVqWu", + "project_node_id": "PVT_kwDOAWcTxs07Gw", + "content_node_id": "DI_lADOAWcTxs07G84AIjOy", + "content_type": "DraftIssue", + "creator": { + "login": "wolfy1339", + "id": 4595477, + "node_id": "MDQ6VXNlcjQ1OTU0Nzc=", + "avatar_url": "https://avatars.githubusercontent.com/u/4595477?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/wolfy1339", + "html_url": "https://github.com/wolfy1339", + "followers_url": "https://api.github.com/users/wolfy1339/followers", + "following_url": "https://api.github.com/users/wolfy1339/following{/other_user}", + "gists_url": "https://api.github.com/users/wolfy1339/gists{/gist_id}", + "starred_url": "https://api.github.com/users/wolfy1339/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/wolfy1339/subscriptions", + "organizations_url": "https://api.github.com/users/wolfy1339/orgs", + "repos_url": "https://api.github.com/users/wolfy1339/repos", + "events_url": "https://api.github.com/users/wolfy1339/events{/privacy}", + "received_events_url": "https://api.github.com/users/wolfy1339/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-06-08T20:34:26Z", + "updated_at": "2022-06-08T20:34:26Z", + "archived_at": null + }, + "changes": { + "field_value": { + "field_node_id": "PVTF_lADOAWcTxs07G84AAali", + "field_type": "single_select" + } + }, + "organization": { + "login": "Octocoders", + "id": 38302899, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5", + "url": "https://api.github.com/orgs/Octocoders", + "repos_url": "https://api.github.com/orgs/Octocoders/repos", + "events_url": "https://api.github.com/orgs/Octocoders/events", + "hooks_url": "https://api.github.com/orgs/Octocoders/hooks", + "issues_url": "https://api.github.com/orgs/Octocoders/issues", + "members_url": "https://api.github.com/orgs/Octocoders/members{/member}", + "public_members_url": "https://api.github.com/orgs/Octocoders/public_members{/member}", + "avatar_url": "https://avatars1.githubusercontent.com/u/38302899?v=4", + "description": "" + }, + "sender": { + "login": "wolfy1339", + "id": 4595477, + "node_id": "MDQ6VXNlcjQ1OTU0Nzc=", + "avatar_url": "https://avatars.githubusercontent.com/u/4595477?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/wolfy1339", + "html_url": "https://github.com/wolfy1339", + "followers_url": "https://api.github.com/users/wolfy1339/followers", + "following_url": "https://api.github.com/users/wolfy1339/following{/other_user}", + "gists_url": "https://api.github.com/users/wolfy1339/gists{/gist_id}", + "starred_url": "https://api.github.com/users/wolfy1339/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/wolfy1339/subscriptions", + "organizations_url": "https://api.github.com/users/wolfy1339/orgs", + "repos_url": "https://api.github.com/users/wolfy1339/repos", + "events_url": "https://api.github.com/users/wolfy1339/events{/privacy}", + "received_events_url": "https://api.github.com/users/wolfy1339/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/payload-examples/api.github.com/projects_v2_item/reordered.payload.json b/payload-examples/api.github.com/projects_v2_item/reordered.payload.json new file mode 100644 index 000000000..94dffe311 --- /dev/null +++ b/payload-examples/api.github.com/projects_v2_item/reordered.payload.json @@ -0,0 +1,77 @@ +{ + "action": "reordered", + "projects_v2_item": { + "id": 5679898, + "node_id": "PVTI_lADOAWcTxs4ACgDdzgBWqxo", + "project_node_id": "PVT_kwDOAWcTxs4ACgDd", + "content_node_id": "I_kwDOCG5vGM5La0aB", + "content_type": "Issue", + "creator": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-06-08T21:14:07Z", + "updated_at": "2022-06-08T21:14:17Z", + "archived_at": null + }, + "changes": { + "previous_projects_v2_item_node_id": { + "from": "PVTI_lADOAWcTxs4ACgDdzgBWqwI", + "to": "PVTI_lADOAWcTxs4ACgDdzgBWqwI" + } + }, + "organization": { + "login": "Octocoders", + "id": 38302899, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5", + "url": "https://api.github.com/orgs/Octocoders", + "repos_url": "https://api.github.com/orgs/Octocoders/repos", + "events_url": "https://api.github.com/orgs/Octocoders/events", + "hooks_url": "https://api.github.com/orgs/Octocoders/hooks", + "issues_url": "https://api.github.com/orgs/Octocoders/issues", + "members_url": "https://api.github.com/orgs/Octocoders/members{/member}", + "public_members_url": "https://api.github.com/orgs/Octocoders/public_members{/member}", + "avatar_url": "https://avatars1.githubusercontent.com/u/38302899?v=4", + "description": "" + }, + "sender": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "installation": { + "id": 249715, + "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uMjQ5NzE1" + } +} diff --git a/payload-examples/api.github.com/projects_v2_item/restored.payload.json b/payload-examples/api.github.com/projects_v2_item/restored.payload.json new file mode 100644 index 000000000..59f5abab1 --- /dev/null +++ b/payload-examples/api.github.com/projects_v2_item/restored.payload.json @@ -0,0 +1,70 @@ +{ + "action": "restored", + "projects_v2_item": { + "id": 5679898, + "node_id": "PVTI_lADOAWcTxs4ACgDdzgBWqxo", + "project_node_id": "PVT_kwDOAWcTxs4ACgDd", + "content_node_id": "I_kwDOCG5vGM5La0aB", + "content_type": "Issue", + "creator": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + }, + "created_at": "2022-06-08T21:14:07Z", + "updated_at": "2022-06-08T21:19:43Z", + "archived_at": null + }, + "changes": { + "archived_at": { "from": "2022-06-08T17:19:35-04:00", "to": null } + }, + "organization": { + "login": "Octocoders", + "id": 38302899, + "node_id": "MDEyOk9yZ2FuaXphdGlvbjM4MzAyODk5", + "url": "https://api.github.com/orgs/Octocoders", + "repos_url": "https://api.github.com/orgs/Octocoders/repos", + "events_url": "https://api.github.com/orgs/Octocoders/events", + "hooks_url": "https://api.github.com/orgs/Octocoders/hooks", + "issues_url": "https://api.github.com/orgs/Octocoders/issues", + "members_url": "https://api.github.com/orgs/Octocoders/members{/member}", + "public_members_url": "https://api.github.com/orgs/Octocoders/public_members{/member}", + "avatar_url": "https://avatars1.githubusercontent.com/u/38302899?v=4", + "description": "" + }, + "sender": { + "login": "Codertocat", + "id": 21031067, + "node_id": "MDQ6VXNlcjIxMDMxMDY3", + "avatar_url": "https://avatars1.githubusercontent.com/u/21031067?v=4", + "gravatar_id": "", + "url": "https://api.github.com/users/Codertocat", + "html_url": "https://github.com/Codertocat", + "followers_url": "https://api.github.com/users/Codertocat/followers", + "following_url": "https://api.github.com/users/Codertocat/following{/other_user}", + "gists_url": "https://api.github.com/users/Codertocat/gists{/gist_id}", + "starred_url": "https://api.github.com/users/Codertocat/starred{/owner}{/repo}", + "subscriptions_url": "https://api.github.com/users/Codertocat/subscriptions", + "organizations_url": "https://api.github.com/users/Codertocat/orgs", + "repos_url": "https://api.github.com/users/Codertocat/repos", + "events_url": "https://api.github.com/users/Codertocat/events{/privacy}", + "received_events_url": "https://api.github.com/users/Codertocat/received_events", + "type": "User", + "site_admin": false + } +} diff --git a/payload-schemas/api.github.com/common/projects_v2_item.schema.json b/payload-schemas/api.github.com/common/projects_v2_item.schema.json new file mode 100644 index 000000000..03d0a5575 --- /dev/null +++ b/payload-schemas/api.github.com/common/projects_v2_item.schema.json @@ -0,0 +1,32 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "common/projects_v2_item.schema.json", + "description": "The project item itself. To find more information about the project item, you can use `node_id` (the node ID of the project item) and `project_node_id` (the node ID of the project) to query information in the GraphQL API. For more information, see \"[Using the API to manage projects (beta)](https://docs.github.com/en/issues/trying-out-the-new-projects-experience/using-the-api-to-manage-projects).\"", + "type": "object", + "required": [ + "id", + "node_id", + "project_node_id", + "content_node_id", + "content_type", + "creator", + "created_at", + "updated_at", + "archived_at" + ], + "properties": { + "id": { "type": "number" }, + "node_id": { "type": "string" }, + "project_node_id": { "type": "string" }, + "content_node_id": { "type": "string" }, + "content_type": { + "type": "string", + "enum": ["DraftIssue", "Issue", "PullRequest"] + }, + "creator": { "$ref": "user.schema.json" }, + "created_at": { "type": "string", "format": "date-time" }, + "updated_at": { "type": "string", "format": "date-time" }, + "archived_at": { "type": ["string", "null"], "format": "date-time" } + }, + "additionalProperties": false +} diff --git a/payload-schemas/api.github.com/projects_v2_item/archived.schema.json b/payload-schemas/api.github.com/projects_v2_item/archived.schema.json new file mode 100644 index 000000000..aa8da0890 --- /dev/null +++ b/payload-schemas/api.github.com/projects_v2_item/archived.schema.json @@ -0,0 +1,43 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "projects_v2_item$archived", + "type": "object", + "required": ["changes", "action", "projects_v2_item", "sender"], + "properties": { + "changes": { + "type": "object", + "required": ["archived_at"], + "properties": { + "archived_at": { + "type": "object", + "required": ["from", "to"], + "properties": { + "from": { "type": "null" }, + "to": { "type": "string", "format": "date-time" } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "action": { "type": "string", "enum": ["archived"] }, + "projects_v2_item": { + "allOf": [ + { "$ref": "common/projects_v2_item.schema.json" }, + { + "type": "object", + "required": ["archived_at"], + "properties": { + "archived_at": { "type": "string", "format": "date-time" } + }, + "tsAdditionalProperties": false + } + ] + }, + "sender": { "$ref": "common/user.schema.json" }, + "organization": { "$ref": "common/organization.schema.json" }, + "installation": { "$ref": "common/installation-lite.schema.json" } + }, + "additionalProperties": false, + "title": "projects_v2_item archived event" +} diff --git a/payload-schemas/api.github.com/projects_v2_item/converted.schema.json b/payload-schemas/api.github.com/projects_v2_item/converted.schema.json new file mode 100644 index 000000000..488b0e519 --- /dev/null +++ b/payload-schemas/api.github.com/projects_v2_item/converted.schema.json @@ -0,0 +1,43 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "projects_v2_item$converted", + "type": "object", + "required": ["changes", "action", "projects_v2_item", "sender"], + "properties": { + "changes": { + "type": "object", + "required": ["content_type"], + "properties": { + "content_type": { + "type": "object", + "required": ["from", "to"], + "properties": { + "from": { "type": "string", "enum": ["DraftIssue"] }, + "to": { "type": "string", "enum": ["Issue"] } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "action": { "type": "string", "enum": ["converted"] }, + "projects_v2_item": { + "allOf": [ + { "$ref": "common/projects_v2_item.schema.json" }, + { + "type": "object", + "required": ["content_type"], + "properties": { + "content_type": { "type": "string", "enum": ["Issue"] } + }, + "tsAdditionalProperties": false + } + ] + }, + "sender": { "$ref": "common/user.schema.json" }, + "organization": { "$ref": "common/organization.schema.json" }, + "installation": { "$ref": "common/installation-lite.schema.json" } + }, + "additionalProperties": false, + "title": "projects_v2_item converted event" +} diff --git a/payload-schemas/api.github.com/projects_v2_item/created.schema.json b/payload-schemas/api.github.com/projects_v2_item/created.schema.json new file mode 100644 index 000000000..b9f29f7b9 --- /dev/null +++ b/payload-schemas/api.github.com/projects_v2_item/created.schema.json @@ -0,0 +1,25 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "projects_v2_item$created", + "type": "object", + "required": ["action", "projects_v2_item", "sender"], + "properties": { + "action": { "type": "string", "enum": ["created"] }, + "projects_v2_item": { + "allOf": [ + { "$ref": "common/projects_v2_item.schema.json" }, + { + "type": "object", + "required": ["archived_at"], + "properties": { "archived_at": { "type": "null" } }, + "tsAdditionalProperties": false + } + ] + }, + "sender": { "$ref": "common/user.schema.json" }, + "organization": { "$ref": "common/organization.schema.json" }, + "installation": { "$ref": "common/installation-lite.schema.json" } + }, + "additionalProperties": false, + "title": "projects_v2_item created event" +} diff --git a/payload-schemas/api.github.com/projects_v2_item/deleted.schema.json b/payload-schemas/api.github.com/projects_v2_item/deleted.schema.json new file mode 100644 index 000000000..b8b8bad8e --- /dev/null +++ b/payload-schemas/api.github.com/projects_v2_item/deleted.schema.json @@ -0,0 +1,15 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "projects_v2_item$deleted", + "type": "object", + "required": ["action", "projects_v2_item", "sender"], + "properties": { + "action": { "type": "string", "enum": ["deleted"] }, + "projects_v2_item": { "$ref": "common/projects_v2_item.schema.json" }, + "sender": { "$ref": "common/user.schema.json" }, + "organization": { "$ref": "common/organization.schema.json" }, + "installation": { "$ref": "common/installation-lite.schema.json" } + }, + "additionalProperties": false, + "title": "projects_v2_item deleted event" +} diff --git a/payload-schemas/api.github.com/projects_v2_item/edited.schema.json b/payload-schemas/api.github.com/projects_v2_item/edited.schema.json new file mode 100644 index 000000000..63bc1832e --- /dev/null +++ b/payload-schemas/api.github.com/projects_v2_item/edited.schema.json @@ -0,0 +1,34 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "projects_v2_item$edited", + "type": "object", + "required": ["changes", "action", "projects_v2_item", "sender"], + "properties": { + "changes": { + "type": "object", + "required": ["field_value"], + "properties": { + "field_value": { + "type": "object", + "required": ["field_type", "field_node_id"], + "properties": { + "field_type": { + "type": "string", + "enum": ["single_select", "date", "number", "text", "iteration"] + }, + "field_node_id": { "type": "string" } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "action": { "type": "string", "enum": ["edited"] }, + "projects_v2_item": { "$ref": "common/projects_v2_item.schema.json" }, + "sender": { "$ref": "common/user.schema.json" }, + "organization": { "$ref": "common/organization.schema.json" }, + "installation": { "$ref": "common/installation-lite.schema.json" } + }, + "additionalProperties": false, + "title": "projects_v2_item edited event" +} diff --git a/payload-schemas/api.github.com/projects_v2_item/reordered.schema.json b/payload-schemas/api.github.com/projects_v2_item/reordered.schema.json new file mode 100644 index 000000000..2878a82bb --- /dev/null +++ b/payload-schemas/api.github.com/projects_v2_item/reordered.schema.json @@ -0,0 +1,31 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "projects_v2_item$reordered", + "type": "object", + "required": ["changes", "action", "projects_v2_item", "sender"], + "properties": { + "changes": { + "type": "object", + "required": ["previous_projects_v2_item_node_id"], + "properties": { + "previous_projects_v2_item_node_id": { + "type": "object", + "required": ["from", "to"], + "properties": { + "from": { "type": "string" }, + "to": { "type": ["string", "null"] } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "action": { "type": "string", "enum": ["reordered"] }, + "projects_v2_item": { "$ref": "common/projects_v2_item.schema.json" }, + "sender": { "$ref": "common/user.schema.json" }, + "organization": { "$ref": "common/organization.schema.json" }, + "installation": { "$ref": "common/installation-lite.schema.json" } + }, + "additionalProperties": false, + "title": "projects_v2_item reordered event" +} diff --git a/payload-schemas/api.github.com/projects_v2_item/restored.schema.json b/payload-schemas/api.github.com/projects_v2_item/restored.schema.json new file mode 100644 index 000000000..c26dfec34 --- /dev/null +++ b/payload-schemas/api.github.com/projects_v2_item/restored.schema.json @@ -0,0 +1,41 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "$id": "projects_v2_item$restored", + "type": "object", + "required": ["changes", "action", "projects_v2_item", "sender"], + "properties": { + "changes": { + "type": "object", + "required": ["archived_at"], + "properties": { + "archived_at": { + "type": "object", + "required": ["from", "to"], + "properties": { + "from": { "type": "string", "format": "date-time" }, + "to": { "type": "null" } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + "action": { "type": "string", "enum": ["restored"] }, + "projects_v2_item": { + "allOf": [ + { "$ref": "common/projects_v2_item.schema.json" }, + { + "type": "object", + "required": ["archived_at"], + "properties": { "archived_at": { "type": "null" } }, + "tsAdditionalProperties": false + } + ] + }, + "sender": { "$ref": "common/user.schema.json" }, + "organization": { "$ref": "common/organization.schema.json" }, + "installation": { "$ref": "common/installation-lite.schema.json" } + }, + "additionalProperties": false, + "title": "projects_v2_item restored event" +} diff --git a/payload-schemas/api.github.com/workflow_dispatch/event.schema.json b/payload-schemas/api.github.com/workflow_dispatch/event.schema.json index 1ebefbb5d..d5f8180df 100644 --- a/payload-schemas/api.github.com/workflow_dispatch/event.schema.json +++ b/payload-schemas/api.github.com/workflow_dispatch/event.schema.json @@ -5,12 +5,16 @@ "required": ["inputs", "ref", "repository", "sender", "workflow"], "properties": { "inputs": { + "description": "Inputs to the workflow. Each key represents the name of the input while it's value represents the value of that input.", "oneOf": [ { "type": "object", "properties": {}, "additionalProperties": true }, { "type": "null" } ] }, - "ref": { "type": "string" }, + "ref": { + "description": "The branch ref from which the workflow was run.", + "type": "string" + }, "repository": { "$ref": "common/repository.schema.json" }, "sender": { "$ref": "common/user.schema.json" }, "installation": { "$ref": "common/installation-lite.schema.json" }, diff --git a/payload-types/schema.d.ts b/payload-types/schema.d.ts index cfa35e6d8..5ad0cbcae 100644 --- a/payload-types/schema.d.ts +++ b/payload-types/schema.d.ts @@ -39,6 +39,7 @@ export type Schema = | ProjectEvent | ProjectCardEvent | ProjectColumnEvent + | ProjectsV2ItemEvent | PublicEvent | PullRequestEvent | PullRequestReviewEvent @@ -244,6 +245,14 @@ export type ProjectColumnEvent = | ProjectColumnDeletedEvent | ProjectColumnEditedEvent | ProjectColumnMovedEvent; +export type ProjectsV2ItemEvent = + | ProjectsV2ItemArchivedEvent + | ProjectsV2ItemConvertedEvent + | ProjectsV2ItemCreatedEvent + | ProjectsV2ItemDeletedEvent + | ProjectsV2ItemEditedEvent + | ProjectsV2ItemReorderedEvent + | ProjectsV2ItemRestoredEvent; export type PullRequestEvent = | PullRequestAssignedEvent | PullRequestAutoMergeDisabledEvent @@ -4275,6 +4284,107 @@ export interface ProjectColumnMovedEvent { installation?: InstallationLite; organization?: Organization; } +export interface ProjectsV2ItemArchivedEvent { + changes: { + archived_at: { + from: null; + to: string; + }; + }; + action: "archived"; + projects_v2_item: ProjectsV2Item & { + archived_at: string; + }; + sender: User; + organization?: Organization; + installation?: InstallationLite; +} +/** + * The project item itself. To find more information about the project item, you can use `node_id` (the node ID of the project item) and `project_node_id` (the node ID of the project) to query information in the GraphQL API. For more information, see "[Using the API to manage projects (beta)](https://docs.github.com/en/issues/trying-out-the-new-projects-experience/using-the-api-to-manage-projects)." + */ +export interface ProjectsV2Item { + id: number; + node_id: string; + project_node_id: string; + content_node_id: string; + content_type: "DraftIssue" | "Issue" | "PullRequest"; + creator: User; + created_at: string; + updated_at: string; + archived_at: string | null; +} +export interface ProjectsV2ItemConvertedEvent { + changes: { + content_type: { + from: "DraftIssue"; + to: "Issue"; + }; + }; + action: "converted"; + projects_v2_item: ProjectsV2Item & { + content_type: "Issue"; + }; + sender: User; + organization?: Organization; + installation?: InstallationLite; +} +export interface ProjectsV2ItemCreatedEvent { + action: "created"; + projects_v2_item: ProjectsV2Item & { + archived_at: null; + }; + sender: User; + organization?: Organization; + installation?: InstallationLite; +} +export interface ProjectsV2ItemDeletedEvent { + action: "deleted"; + projects_v2_item: ProjectsV2Item; + sender: User; + organization?: Organization; + installation?: InstallationLite; +} +export interface ProjectsV2ItemEditedEvent { + changes: { + field_value: { + field_type: "single_select" | "date" | "number" | "text" | "iteration"; + field_node_id: string; + }; + }; + action: "edited"; + projects_v2_item: ProjectsV2Item; + sender: User; + organization?: Organization; + installation?: InstallationLite; +} +export interface ProjectsV2ItemReorderedEvent { + changes: { + previous_projects_v2_item_node_id: { + from: string; + to: string | null; + }; + }; + action: "reordered"; + projects_v2_item: ProjectsV2Item; + sender: User; + organization?: Organization; + installation?: InstallationLite; +} +export interface ProjectsV2ItemRestoredEvent { + changes: { + archived_at: { + from: string; + to: null; + }; + }; + action: "restored"; + projects_v2_item: ProjectsV2Item & { + archived_at: null; + }; + sender: User; + organization?: Organization; + installation?: InstallationLite; +} /** * When a private repository is made public. */ @@ -6085,9 +6195,15 @@ export interface WatchStartedEvent { organization?: Organization; } export interface WorkflowDispatchEvent { + /** + * Inputs to the workflow. Each key represents the name of the input while it's value represents the value of that input. + */ inputs: { [k: string]: unknown; } | null; + /** + * The branch ref from which the workflow was run. + */ ref: string; repository: Repository; sender: User; @@ -6381,6 +6497,7 @@ export interface EventPayloadMap { project: ProjectEvent; project_card: ProjectCardEvent; project_column: ProjectColumnEvent; + projects_v2_item: ProjectsV2ItemEvent; public: PublicEvent; pull_request: PullRequestEvent; pull_request_review: PullRequestReviewEvent;