From fec42f4ebfccb93184f5da537896ec59f6b5ca68 Mon Sep 17 00:00:00 2001 From: Ju4tCode <42488585+yanyongyu@users.noreply.github.com> Date: Sun, 4 Feb 2024 04:14:21 +0000 Subject: [PATCH] :sparkles: split events into single files --- codegen/__init__.py | 19 +- codegen/templates/__init__.py.jinja | 8 +- codegen/templates/event.py.jinja | 5 - nonebot/adapters/github/event/__init__.py | 1114 +++++++++-------- ...anch_protection_configuration_disabled.py} | 6 - ...branch_protection_configuration_enabled.py | 8 + .../github/event/branch_protection_rule.py | 22 - .../event/branch_protection_rule_created.py | 8 + .../event/branch_protection_rule_deleted.py | 8 + .../event/branch_protection_rule_edited.py | 8 + nonebot/adapters/github/event/check_run.py | 28 - .../github/event/check_run_completed.py | 8 + .../github/event/check_run_created.py | 8 + .../event/check_run_requested_action.py | 8 + .../github/event/check_run_rerequested.py | 8 + nonebot/adapters/github/event/check_suite.py | 22 - .../github/event/check_suite_completed.py | 8 + .../github/event/check_suite_requested.py | 8 + .../github/event/check_suite_rerequested.py | 8 + .../github/event/code_scanning_alert.py | 40 - .../code_scanning_alert_appeared_in_branch.py | 8 + .../code_scanning_alert_closed_by_user.py | 8 + .../event/code_scanning_alert_created.py | 8 + .../github/event/code_scanning_alert_fixed.py | 8 + .../event/code_scanning_alert_reopened.py | 8 + .../code_scanning_alert_reopened_by_user.py | 8 + .../adapters/github/event/custom_property.py | 22 - .../github/event/custom_property_created.py | 8 + .../github/event/custom_property_deleted.py | 8 + .../github/event/custom_property_updated.py | 8 + .../adapters/github/event/dependabot_alert.py | 46 - .../event/dependabot_alert_auto_dismissed.py | 8 + .../event/dependabot_alert_auto_reopened.py | 8 + .../github/event/dependabot_alert_created.py | 8 + .../event/dependabot_alert_dismissed.py | 8 + .../github/event/dependabot_alert_fixed.py | 8 + .../event/dependabot_alert_reintroduced.py | 8 + .../github/event/dependabot_alert_reopened.py | 8 + nonebot/adapters/github/event/deploy_key.py | 16 - .../github/event/deploy_key_created.py | 8 + .../github/event/deploy_key_deleted.py | 8 + .../github/event/deployment_review.py | 22 - .../event/deployment_review_approved.py | 8 + .../event/deployment_review_rejected.py | 8 + .../event/deployment_review_requested.py | 8 + nonebot/adapters/github/event/discussion.py | 94 -- .../github/event/discussion_answered.py | 8 + .../event/discussion_category_changed.py | 8 + .../github/event/discussion_closed.py | 8 + .../github/event/discussion_comment.py | 22 - .../event/discussion_comment_created.py | 8 + .../event/discussion_comment_deleted.py | 8 + .../github/event/discussion_comment_edited.py | 8 + .../github/event/discussion_created.py | 8 + .../github/event/discussion_deleted.py | 8 + .../github/event/discussion_edited.py | 8 + .../github/event/discussion_labeled.py | 8 + .../github/event/discussion_locked.py | 8 + .../github/event/discussion_pinned.py | 8 + .../github/event/discussion_reopened.py | 8 + .../github/event/discussion_transferred.py | 8 + .../github/event/discussion_unanswered.py | 8 + .../github/event/discussion_unlabeled.py | 8 + .../github/event/discussion_unlocked.py | 8 + .../github/event/discussion_unpinned.py | 8 + nonebot/adapters/github/event/installation.py | 34 - .../github/event/installation_created.py | 8 + .../github/event/installation_deleted.py | 8 + .../installation_new_permissions_accepted.py | 8 + .../github/event/installation_repositories.py | 16 - .../event/installation_repositories_added.py | 8 + .../installation_repositories_removed.py | 8 + .../github/event/installation_suspend.py | 8 + .../github/event/installation_unsuspend.py | 8 + .../adapters/github/event/issue_comment.py | 63 - .../github/event/issue_comment_created.py | 27 + .../github/event/issue_comment_deleted.py | 23 + .../github/event/issue_comment_edited.py | 23 + nonebot/adapters/github/event/issues.py | 100 -- .../adapters/github/event/issues_assigned.py | 8 + .../adapters/github/event/issues_closed.py | 8 + .../adapters/github/event/issues_deleted.py | 8 + .../github/event/issues_demilestoned.py | 8 + .../adapters/github/event/issues_edited.py | 8 + .../adapters/github/event/issues_labeled.py | 8 + .../adapters/github/event/issues_locked.py | 8 + .../github/event/issues_milestoned.py | 8 + .../adapters/github/event/issues_opened.py | 8 + .../adapters/github/event/issues_pinned.py | 8 + .../adapters/github/event/issues_reopened.py | 8 + .../github/event/issues_transferred.py | 8 + .../github/event/issues_unassigned.py | 8 + .../adapters/github/event/issues_unlabeled.py | 8 + .../adapters/github/event/issues_unlocked.py | 8 + .../adapters/github/event/issues_unpinned.py | 8 + nonebot/adapters/github/event/label.py | 22 - .../adapters/github/event/label_created.py | 8 + .../adapters/github/event/label_deleted.py | 8 + nonebot/adapters/github/event/label_edited.py | 8 + .../github/event/marketplace_purchase.py | 34 - .../event/marketplace_purchase_cancelled.py | 8 + .../event/marketplace_purchase_changed.py | 8 + .../marketplace_purchase_pending_change.py | 8 + ...place_purchase_pending_change_cancelled.py | 10 + .../event/marketplace_purchase_purchased.py | 8 + nonebot/adapters/github/event/member.py | 22 - nonebot/adapters/github/event/member_added.py | 8 + .../adapters/github/event/member_edited.py | 8 + .../adapters/github/event/member_removed.py | 8 + nonebot/adapters/github/event/membership.py | 16 - .../adapters/github/event/membership_added.py | 8 + .../github/event/membership_removed.py | 8 + nonebot/adapters/github/event/merge_group.py | 16 - .../event/merge_group_checks_requested.py | 8 + .../github/event/merge_group_destroyed.py | 8 + nonebot/adapters/github/event/milestone.py | 34 - .../adapters/github/event/milestone_closed.py | 8 + .../github/event/milestone_created.py | 8 + .../github/event/milestone_deleted.py | 8 + .../adapters/github/event/milestone_edited.py | 8 + .../adapters/github/event/milestone_opened.py | 8 + nonebot/adapters/github/event/org_block.py | 16 - .../github/event/org_block_blocked.py | 8 + .../github/event/org_block_unblocked.py | 8 + nonebot/adapters/github/event/organization.py | 34 - .../github/event/organization_deleted.py | 8 + .../github/event/organization_member_added.py | 8 + .../event/organization_member_invited.py | 8 + .../event/organization_member_removed.py | 8 + .../github/event/organization_renamed.py | 8 + nonebot/adapters/github/event/package.py | 16 - .../github/event/package_published.py | 8 + .../adapters/github/event/package_updated.py | 8 + .../event/personal_access_token_request.py | 28 - .../personal_access_token_request_approved.py | 8 + ...personal_access_token_request_cancelled.py | 8 + .../personal_access_token_request_created.py | 8 + .../personal_access_token_request_denied.py | 8 + nonebot/adapters/github/event/project.py | 34 - nonebot/adapters/github/event/project_card.py | 34 - .../github/event/project_card_converted.py | 8 + .../github/event/project_card_created.py | 8 + .../github/event/project_card_deleted.py | 8 + .../github/event/project_card_edited.py | 8 + .../github/event/project_card_moved.py | 8 + .../adapters/github/event/project_closed.py | 8 + .../adapters/github/event/project_column.py | 28 - .../github/event/project_column_created.py | 8 + .../github/event/project_column_deleted.py | 8 + .../github/event/project_column_edited.py | 8 + .../github/event/project_column_moved.py | 8 + .../adapters/github/event/project_created.py | 8 + .../adapters/github/event/project_deleted.py | 8 + .../adapters/github/event/project_edited.py | 8 + .../adapters/github/event/project_reopened.py | 8 + nonebot/adapters/github/event/projects_v2.py | 34 - .../github/event/projects_v2_closed.py | 8 + .../github/event/projects_v2_created.py | 8 + .../github/event/projects_v2_deleted.py | 8 + .../github/event/projects_v2_edited.py | 8 + .../adapters/github/event/projects_v2_item.py | 46 - .../github/event/projects_v2_item_archived.py | 8 + .../event/projects_v2_item_converted.py | 8 + .../github/event/projects_v2_item_created.py | 8 + .../github/event/projects_v2_item_deleted.py | 8 + .../github/event/projects_v2_item_edited.py | 8 + .../event/projects_v2_item_reordered.py | 8 + .../github/event/projects_v2_item_restored.py | 8 + .../github/event/projects_v2_reopened.py | 8 + nonebot/adapters/github/event/pull_request.py | 139 -- .../github/event/pull_request_assigned.py | 8 + .../event/pull_request_auto_merge_disabled.py | 8 + .../event/pull_request_auto_merge_enabled.py | 8 + .../github/event/pull_request_closed.py | 8 + .../event/pull_request_converted_to_draft.py | 8 + .../github/event/pull_request_demilestoned.py | 8 + .../github/event/pull_request_dequeued.py | 8 + .../github/event/pull_request_edited.py | 8 + .../github/event/pull_request_enqueued.py | 8 + .../github/event/pull_request_labeled.py | 8 + .../github/event/pull_request_locked.py | 8 + .../github/event/pull_request_milestoned.py | 8 + .../github/event/pull_request_opened.py | 8 + .../event/pull_request_ready_for_review.py | 8 + .../github/event/pull_request_reopened.py | 8 + .../github/event/pull_request_review.py | 22 - .../event/pull_request_review_comment.py | 63 - .../pull_request_review_comment_created.py | 27 + .../pull_request_review_comment_deleted.py | 23 + .../pull_request_review_comment_edited.py | 23 + .../event/pull_request_review_dismissed.py | 8 + .../event/pull_request_review_edited.py | 8 + .../pull_request_review_request_removed.py | 16 + .../event/pull_request_review_requested.py | 15 + .../event/pull_request_review_submitted.py | 8 + .../event/pull_request_review_thread.py | 16 - .../pull_request_review_thread_resolved.py | 8 + .../pull_request_review_thread_unresolved.py | 8 + .../github/event/pull_request_synchronize.py | 8 + .../github/event/pull_request_unassigned.py | 8 + .../github/event/pull_request_unlabeled.py | 8 + .../github/event/pull_request_unlocked.py | 8 + .../adapters/github/event/registry_package.py | 16 - .../event/registry_package_published.py | 8 + .../github/event/registry_package_updated.py | 8 + nonebot/adapters/github/event/release.py | 46 - .../adapters/github/event/release_created.py | 8 + .../adapters/github/event/release_deleted.py | 8 + .../adapters/github/event/release_edited.py | 8 + .../github/event/release_prereleased.py | 8 + .../github/event/release_published.py | 8 + .../adapters/github/event/release_released.py | 8 + .../github/event/release_unpublished.py | 8 + nonebot/adapters/github/event/repository.py | 58 - .../github/event/repository_advisory.py | 16 - .../event/repository_advisory_published.py | 8 + .../event/repository_advisory_reported.py | 8 + .../github/event/repository_archived.py | 8 + .../github/event/repository_created.py | 8 + .../github/event/repository_deleted.py | 8 + .../github/event/repository_edited.py | 8 + .../github/event/repository_privatized.py | 8 + .../github/event/repository_publicized.py | 8 + .../github/event/repository_renamed.py | 8 + .../github/event/repository_ruleset.py | 22 - .../event/repository_ruleset_created.py | 8 + .../event/repository_ruleset_deleted.py | 8 + .../github/event/repository_ruleset_edited.py | 8 + .../github/event/repository_transferred.py | 8 + .../github/event/repository_unarchived.py | 8 + .../event/repository_vulnerability_alert.py | 28 - .../repository_vulnerability_alert_create.py | 8 + .../repository_vulnerability_alert_dismiss.py | 8 + .../repository_vulnerability_alert_reopen.py | 8 + .../repository_vulnerability_alert_resolve.py | 8 + .../github/event/secret_scanning_alert.py | 28 - .../event/secret_scanning_alert_created.py | 8 + .../event/secret_scanning_alert_reopened.py | 8 + .../event/secret_scanning_alert_resolved.py | 8 + .../event/secret_scanning_alert_revoked.py | 8 + .../github/event/security_advisory.py | 22 - .../event/security_advisory_published.py | 8 + .../github/event/security_advisory_updated.py | 8 + .../event/security_advisory_withdrawn.py | 8 + nonebot/adapters/github/event/sponsorship.py | 40 - .../github/event/sponsorship_cancelled.py | 8 + .../github/event/sponsorship_created.py | 8 + .../github/event/sponsorship_edited.py | 8 + .../event/sponsorship_pending_cancellation.py | 8 + .../event/sponsorship_pending_tier_change.py | 8 + .../github/event/sponsorship_tier_changed.py | 8 + nonebot/adapters/github/event/star.py | 13 - nonebot/adapters/github/event/star_created.py | 8 + nonebot/adapters/github/event/star_deleted.py | 8 + nonebot/adapters/github/event/team.py | 34 - .../github/event/team_added_to_repository.py | 8 + nonebot/adapters/github/event/team_created.py | 8 + nonebot/adapters/github/event/team_deleted.py | 8 + nonebot/adapters/github/event/team_edited.py | 8 + .../event/team_removed_from_repository.py | 8 + nonebot/adapters/github/event/workflow_job.py | 28 - .../github/event/workflow_job_completed.py | 8 + .../github/event/workflow_job_in_progress.py | 8 + .../github/event/workflow_job_queued.py | 8 + .../github/event/workflow_job_waiting.py | 8 + nonebot/adapters/github/event/workflow_run.py | 22 - .../github/event/workflow_run_completed.py | 8 + .../github/event/workflow_run_in_progress.py | 8 + .../github/event/workflow_run_requested.py | 8 + 269 files changed, 2435 insertions(+), 2150 deletions(-) rename nonebot/adapters/github/event/{branch_protection_configuration.py => branch_protection_configuration_disabled.py} (59%) create mode 100644 nonebot/adapters/github/event/branch_protection_configuration_enabled.py delete mode 100644 nonebot/adapters/github/event/branch_protection_rule.py create mode 100644 nonebot/adapters/github/event/branch_protection_rule_created.py create mode 100644 nonebot/adapters/github/event/branch_protection_rule_deleted.py create mode 100644 nonebot/adapters/github/event/branch_protection_rule_edited.py delete mode 100644 nonebot/adapters/github/event/check_run.py create mode 100644 nonebot/adapters/github/event/check_run_completed.py create mode 100644 nonebot/adapters/github/event/check_run_created.py create mode 100644 nonebot/adapters/github/event/check_run_requested_action.py create mode 100644 nonebot/adapters/github/event/check_run_rerequested.py delete mode 100644 nonebot/adapters/github/event/check_suite.py create mode 100644 nonebot/adapters/github/event/check_suite_completed.py create mode 100644 nonebot/adapters/github/event/check_suite_requested.py create mode 100644 nonebot/adapters/github/event/check_suite_rerequested.py delete mode 100644 nonebot/adapters/github/event/code_scanning_alert.py create mode 100644 nonebot/adapters/github/event/code_scanning_alert_appeared_in_branch.py create mode 100644 nonebot/adapters/github/event/code_scanning_alert_closed_by_user.py create mode 100644 nonebot/adapters/github/event/code_scanning_alert_created.py create mode 100644 nonebot/adapters/github/event/code_scanning_alert_fixed.py create mode 100644 nonebot/adapters/github/event/code_scanning_alert_reopened.py create mode 100644 nonebot/adapters/github/event/code_scanning_alert_reopened_by_user.py delete mode 100644 nonebot/adapters/github/event/custom_property.py create mode 100644 nonebot/adapters/github/event/custom_property_created.py create mode 100644 nonebot/adapters/github/event/custom_property_deleted.py create mode 100644 nonebot/adapters/github/event/custom_property_updated.py delete mode 100644 nonebot/adapters/github/event/dependabot_alert.py create mode 100644 nonebot/adapters/github/event/dependabot_alert_auto_dismissed.py create mode 100644 nonebot/adapters/github/event/dependabot_alert_auto_reopened.py create mode 100644 nonebot/adapters/github/event/dependabot_alert_created.py create mode 100644 nonebot/adapters/github/event/dependabot_alert_dismissed.py create mode 100644 nonebot/adapters/github/event/dependabot_alert_fixed.py create mode 100644 nonebot/adapters/github/event/dependabot_alert_reintroduced.py create mode 100644 nonebot/adapters/github/event/dependabot_alert_reopened.py delete mode 100644 nonebot/adapters/github/event/deploy_key.py create mode 100644 nonebot/adapters/github/event/deploy_key_created.py create mode 100644 nonebot/adapters/github/event/deploy_key_deleted.py delete mode 100644 nonebot/adapters/github/event/deployment_review.py create mode 100644 nonebot/adapters/github/event/deployment_review_approved.py create mode 100644 nonebot/adapters/github/event/deployment_review_rejected.py create mode 100644 nonebot/adapters/github/event/deployment_review_requested.py delete mode 100644 nonebot/adapters/github/event/discussion.py create mode 100644 nonebot/adapters/github/event/discussion_answered.py create mode 100644 nonebot/adapters/github/event/discussion_category_changed.py create mode 100644 nonebot/adapters/github/event/discussion_closed.py delete mode 100644 nonebot/adapters/github/event/discussion_comment.py create mode 100644 nonebot/adapters/github/event/discussion_comment_created.py create mode 100644 nonebot/adapters/github/event/discussion_comment_deleted.py create mode 100644 nonebot/adapters/github/event/discussion_comment_edited.py create mode 100644 nonebot/adapters/github/event/discussion_created.py create mode 100644 nonebot/adapters/github/event/discussion_deleted.py create mode 100644 nonebot/adapters/github/event/discussion_edited.py create mode 100644 nonebot/adapters/github/event/discussion_labeled.py create mode 100644 nonebot/adapters/github/event/discussion_locked.py create mode 100644 nonebot/adapters/github/event/discussion_pinned.py create mode 100644 nonebot/adapters/github/event/discussion_reopened.py create mode 100644 nonebot/adapters/github/event/discussion_transferred.py create mode 100644 nonebot/adapters/github/event/discussion_unanswered.py create mode 100644 nonebot/adapters/github/event/discussion_unlabeled.py create mode 100644 nonebot/adapters/github/event/discussion_unlocked.py create mode 100644 nonebot/adapters/github/event/discussion_unpinned.py delete mode 100644 nonebot/adapters/github/event/installation.py create mode 100644 nonebot/adapters/github/event/installation_created.py create mode 100644 nonebot/adapters/github/event/installation_deleted.py create mode 100644 nonebot/adapters/github/event/installation_new_permissions_accepted.py delete mode 100644 nonebot/adapters/github/event/installation_repositories.py create mode 100644 nonebot/adapters/github/event/installation_repositories_added.py create mode 100644 nonebot/adapters/github/event/installation_repositories_removed.py create mode 100644 nonebot/adapters/github/event/installation_suspend.py create mode 100644 nonebot/adapters/github/event/installation_unsuspend.py delete mode 100644 nonebot/adapters/github/event/issue_comment.py create mode 100644 nonebot/adapters/github/event/issue_comment_created.py create mode 100644 nonebot/adapters/github/event/issue_comment_deleted.py create mode 100644 nonebot/adapters/github/event/issue_comment_edited.py delete mode 100644 nonebot/adapters/github/event/issues.py create mode 100644 nonebot/adapters/github/event/issues_assigned.py create mode 100644 nonebot/adapters/github/event/issues_closed.py create mode 100644 nonebot/adapters/github/event/issues_deleted.py create mode 100644 nonebot/adapters/github/event/issues_demilestoned.py create mode 100644 nonebot/adapters/github/event/issues_edited.py create mode 100644 nonebot/adapters/github/event/issues_labeled.py create mode 100644 nonebot/adapters/github/event/issues_locked.py create mode 100644 nonebot/adapters/github/event/issues_milestoned.py create mode 100644 nonebot/adapters/github/event/issues_opened.py create mode 100644 nonebot/adapters/github/event/issues_pinned.py create mode 100644 nonebot/adapters/github/event/issues_reopened.py create mode 100644 nonebot/adapters/github/event/issues_transferred.py create mode 100644 nonebot/adapters/github/event/issues_unassigned.py create mode 100644 nonebot/adapters/github/event/issues_unlabeled.py create mode 100644 nonebot/adapters/github/event/issues_unlocked.py create mode 100644 nonebot/adapters/github/event/issues_unpinned.py delete mode 100644 nonebot/adapters/github/event/label.py create mode 100644 nonebot/adapters/github/event/label_created.py create mode 100644 nonebot/adapters/github/event/label_deleted.py create mode 100644 nonebot/adapters/github/event/label_edited.py delete mode 100644 nonebot/adapters/github/event/marketplace_purchase.py create mode 100644 nonebot/adapters/github/event/marketplace_purchase_cancelled.py create mode 100644 nonebot/adapters/github/event/marketplace_purchase_changed.py create mode 100644 nonebot/adapters/github/event/marketplace_purchase_pending_change.py create mode 100644 nonebot/adapters/github/event/marketplace_purchase_pending_change_cancelled.py create mode 100644 nonebot/adapters/github/event/marketplace_purchase_purchased.py delete mode 100644 nonebot/adapters/github/event/member.py create mode 100644 nonebot/adapters/github/event/member_added.py create mode 100644 nonebot/adapters/github/event/member_edited.py create mode 100644 nonebot/adapters/github/event/member_removed.py delete mode 100644 nonebot/adapters/github/event/membership.py create mode 100644 nonebot/adapters/github/event/membership_added.py create mode 100644 nonebot/adapters/github/event/membership_removed.py delete mode 100644 nonebot/adapters/github/event/merge_group.py create mode 100644 nonebot/adapters/github/event/merge_group_checks_requested.py create mode 100644 nonebot/adapters/github/event/merge_group_destroyed.py delete mode 100644 nonebot/adapters/github/event/milestone.py create mode 100644 nonebot/adapters/github/event/milestone_closed.py create mode 100644 nonebot/adapters/github/event/milestone_created.py create mode 100644 nonebot/adapters/github/event/milestone_deleted.py create mode 100644 nonebot/adapters/github/event/milestone_edited.py create mode 100644 nonebot/adapters/github/event/milestone_opened.py delete mode 100644 nonebot/adapters/github/event/org_block.py create mode 100644 nonebot/adapters/github/event/org_block_blocked.py create mode 100644 nonebot/adapters/github/event/org_block_unblocked.py delete mode 100644 nonebot/adapters/github/event/organization.py create mode 100644 nonebot/adapters/github/event/organization_deleted.py create mode 100644 nonebot/adapters/github/event/organization_member_added.py create mode 100644 nonebot/adapters/github/event/organization_member_invited.py create mode 100644 nonebot/adapters/github/event/organization_member_removed.py create mode 100644 nonebot/adapters/github/event/organization_renamed.py delete mode 100644 nonebot/adapters/github/event/package.py create mode 100644 nonebot/adapters/github/event/package_published.py create mode 100644 nonebot/adapters/github/event/package_updated.py delete mode 100644 nonebot/adapters/github/event/personal_access_token_request.py create mode 100644 nonebot/adapters/github/event/personal_access_token_request_approved.py create mode 100644 nonebot/adapters/github/event/personal_access_token_request_cancelled.py create mode 100644 nonebot/adapters/github/event/personal_access_token_request_created.py create mode 100644 nonebot/adapters/github/event/personal_access_token_request_denied.py delete mode 100644 nonebot/adapters/github/event/project.py delete mode 100644 nonebot/adapters/github/event/project_card.py create mode 100644 nonebot/adapters/github/event/project_card_converted.py create mode 100644 nonebot/adapters/github/event/project_card_created.py create mode 100644 nonebot/adapters/github/event/project_card_deleted.py create mode 100644 nonebot/adapters/github/event/project_card_edited.py create mode 100644 nonebot/adapters/github/event/project_card_moved.py create mode 100644 nonebot/adapters/github/event/project_closed.py delete mode 100644 nonebot/adapters/github/event/project_column.py create mode 100644 nonebot/adapters/github/event/project_column_created.py create mode 100644 nonebot/adapters/github/event/project_column_deleted.py create mode 100644 nonebot/adapters/github/event/project_column_edited.py create mode 100644 nonebot/adapters/github/event/project_column_moved.py create mode 100644 nonebot/adapters/github/event/project_created.py create mode 100644 nonebot/adapters/github/event/project_deleted.py create mode 100644 nonebot/adapters/github/event/project_edited.py create mode 100644 nonebot/adapters/github/event/project_reopened.py delete mode 100644 nonebot/adapters/github/event/projects_v2.py create mode 100644 nonebot/adapters/github/event/projects_v2_closed.py create mode 100644 nonebot/adapters/github/event/projects_v2_created.py create mode 100644 nonebot/adapters/github/event/projects_v2_deleted.py create mode 100644 nonebot/adapters/github/event/projects_v2_edited.py delete mode 100644 nonebot/adapters/github/event/projects_v2_item.py create mode 100644 nonebot/adapters/github/event/projects_v2_item_archived.py create mode 100644 nonebot/adapters/github/event/projects_v2_item_converted.py create mode 100644 nonebot/adapters/github/event/projects_v2_item_created.py create mode 100644 nonebot/adapters/github/event/projects_v2_item_deleted.py create mode 100644 nonebot/adapters/github/event/projects_v2_item_edited.py create mode 100644 nonebot/adapters/github/event/projects_v2_item_reordered.py create mode 100644 nonebot/adapters/github/event/projects_v2_item_restored.py create mode 100644 nonebot/adapters/github/event/projects_v2_reopened.py delete mode 100644 nonebot/adapters/github/event/pull_request.py create mode 100644 nonebot/adapters/github/event/pull_request_assigned.py create mode 100644 nonebot/adapters/github/event/pull_request_auto_merge_disabled.py create mode 100644 nonebot/adapters/github/event/pull_request_auto_merge_enabled.py create mode 100644 nonebot/adapters/github/event/pull_request_closed.py create mode 100644 nonebot/adapters/github/event/pull_request_converted_to_draft.py create mode 100644 nonebot/adapters/github/event/pull_request_demilestoned.py create mode 100644 nonebot/adapters/github/event/pull_request_dequeued.py create mode 100644 nonebot/adapters/github/event/pull_request_edited.py create mode 100644 nonebot/adapters/github/event/pull_request_enqueued.py create mode 100644 nonebot/adapters/github/event/pull_request_labeled.py create mode 100644 nonebot/adapters/github/event/pull_request_locked.py create mode 100644 nonebot/adapters/github/event/pull_request_milestoned.py create mode 100644 nonebot/adapters/github/event/pull_request_opened.py create mode 100644 nonebot/adapters/github/event/pull_request_ready_for_review.py create mode 100644 nonebot/adapters/github/event/pull_request_reopened.py delete mode 100644 nonebot/adapters/github/event/pull_request_review.py delete mode 100644 nonebot/adapters/github/event/pull_request_review_comment.py create mode 100644 nonebot/adapters/github/event/pull_request_review_comment_created.py create mode 100644 nonebot/adapters/github/event/pull_request_review_comment_deleted.py create mode 100644 nonebot/adapters/github/event/pull_request_review_comment_edited.py create mode 100644 nonebot/adapters/github/event/pull_request_review_dismissed.py create mode 100644 nonebot/adapters/github/event/pull_request_review_edited.py create mode 100644 nonebot/adapters/github/event/pull_request_review_request_removed.py create mode 100644 nonebot/adapters/github/event/pull_request_review_requested.py create mode 100644 nonebot/adapters/github/event/pull_request_review_submitted.py delete mode 100644 nonebot/adapters/github/event/pull_request_review_thread.py create mode 100644 nonebot/adapters/github/event/pull_request_review_thread_resolved.py create mode 100644 nonebot/adapters/github/event/pull_request_review_thread_unresolved.py create mode 100644 nonebot/adapters/github/event/pull_request_synchronize.py create mode 100644 nonebot/adapters/github/event/pull_request_unassigned.py create mode 100644 nonebot/adapters/github/event/pull_request_unlabeled.py create mode 100644 nonebot/adapters/github/event/pull_request_unlocked.py delete mode 100644 nonebot/adapters/github/event/registry_package.py create mode 100644 nonebot/adapters/github/event/registry_package_published.py create mode 100644 nonebot/adapters/github/event/registry_package_updated.py delete mode 100644 nonebot/adapters/github/event/release.py create mode 100644 nonebot/adapters/github/event/release_created.py create mode 100644 nonebot/adapters/github/event/release_deleted.py create mode 100644 nonebot/adapters/github/event/release_edited.py create mode 100644 nonebot/adapters/github/event/release_prereleased.py create mode 100644 nonebot/adapters/github/event/release_published.py create mode 100644 nonebot/adapters/github/event/release_released.py create mode 100644 nonebot/adapters/github/event/release_unpublished.py delete mode 100644 nonebot/adapters/github/event/repository.py delete mode 100644 nonebot/adapters/github/event/repository_advisory.py create mode 100644 nonebot/adapters/github/event/repository_advisory_published.py create mode 100644 nonebot/adapters/github/event/repository_advisory_reported.py create mode 100644 nonebot/adapters/github/event/repository_archived.py create mode 100644 nonebot/adapters/github/event/repository_created.py create mode 100644 nonebot/adapters/github/event/repository_deleted.py create mode 100644 nonebot/adapters/github/event/repository_edited.py create mode 100644 nonebot/adapters/github/event/repository_privatized.py create mode 100644 nonebot/adapters/github/event/repository_publicized.py create mode 100644 nonebot/adapters/github/event/repository_renamed.py delete mode 100644 nonebot/adapters/github/event/repository_ruleset.py create mode 100644 nonebot/adapters/github/event/repository_ruleset_created.py create mode 100644 nonebot/adapters/github/event/repository_ruleset_deleted.py create mode 100644 nonebot/adapters/github/event/repository_ruleset_edited.py create mode 100644 nonebot/adapters/github/event/repository_transferred.py create mode 100644 nonebot/adapters/github/event/repository_unarchived.py delete mode 100644 nonebot/adapters/github/event/repository_vulnerability_alert.py create mode 100644 nonebot/adapters/github/event/repository_vulnerability_alert_create.py create mode 100644 nonebot/adapters/github/event/repository_vulnerability_alert_dismiss.py create mode 100644 nonebot/adapters/github/event/repository_vulnerability_alert_reopen.py create mode 100644 nonebot/adapters/github/event/repository_vulnerability_alert_resolve.py delete mode 100644 nonebot/adapters/github/event/secret_scanning_alert.py create mode 100644 nonebot/adapters/github/event/secret_scanning_alert_created.py create mode 100644 nonebot/adapters/github/event/secret_scanning_alert_reopened.py create mode 100644 nonebot/adapters/github/event/secret_scanning_alert_resolved.py create mode 100644 nonebot/adapters/github/event/secret_scanning_alert_revoked.py delete mode 100644 nonebot/adapters/github/event/security_advisory.py create mode 100644 nonebot/adapters/github/event/security_advisory_published.py create mode 100644 nonebot/adapters/github/event/security_advisory_updated.py create mode 100644 nonebot/adapters/github/event/security_advisory_withdrawn.py delete mode 100644 nonebot/adapters/github/event/sponsorship.py create mode 100644 nonebot/adapters/github/event/sponsorship_cancelled.py create mode 100644 nonebot/adapters/github/event/sponsorship_created.py create mode 100644 nonebot/adapters/github/event/sponsorship_edited.py create mode 100644 nonebot/adapters/github/event/sponsorship_pending_cancellation.py create mode 100644 nonebot/adapters/github/event/sponsorship_pending_tier_change.py create mode 100644 nonebot/adapters/github/event/sponsorship_tier_changed.py delete mode 100644 nonebot/adapters/github/event/star.py create mode 100644 nonebot/adapters/github/event/star_created.py create mode 100644 nonebot/adapters/github/event/star_deleted.py delete mode 100644 nonebot/adapters/github/event/team.py create mode 100644 nonebot/adapters/github/event/team_added_to_repository.py create mode 100644 nonebot/adapters/github/event/team_created.py create mode 100644 nonebot/adapters/github/event/team_deleted.py create mode 100644 nonebot/adapters/github/event/team_edited.py create mode 100644 nonebot/adapters/github/event/team_removed_from_repository.py delete mode 100644 nonebot/adapters/github/event/workflow_job.py create mode 100644 nonebot/adapters/github/event/workflow_job_completed.py create mode 100644 nonebot/adapters/github/event/workflow_job_in_progress.py create mode 100644 nonebot/adapters/github/event/workflow_job_queued.py create mode 100644 nonebot/adapters/github/event/workflow_job_waiting.py delete mode 100644 nonebot/adapters/github/event/workflow_run.py create mode 100644 nonebot/adapters/github/event/workflow_run_completed.py create mode 100644 nonebot/adapters/github/event/workflow_run_in_progress.py create mode 100644 nonebot/adapters/github/event/workflow_run_requested.py diff --git a/codegen/__init__.py b/codegen/__init__.py index f9250e1..5916b53 100644 --- a/codegen/__init__.py +++ b/codegen/__init__.py @@ -33,6 +33,10 @@ class Data: payload_types: list[str] +def module_name(event: str, action: Data) -> str: + return f"{event}_{action.action}" if action.action else event + + def pascal_case(*names: str) -> str: words = chain.from_iterable(name.split("_") for name in names) return "".join(word if word.isupper() else word.capitalize() for word in words) @@ -82,6 +86,7 @@ def build_event(): output_dir.mkdir(parents=True, exist_ok=True) env = Environment(loader=PackageLoader("codegen")) + env.globals["filename"] = module_name # generate base model template = env.get_template("_base.py.jinja") @@ -96,13 +101,13 @@ def build_event(): # generate event models template = env.get_template("event.py.jinja") for event, actions in event_types.items(): - event_text = template.render( - event=event, - actions=actions, - message_events=MESSAGE_EVENTS, - has_message_events=HAS_MESSAGE_EVENTS, - ) - (output_dir / f"{event}.py").write_text(event_text) + for action in actions: + event_text = template.render( + action=action, + message_events=MESSAGE_EVENTS, + has_message_events=HAS_MESSAGE_EVENTS, + ) + (output_dir / f"{module_name(event, action)}.py").write_text(event_text) # generate init file template = env.get_template("__init__.py.jinja") diff --git a/codegen/templates/__init__.py.jinja b/codegen/templates/__init__.py.jinja index 0cc3a54..beff407 100644 --- a/codegen/templates/__init__.py.jinja +++ b/codegen/templates/__init__.py.jinja @@ -5,18 +5,18 @@ if TYPE_CHECKING: from ._types import events as events {% for event, actions in types.items() %} {% for action in actions %} - from .{{ event }} import {{ action.class_name }} as {{ action.class_name }} + from .{{ filename(event, action) }} import {{ action.class_name }} as {{ action.class_name }} {% endfor %} {% endfor %} else: __lazy_vars__ = { {% for event, actions in types.items() %} - ".{{ event }}": ( - {% for action in actions %} + {% for action in actions %} + ".{{ filename(event, action) }}": ( "{{ action.class_name }}", - {% endfor %} ), {% endfor %} + {% endfor %} "._base": ( "Event", ), diff --git a/codegen/templates/event.py.jinja b/codegen/templates/event.py.jinja index f36d529..0025195 100644 --- a/codegen/templates/event.py.jinja +++ b/codegen/templates/event.py.jinja @@ -2,18 +2,14 @@ from typing import Union from functools import cached_property from typing_extensions import override -{% for action in actions %} {% for model in action.payload_types %} from githubkit.versions.latest.models import {{ model }} {% endfor %} -{% endfor %} from ..message import Message from ._base import Event -{% for action in actions %} - class {{ action.class_name }}(Event): {% if action.payload_types | length > 1 %} payload: Union[{{ action.payload_types | join(", ") }}] @@ -40,4 +36,3 @@ class {{ action.class_name }}(Event): keep_untouched = (cached_property,) {% endif %} -{% endfor %} diff --git a/nonebot/adapters/github/event/__init__.py b/nonebot/adapters/github/event/__init__.py index d4e15f0..fa31d52 100644 --- a/nonebot/adapters/github/event/__init__.py +++ b/nonebot/adapters/github/event/__init__.py @@ -12,691 +12,697 @@ from .public import Public as Public from .status import Status as Status from .team_add import TeamAdd as TeamAdd - from .team import TeamEdited as TeamEdited from .meta import MetaDeleted as MetaDeleted - from .star import StarCreated as StarCreated - from .star import StarDeleted as StarDeleted - from .team import TeamCreated as TeamCreated - from .team import TeamDeleted as TeamDeleted - from .label import LabelEdited as LabelEdited - from .member import MemberAdded as MemberAdded from .page_build import PageBuild as PageBuild - from .label import LabelCreated as LabelCreated - from .label import LabelDeleted as LabelDeleted from .watch import WatchStarted as WatchStarted - from .issues import IssuesClosed as IssuesClosed - from .issues import IssuesEdited as IssuesEdited - from .issues import IssuesLocked as IssuesLocked - from .issues import IssuesOpened as IssuesOpened - from .issues import IssuesPinned as IssuesPinned - from .member import MemberEdited as MemberEdited - from .issues import IssuesDeleted as IssuesDeleted - from .issues import IssuesLabeled as IssuesLabeled - from .member import MemberRemoved as MemberRemoved - from .project import ProjectClosed as ProjectClosed - from .project import ProjectEdited as ProjectEdited - from .release import ReleaseEdited as ReleaseEdited - from .issues import IssuesAssigned as IssuesAssigned - from .issues import IssuesReopened as IssuesReopened - from .issues import IssuesUnlocked as IssuesUnlocked - from .issues import IssuesUnpinned as IssuesUnpinned - from .package import PackageUpdated as PackageUpdated - from .project import ProjectCreated as ProjectCreated - from .project import ProjectDeleted as ProjectDeleted - from .release import ReleaseCreated as ReleaseCreated - from .release import ReleaseDeleted as ReleaseDeleted - from .issues import IssuesUnlabeled as IssuesUnlabeled - from .project import ProjectReopened as ProjectReopened - from .release import ReleaseReleased as ReleaseReleased - from .issues import IssuesMilestoned as IssuesMilestoned - from .issues import IssuesUnassigned as IssuesUnassigned - from .check_run import CheckRunCreated as CheckRunCreated - from .milestone import MilestoneClosed as MilestoneClosed - from .milestone import MilestoneEdited as MilestoneEdited - from .milestone import MilestoneOpened as MilestoneOpened - from .org_block import OrgBlockBlocked as OrgBlockBlocked - from .package import PackagePublished as PackagePublished - from .release import ReleasePublished as ReleasePublished - from .issues import IssuesTransferred as IssuesTransferred - from .membership import MembershipAdded as MembershipAdded - from .milestone import MilestoneCreated as MilestoneCreated - from .milestone import MilestoneDeleted as MilestoneDeleted - from .deploy_key import DeployKeyCreated as DeployKeyCreated - from .deploy_key import DeployKeyDeleted as DeployKeyDeleted - from .discussion import DiscussionClosed as DiscussionClosed - from .discussion import DiscussionEdited as DiscussionEdited - from .discussion import DiscussionLocked as DiscussionLocked - from .discussion import DiscussionPinned as DiscussionPinned - from .issues import IssuesDemilestoned as IssuesDemilestoned - from .repository import RepositoryEdited as RepositoryEdited - from .check_run import CheckRunCompleted as CheckRunCompleted - from .org_block import OrgBlockUnblocked as OrgBlockUnblocked - from .release import ReleasePrereleased as ReleasePrereleased - from .release import ReleaseUnpublished as ReleaseUnpublished + from .team_edited import TeamEdited as TeamEdited + from .label_edited import LabelEdited as LabelEdited + from .member_added import MemberAdded as MemberAdded + from .star_created import StarCreated as StarCreated + from .star_deleted import StarDeleted as StarDeleted + from .team_created import TeamCreated as TeamCreated + from .team_deleted import TeamDeleted as TeamDeleted + from .issues_closed import IssuesClosed as IssuesClosed + from .issues_edited import IssuesEdited as IssuesEdited + from .issues_locked import IssuesLocked as IssuesLocked + from .issues_opened import IssuesOpened as IssuesOpened + from .issues_pinned import IssuesPinned as IssuesPinned + from .label_created import LabelCreated as LabelCreated + from .label_deleted import LabelDeleted as LabelDeleted + from .member_edited import MemberEdited as MemberEdited + from .issues_deleted import IssuesDeleted as IssuesDeleted + from .issues_labeled import IssuesLabeled as IssuesLabeled + from .member_removed import MemberRemoved as MemberRemoved + from .project_closed import ProjectClosed as ProjectClosed + from .project_edited import ProjectEdited as ProjectEdited + from .release_edited import ReleaseEdited as ReleaseEdited + from .issues_assigned import IssuesAssigned as IssuesAssigned + from .issues_reopened import IssuesReopened as IssuesReopened + from .issues_unlocked import IssuesUnlocked as IssuesUnlocked + from .issues_unpinned import IssuesUnpinned as IssuesUnpinned + from .package_updated import PackageUpdated as PackageUpdated + from .project_created import ProjectCreated as ProjectCreated + from .project_deleted import ProjectDeleted as ProjectDeleted + from .release_created import ReleaseCreated as ReleaseCreated + from .release_deleted import ReleaseDeleted as ReleaseDeleted from .deployment import DeploymentCreated as DeploymentCreated - from .discussion import DiscussionCreated as DiscussionCreated - from .discussion import DiscussionDeleted as DiscussionDeleted - from .discussion import DiscussionLabeled as DiscussionLabeled - from .membership import MembershipRemoved as MembershipRemoved - from .project_card import ProjectCardMoved as ProjectCardMoved - from .repository import RepositoryCreated as RepositoryCreated - from .repository import RepositoryDeleted as RepositoryDeleted - from .repository import RepositoryRenamed as RepositoryRenamed - from .sponsorship import SponsorshipEdited as SponsorshipEdited - from .discussion import DiscussionAnswered as DiscussionAnswered - from .discussion import DiscussionReopened as DiscussionReopened - from .discussion import DiscussionUnlocked as DiscussionUnlocked - from .discussion import DiscussionUnpinned as DiscussionUnpinned - from .project_card import ProjectCardEdited as ProjectCardEdited - from .pull_request import PullRequestClosed as PullRequestClosed - from .pull_request import PullRequestEdited as PullRequestEdited - from .pull_request import PullRequestLocked as PullRequestLocked - from .pull_request import PullRequestOpened as PullRequestOpened - from .repository import RepositoryArchived as RepositoryArchived - from .team import TeamAddedToRepository as TeamAddedToRepository - from .workflow_job import WorkflowJobQueued as WorkflowJobQueued - from .check_run import CheckRunRerequested as CheckRunRerequested - from .sponsorship import SponsorshipCreated as SponsorshipCreated - from .discussion import DiscussionUnlabeled as DiscussionUnlabeled - from .project_card import ProjectCardCreated as ProjectCardCreated - from .project_card import ProjectCardDeleted as ProjectCardDeleted - from .pull_request import PullRequestLabeled as PullRequestLabeled - from .workflow_job import WorkflowJobWaiting as WorkflowJobWaiting - from .check_suite import CheckSuiteCompleted as CheckSuiteCompleted - from .check_suite import CheckSuiteRequested as CheckSuiteRequested - from .issue_comment import IssueCommentEdited as IssueCommentEdited - from .merge_group import MergeGroupDestroyed as MergeGroupDestroyed + from .issues_unlabeled import IssuesUnlabeled as IssuesUnlabeled + from .membership_added import MembershipAdded as MembershipAdded + from .milestone_closed import MilestoneClosed as MilestoneClosed + from .milestone_edited import MilestoneEdited as MilestoneEdited + from .milestone_opened import MilestoneOpened as MilestoneOpened + from .project_reopened import ProjectReopened as ProjectReopened + from .release_released import ReleaseReleased as ReleaseReleased + from .check_run_created import CheckRunCreated as CheckRunCreated + from .org_block_blocked import OrgBlockBlocked as OrgBlockBlocked + from .discussion_closed import DiscussionClosed as DiscussionClosed + from .discussion_edited import DiscussionEdited as DiscussionEdited + from .discussion_locked import DiscussionLocked as DiscussionLocked + from .discussion_pinned import DiscussionPinned as DiscussionPinned + from .issues_milestoned import IssuesMilestoned as IssuesMilestoned + from .issues_unassigned import IssuesUnassigned as IssuesUnassigned + from .milestone_created import MilestoneCreated as MilestoneCreated + from .milestone_deleted import MilestoneDeleted as MilestoneDeleted + from .package_published import PackagePublished as PackagePublished + from .release_published import ReleasePublished as ReleasePublished + from .repository_edited import RepositoryEdited as RepositoryEdited from .repository_import import RepositoryImport as RepositoryImport from .workflow_dispatch import WorkflowDispatch as WorkflowDispatch - from .discussion import DiscussionUnanswered as DiscussionUnanswered - from .installation import InstallationCreated as InstallationCreated - from .installation import InstallationDeleted as InstallationDeleted - from .installation import InstallationSuspend as InstallationSuspend - from .organization import OrganizationDeleted as OrganizationDeleted - from .organization import OrganizationRenamed as OrganizationRenamed - from .project_column import ProjectColumnMoved as ProjectColumnMoved - from .pull_request import PullRequestAssigned as PullRequestAssigned - from .pull_request import PullRequestDequeued as PullRequestDequeued - from .pull_request import PullRequestEnqueued as PullRequestEnqueued - from .pull_request import PullRequestReopened as PullRequestReopened - from .pull_request import PullRequestUnlocked as PullRequestUnlocked - from .repository import RepositoryPrivatized as RepositoryPrivatized - from .repository import RepositoryPublicized as RepositoryPublicized - from .repository import RepositoryUnarchived as RepositoryUnarchived - from .issue_comment import IssueCommentCreated as IssueCommentCreated - from .issue_comment import IssueCommentDeleted as IssueCommentDeleted - from .sponsorship import SponsorshipCancelled as SponsorshipCancelled - from .discussion import DiscussionTransferred as DiscussionTransferred - from .project_card import ProjectCardConverted as ProjectCardConverted - from .project_column import ProjectColumnEdited as ProjectColumnEdited - from .pull_request import PullRequestUnlabeled as PullRequestUnlabeled - from .repository import RepositoryTransferred as RepositoryTransferred - from .workflow_job import WorkflowJobCompleted as WorkflowJobCompleted - from .workflow_run import WorkflowRunCompleted as WorkflowRunCompleted - from .workflow_run import WorkflowRunRequested as WorkflowRunRequested - from .check_suite import CheckSuiteRerequested as CheckSuiteRerequested + from .deploy_key_created import DeployKeyCreated as DeployKeyCreated + from .deploy_key_deleted import DeployKeyDeleted as DeployKeyDeleted + from .project_card_moved import ProjectCardMoved as ProjectCardMoved + from .discussion_created import DiscussionCreated as DiscussionCreated + from .discussion_deleted import DiscussionDeleted as DiscussionDeleted + from .discussion_labeled import DiscussionLabeled as DiscussionLabeled + from .issues_transferred import IssuesTransferred as IssuesTransferred + from .membership_removed import MembershipRemoved as MembershipRemoved + from .repository_created import RepositoryCreated as RepositoryCreated + from .repository_deleted import RepositoryDeleted as RepositoryDeleted + from .repository_renamed import RepositoryRenamed as RepositoryRenamed + from .sponsorship_edited import SponsorshipEdited as SponsorshipEdited + from .check_run_completed import CheckRunCompleted as CheckRunCompleted + from .org_block_unblocked import OrgBlockUnblocked as OrgBlockUnblocked + from .project_card_edited import ProjectCardEdited as ProjectCardEdited + from .pull_request_closed import PullRequestClosed as PullRequestClosed + from .pull_request_edited import PullRequestEdited as PullRequestEdited + from .pull_request_locked import PullRequestLocked as PullRequestLocked + from .pull_request_opened import PullRequestOpened as PullRequestOpened + from .workflow_job_queued import WorkflowJobQueued as WorkflowJobQueued from .commit_comment import CommitCommentCreated as CommitCommentCreated - from .installation import InstallationUnsuspend as InstallationUnsuspend - from .project_column import ProjectColumnCreated as ProjectColumnCreated - from .project_column import ProjectColumnDeleted as ProjectColumnDeleted - from .pull_request import PullRequestMilestoned as PullRequestMilestoned - from .pull_request import PullRequestUnassigned as PullRequestUnassigned - from .team import TeamRemovedFromRepository as TeamRemovedFromRepository - from .workflow_job import WorkflowJobInProgress as WorkflowJobInProgress - from .workflow_run import WorkflowRunInProgress as WorkflowRunInProgress - from .check_run import CheckRunRequestedAction as CheckRunRequestedAction - from .sponsorship import SponsorshipTierChanged as SponsorshipTierChanged - from .dependabot_alert import DependabotAlertFixed as DependabotAlertFixed - from .projects_v2_item import ProjectsV2ItemEdited as ProjectsV2ItemEdited - from .pull_request import PullRequestSynchronize as PullRequestSynchronize - from .custom_property import CustomPropertyCreated as CustomPropertyCreated - from .custom_property import CustomPropertyDeleted as CustomPropertyDeleted - from .custom_property import CustomPropertyUpdated as CustomPropertyUpdated - from .projects_v2 import ProjectsV2ProjectClosed as ProjectsV2ProjectClosed - from .projects_v2 import ProjectsV2ProjectEdited as ProjectsV2ProjectEdited - from .organization import OrganizationMemberAdded as OrganizationMemberAdded - from .projects_v2_item import ProjectsV2ItemCreated as ProjectsV2ItemCreated - from .projects_v2_item import ProjectsV2ItemDeleted as ProjectsV2ItemDeleted - from .pull_request import PullRequestDemilestoned as PullRequestDemilestoned - from .projects_v2 import ProjectsV2ProjectCreated as ProjectsV2ProjectCreated - from .projects_v2 import ProjectsV2ProjectDeleted as ProjectsV2ProjectDeleted + from .discussion_answered import DiscussionAnswered as DiscussionAnswered + from .discussion_reopened import DiscussionReopened as DiscussionReopened + from .discussion_unlocked import DiscussionUnlocked as DiscussionUnlocked + from .discussion_unpinned import DiscussionUnpinned as DiscussionUnpinned + from .issues_demilestoned import IssuesDemilestoned as IssuesDemilestoned + from .release_prereleased import ReleasePrereleased as ReleasePrereleased + from .release_unpublished import ReleaseUnpublished as ReleaseUnpublished + from .repository_archived import RepositoryArchived as RepositoryArchived + from .sponsorship_created import SponsorshipCreated as SponsorshipCreated + from .issue_comment_edited import IssueCommentEdited as IssueCommentEdited + from .project_card_created import ProjectCardCreated as ProjectCardCreated + from .project_card_deleted import ProjectCardDeleted as ProjectCardDeleted + from .project_column_moved import ProjectColumnMoved as ProjectColumnMoved + from .pull_request_labeled import PullRequestLabeled as PullRequestLabeled + from .workflow_job_waiting import WorkflowJobWaiting as WorkflowJobWaiting + from .discussion_unlabeled import DiscussionUnlabeled as DiscussionUnlabeled + from .installation_created import InstallationCreated as InstallationCreated + from .installation_deleted import InstallationDeleted as InstallationDeleted + from .installation_suspend import InstallationSuspend as InstallationSuspend + from .organization_deleted import OrganizationDeleted as OrganizationDeleted + from .organization_renamed import OrganizationRenamed as OrganizationRenamed + from .check_run_rerequested import CheckRunRerequested as CheckRunRerequested + from .check_suite_completed import CheckSuiteCompleted as CheckSuiteCompleted + from .check_suite_requested import CheckSuiteRequested as CheckSuiteRequested + from .issue_comment_created import IssueCommentCreated as IssueCommentCreated + from .issue_comment_deleted import IssueCommentDeleted as IssueCommentDeleted + from .merge_group_destroyed import MergeGroupDestroyed as MergeGroupDestroyed + from .project_column_edited import ProjectColumnEdited as ProjectColumnEdited + from .pull_request_assigned import PullRequestAssigned as PullRequestAssigned + from .pull_request_dequeued import PullRequestDequeued as PullRequestDequeued + from .pull_request_enqueued import PullRequestEnqueued as PullRequestEnqueued + from .pull_request_reopened import PullRequestReopened as PullRequestReopened + from .pull_request_unlocked import PullRequestUnlocked as PullRequestUnlocked from .security_and_analysis import SecurityAndAnalysis as SecurityAndAnalysis - from .dependabot_alert import DependabotAlertCreated as DependabotAlertCreated - from .discussion import DiscussionCategoryChanged as DiscussionCategoryChanged - from .projects_v2_item import ProjectsV2ItemArchived as ProjectsV2ItemArchived - from .projects_v2_item import ProjectsV2ItemRestored as ProjectsV2ItemRestored - from .registry_package import RegistryPackageUpdated as RegistryPackageUpdated - from .merge_group import MergeGroupChecksRequested as MergeGroupChecksRequested - from .projects_v2 import ProjectsV2ProjectReopened as ProjectsV2ProjectReopened - from .dependabot_alert import DependabotAlertReopened as DependabotAlertReopened - from .organization import OrganizationMemberInvited as OrganizationMemberInvited - from .organization import OrganizationMemberRemoved as OrganizationMemberRemoved - from .projects_v2_item import ProjectsV2ItemConverted as ProjectsV2ItemConverted - from .projects_v2_item import ProjectsV2ItemReordered as ProjectsV2ItemReordered - from .pull_request import PullRequestReadyForReview as PullRequestReadyForReview - from .code_scanning_alert import CodeScanningAlertFixed as CodeScanningAlertFixed + from .discussion_unanswered import DiscussionUnanswered as DiscussionUnanswered + from .repository_privatized import RepositoryPrivatized as RepositoryPrivatized + from .repository_publicized import RepositoryPublicized as RepositoryPublicized + from .repository_unarchived import RepositoryUnarchived as RepositoryUnarchived + from .sponsorship_cancelled import SponsorshipCancelled as SponsorshipCancelled + from .dependabot_alert_fixed import DependabotAlertFixed as DependabotAlertFixed + from .project_card_converted import ProjectCardConverted as ProjectCardConverted + from .project_column_created import ProjectColumnCreated as ProjectColumnCreated + from .project_column_deleted import ProjectColumnDeleted as ProjectColumnDeleted + from .pull_request_unlabeled import PullRequestUnlabeled as PullRequestUnlabeled + from .workflow_job_completed import WorkflowJobCompleted as WorkflowJobCompleted + from .workflow_run_completed import WorkflowRunCompleted as WorkflowRunCompleted + from .workflow_run_requested import WorkflowRunRequested as WorkflowRunRequested from .deployment_status import DeploymentStatusCreated as DeploymentStatusCreated - from .security_advisory import SecurityAdvisoryUpdated as SecurityAdvisoryUpdated - from .dependabot_alert import DependabotAlertDismissed as DependabotAlertDismissed - from .discussion_comment import DiscussionCommentEdited as DiscussionCommentEdited - from .pull_request import PullRequestReviewRequested as PullRequestReviewRequested - from .registry_package import RegistryPackagePublished as RegistryPackagePublished - from .repository_ruleset import RepositoryRulesetEdited as RepositoryRulesetEdited - from .deployment_review import DeploymentReviewApproved as DeploymentReviewApproved - from .deployment_review import DeploymentReviewRejected as DeploymentReviewRejected - from .pull_request_review import PullRequestReviewEdited as PullRequestReviewEdited - from .discussion_comment import DiscussionCommentCreated as DiscussionCommentCreated - from .discussion_comment import DiscussionCommentDeleted as DiscussionCommentDeleted - from .pull_request import PullRequestAutoMergeEnabled as PullRequestAutoMergeEnabled - from .pull_request import PullRequestConvertedToDraft as PullRequestConvertedToDraft - from .repository_ruleset import RepositoryRulesetCreated as RepositoryRulesetCreated - from .repository_ruleset import RepositoryRulesetDeleted as RepositoryRulesetDeleted - from .code_scanning_alert import ( - CodeScanningAlertCreated as CodeScanningAlertCreated, - ) - from .deployment_review import ( - DeploymentReviewRequested as DeploymentReviewRequested, + from .projects_v2_item_edited import ProjectsV2ItemEdited as ProjectsV2ItemEdited + from .discussion_transferred import DiscussionTransferred as DiscussionTransferred + from .installation_unsuspend import InstallationUnsuspend as InstallationUnsuspend + from .projects_v2_closed import ProjectsV2ProjectClosed as ProjectsV2ProjectClosed + from .projects_v2_edited import ProjectsV2ProjectEdited as ProjectsV2ProjectEdited + from .repository_transferred import RepositoryTransferred as RepositoryTransferred + from .check_suite_rerequested import CheckSuiteRerequested as CheckSuiteRerequested + from .custom_property_created import CustomPropertyCreated as CustomPropertyCreated + from .custom_property_deleted import CustomPropertyDeleted as CustomPropertyDeleted + from .custom_property_updated import CustomPropertyUpdated as CustomPropertyUpdated + from .pull_request_milestoned import PullRequestMilestoned as PullRequestMilestoned + from .pull_request_unassigned import PullRequestUnassigned as PullRequestUnassigned + from .projects_v2_item_created import ProjectsV2ItemCreated as ProjectsV2ItemCreated + from .projects_v2_item_deleted import ProjectsV2ItemDeleted as ProjectsV2ItemDeleted + from .team_added_to_repository import TeamAddedToRepository as TeamAddedToRepository + from .workflow_job_in_progress import WorkflowJobInProgress as WorkflowJobInProgress + from .workflow_run_in_progress import WorkflowRunInProgress as WorkflowRunInProgress + from .projects_v2_created import ( + ProjectsV2ProjectCreated as ProjectsV2ProjectCreated, + ) + from .projects_v2_deleted import ( + ProjectsV2ProjectDeleted as ProjectsV2ProjectDeleted, ) from .repository_dispatch import ( RepositoryDispatchSample as RepositoryDispatchSample, ) - from .security_advisory import ( - SecurityAdvisoryPublished as SecurityAdvisoryPublished, + from .dependabot_alert_created import ( + DependabotAlertCreated as DependabotAlertCreated, ) - from .security_advisory import ( - SecurityAdvisoryWithdrawn as SecurityAdvisoryWithdrawn, + from .pull_request_synchronize import ( + PullRequestSynchronize as PullRequestSynchronize, ) - from .sponsorship import ( - SponsorshipPendingTierChange as SponsorshipPendingTierChange, + from .registry_package_updated import ( + RegistryPackageUpdated as RegistryPackageUpdated, ) - from .pull_request import ( - PullRequestAutoMergeDisabled as PullRequestAutoMergeDisabled, + from .sponsorship_tier_changed import ( + SponsorshipTierChanged as SponsorshipTierChanged, ) - from .code_scanning_alert import ( - CodeScanningAlertReopened as CodeScanningAlertReopened, + from .code_scanning_alert_fixed import ( + CodeScanningAlertFixed as CodeScanningAlertFixed, ) from .installation_target import ( InstallationTargetRenamed as InstallationTargetRenamed, ) - from .dependabot_alert import ( - DependabotAlertAutoReopened as DependabotAlertAutoReopened, + from .projects_v2_item_archived import ( + ProjectsV2ItemArchived as ProjectsV2ItemArchived, ) - from .dependabot_alert import ( - DependabotAlertReintroduced as DependabotAlertReintroduced, + from .projects_v2_item_restored import ( + ProjectsV2ItemRestored as ProjectsV2ItemRestored, ) - from .pull_request_review import ( - PullRequestReviewDismissed as PullRequestReviewDismissed, + from .projects_v2_reopened import ( + ProjectsV2ProjectReopened as ProjectsV2ProjectReopened, ) - from .pull_request_review import ( - PullRequestReviewSubmitted as PullRequestReviewSubmitted, + from .dependabot_alert_reopened import ( + DependabotAlertReopened as DependabotAlertReopened, ) - from .repository_advisory import ( - RepositoryAdvisoryReported as RepositoryAdvisoryReported, + from .discussion_comment_edited import ( + DiscussionCommentEdited as DiscussionCommentEdited, ) - from .sponsorship import ( - SponsorshipPendingCancellation as SponsorshipPendingCancellation, + from .organization_member_added import ( + OrganizationMemberAdded as OrganizationMemberAdded, ) - from .dependabot_alert import ( - DependabotAlertAutoDismissed as DependabotAlertAutoDismissed, + from .pull_request_demilestoned import ( + PullRequestDemilestoned as PullRequestDemilestoned, + ) + from .repository_ruleset_edited import ( + RepositoryRulesetEdited as RepositoryRulesetEdited, + ) + from .security_advisory_updated import ( + SecurityAdvisoryUpdated as SecurityAdvisoryUpdated, + ) + from .check_run_requested_action import ( + CheckRunRequestedAction as CheckRunRequestedAction, + ) + from .projects_v2_item_converted import ( + ProjectsV2ItemConverted as ProjectsV2ItemConverted, + ) + from .projects_v2_item_reordered import ( + ProjectsV2ItemReordered as ProjectsV2ItemReordered, + ) + from .pull_request_review_edited import ( + PullRequestReviewEdited as PullRequestReviewEdited, ) - from .marketplace_purchase import ( + from .dependabot_alert_dismissed import ( + DependabotAlertDismissed as DependabotAlertDismissed, + ) + from .deployment_review_approved import ( + DeploymentReviewApproved as DeploymentReviewApproved, + ) + from .deployment_review_rejected import ( + DeploymentReviewRejected as DeploymentReviewRejected, + ) + from .discussion_comment_created import ( + DiscussionCommentCreated as DiscussionCommentCreated, + ) + from .discussion_comment_deleted import ( + DiscussionCommentDeleted as DiscussionCommentDeleted, + ) + from .registry_package_published import ( + RegistryPackagePublished as RegistryPackagePublished, + ) + from .repository_ruleset_created import ( + RepositoryRulesetCreated as RepositoryRulesetCreated, + ) + from .repository_ruleset_deleted import ( + RepositoryRulesetDeleted as RepositoryRulesetDeleted, + ) + from .code_scanning_alert_created import ( + CodeScanningAlertCreated as CodeScanningAlertCreated, + ) + from .custom_property_values import ( + CustomPropertyValuesUpdated as CustomPropertyValuesUpdated, + ) + from .deployment_review_requested import ( + DeploymentReviewRequested as DeploymentReviewRequested, + ) + from .discussion_category_changed import ( + DiscussionCategoryChanged as DiscussionCategoryChanged, + ) + from .organization_member_invited import ( + OrganizationMemberInvited as OrganizationMemberInvited, + ) + from .organization_member_removed import ( + OrganizationMemberRemoved as OrganizationMemberRemoved, + ) + from .security_advisory_published import ( + SecurityAdvisoryPublished as SecurityAdvisoryPublished, + ) + from .security_advisory_withdrawn import ( + SecurityAdvisoryWithdrawn as SecurityAdvisoryWithdrawn, + ) + from .code_scanning_alert_reopened import ( + CodeScanningAlertReopened as CodeScanningAlertReopened, + ) + from .merge_group_checks_requested import ( + MergeGroupChecksRequested as MergeGroupChecksRequested, + ) + from .team_removed_from_repository import ( + TeamRemovedFromRepository as TeamRemovedFromRepository, + ) + from .pull_request_ready_for_review import ( + PullRequestReadyForReview as PullRequestReadyForReview, + ) + from .marketplace_purchase_changed import ( MarketplacePurchaseChanged as MarketplacePurchaseChanged, ) - from .repository_advisory import ( - RepositoryAdvisoryPublished as RepositoryAdvisoryPublished, + from .repository_advisory_reported import ( + RepositoryAdvisoryReported as RepositoryAdvisoryReported, ) - from .secret_scanning_alert import ( + from .branch_protection_rule_edited import ( + BranchProtectionRuleEdited as BranchProtectionRuleEdited, + ) + from .pull_request_review_dismissed import ( + PullRequestReviewDismissed as PullRequestReviewDismissed, + ) + from .pull_request_review_requested import ( + PullRequestReviewRequested as PullRequestReviewRequested, + ) + from .pull_request_review_submitted import ( + PullRequestReviewSubmitted as PullRequestReviewSubmitted, + ) + from .secret_scanning_alert_created import ( SecretScanningAlertCreated as SecretScanningAlertCreated, ) - from .secret_scanning_alert import ( + from .secret_scanning_alert_revoked import ( SecretScanningAlertRevoked as SecretScanningAlertRevoked, ) - from .branch_protection_rule import ( - BranchProtectionRuleEdited as BranchProtectionRuleEdited, - ) - from .pull_request import ( - PullRequestReviewRequestRemoved as PullRequestReviewRequestRemoved, + from .github_app_authorization import ( + GithubAppAuthorizationRevoked as GithubAppAuthorizationRevoked, ) - from .secret_scanning_alert import ( - SecretScanningAlertReopened as SecretScanningAlertReopened, + from .dependabot_alert_reintroduced import ( + DependabotAlertReintroduced as DependabotAlertReintroduced, ) - from .secret_scanning_alert import ( - SecretScanningAlertResolved as SecretScanningAlertResolved, + from .repository_advisory_published import ( + RepositoryAdvisoryPublished as RepositoryAdvisoryPublished, ) - from .branch_protection_rule import ( + from .branch_protection_rule_created import ( BranchProtectionRuleCreated as BranchProtectionRuleCreated, ) - from .branch_protection_rule import ( + from .branch_protection_rule_deleted import ( BranchProtectionRuleDeleted as BranchProtectionRuleDeleted, ) - from .custom_property_values import ( - CustomPropertyValuesUpdated as CustomPropertyValuesUpdated, + from .dependabot_alert_auto_reopened import ( + DependabotAlertAutoReopened as DependabotAlertAutoReopened, + ) + from .secret_scanning_alert_reopened import ( + SecretScanningAlertReopened as SecretScanningAlertReopened, + ) + from .secret_scanning_alert_resolved import ( + SecretScanningAlertResolved as SecretScanningAlertResolved, ) - from .marketplace_purchase import ( + from .pull_request_auto_merge_enabled import ( + PullRequestAutoMergeEnabled as PullRequestAutoMergeEnabled, + ) + from .pull_request_converted_to_draft import ( + PullRequestConvertedToDraft as PullRequestConvertedToDraft, + ) + from .marketplace_purchase_cancelled import ( MarketplacePurchaseCancelled as MarketplacePurchaseCancelled, ) - from .marketplace_purchase import ( + from .marketplace_purchase_purchased import ( MarketplacePurchasePurchased as MarketplacePurchasePurchased, ) - from .code_scanning_alert import ( - CodeScanningAlertClosedByUser as CodeScanningAlertClosedByUser, - ) - from .installation import ( - InstallationNewPermissionsAccepted as InstallationNewPermissionsAccepted, + from .dependabot_alert_auto_dismissed import ( + DependabotAlertAutoDismissed as DependabotAlertAutoDismissed, ) - from .code_scanning_alert import ( - CodeScanningAlertReopenedByUser as CodeScanningAlertReopenedByUser, + from .sponsorship_pending_tier_change import ( + SponsorshipPendingTierChange as SponsorshipPendingTierChange, ) - from .github_app_authorization import ( - GithubAppAuthorizationRevoked as GithubAppAuthorizationRevoked, + from .pull_request_auto_merge_disabled import ( + PullRequestAutoMergeDisabled as PullRequestAutoMergeDisabled, ) - from .installation_repositories import ( + from .installation_repositories_added import ( InstallationRepositoriesAdded as InstallationRepositoriesAdded, ) - from .marketplace_purchase import ( - MarketplacePurchasePendingChange as MarketplacePurchasePendingChange, + from .code_scanning_alert_closed_by_user import ( + CodeScanningAlertClosedByUser as CodeScanningAlertClosedByUser, ) - from .code_scanning_alert import ( - CodeScanningAlertAppearedInBranch as CodeScanningAlertAppearedInBranch, + from .deployment_protection_rule import ( + DeploymentProtectionRuleRequested as DeploymentProtectionRuleRequested, ) - from .installation_repositories import ( - InstallationRepositoriesRemoved as InstallationRepositoriesRemoved, + from .sponsorship_pending_cancellation import ( + SponsorshipPendingCancellation as SponsorshipPendingCancellation, ) - from .pull_request_review_comment import ( + from .pull_request_review_comment_edited import ( PullRequestReviewCommentEdited as PullRequestReviewCommentEdited, ) - from .pull_request_review_thread import ( - PullRequestReviewThreadResolved as PullRequestReviewThreadResolved, + from .installation_repositories_removed import ( + InstallationRepositoriesRemoved as InstallationRepositoriesRemoved, ) - from .pull_request_review_comment import ( + from .pull_request_review_comment_created import ( PullRequestReviewCommentCreated as PullRequestReviewCommentCreated, ) - from .pull_request_review_comment import ( + from .pull_request_review_comment_deleted import ( PullRequestReviewCommentDeleted as PullRequestReviewCommentDeleted, ) - from .deployment_protection_rule import ( - DeploymentProtectionRuleRequested as DeploymentProtectionRuleRequested, + from .pull_request_review_request_removed import ( + PullRequestReviewRequestRemoved as PullRequestReviewRequestRemoved, ) - from .pull_request_review_thread import ( - PullRequestReviewThreadUnresolved as PullRequestReviewThreadUnresolved, + from .pull_request_review_thread_resolved import ( + PullRequestReviewThreadResolved as PullRequestReviewThreadResolved, + ) + from .code_scanning_alert_reopened_by_user import ( + CodeScanningAlertReopenedByUser as CodeScanningAlertReopenedByUser, + ) + from .secret_scanning_alert_location import ( + SecretScanningAlertLocationCreated as SecretScanningAlertLocationCreated, + ) + from .marketplace_purchase_pending_change import ( + MarketplacePurchasePendingChange as MarketplacePurchasePendingChange, ) - from .personal_access_token_request import ( + from .personal_access_token_request_denied import ( PersonalAccessTokenRequestDenied as PersonalAccessTokenRequestDenied, ) - from .personal_access_token_request import ( + from .personal_access_token_request_created import ( PersonalAccessTokenRequestCreated as PersonalAccessTokenRequestCreated, ) - from .personal_access_token_request import ( - PersonalAccessTokenRequestApproved as PersonalAccessTokenRequestApproved, + from .pull_request_review_thread_unresolved import ( + PullRequestReviewThreadUnresolved as PullRequestReviewThreadUnresolved, ) - from .repository_vulnerability_alert import ( + from .code_scanning_alert_appeared_in_branch import ( + CodeScanningAlertAppearedInBranch as CodeScanningAlertAppearedInBranch, + ) + from .installation_new_permissions_accepted import ( + InstallationNewPermissionsAccepted as InstallationNewPermissionsAccepted, + ) + from .repository_vulnerability_alert_create import ( RepositoryVulnerabilityAlertCreate as RepositoryVulnerabilityAlertCreate, ) - from .repository_vulnerability_alert import ( + from .repository_vulnerability_alert_reopen import ( RepositoryVulnerabilityAlertReopen as RepositoryVulnerabilityAlertReopen, ) - from .secret_scanning_alert_location import ( - SecretScanningAlertLocationCreated as SecretScanningAlertLocationCreated, - ) - from .personal_access_token_request import ( - PersonalAccessTokenRequestCancelled as PersonalAccessTokenRequestCancelled, + from .personal_access_token_request_approved import ( + PersonalAccessTokenRequestApproved as PersonalAccessTokenRequestApproved, ) - from .repository_vulnerability_alert import ( + from .repository_vulnerability_alert_dismiss import ( RepositoryVulnerabilityAlertDismiss as RepositoryVulnerabilityAlertDismiss, ) - from .repository_vulnerability_alert import ( + from .repository_vulnerability_alert_resolve import ( RepositoryVulnerabilityAlertResolve as RepositoryVulnerabilityAlertResolve, ) - from .marketplace_purchase import ( - MarketplacePurchasePendingChangeCancelled as MarketplacePurchasePendingChangeCancelled, + from .personal_access_token_request_cancelled import ( + PersonalAccessTokenRequestCancelled as PersonalAccessTokenRequestCancelled, ) - from .branch_protection_configuration import ( + from .branch_protection_configuration_enabled import ( BranchProtectionConfigurationEnabled as BranchProtectionConfigurationEnabled, ) - from .branch_protection_configuration import ( + from .branch_protection_configuration_disabled import ( BranchProtectionConfigurationDisabled as BranchProtectionConfigurationDisabled, ) + from .marketplace_purchase_pending_change_cancelled import ( + MarketplacePurchasePendingChangeCancelled as MarketplacePurchasePendingChangeCancelled, + ) else: __lazy_vars__ = { - ".branch_protection_configuration": ( + ".branch_protection_configuration_disabled": ( "BranchProtectionConfigurationDisabled", - "BranchProtectionConfigurationEnabled", - ), - ".branch_protection_rule": ( - "BranchProtectionRuleCreated", - "BranchProtectionRuleDeleted", - "BranchProtectionRuleEdited", - ), - ".check_run": ( - "CheckRunCompleted", - "CheckRunCreated", - "CheckRunRequestedAction", - "CheckRunRerequested", ), - ".check_suite": ( - "CheckSuiteCompleted", - "CheckSuiteRequested", - "CheckSuiteRerequested", + ".branch_protection_configuration_enabled": ( + "BranchProtectionConfigurationEnabled", ), - ".code_scanning_alert": ( + ".branch_protection_rule_created": ("BranchProtectionRuleCreated",), + ".branch_protection_rule_deleted": ("BranchProtectionRuleDeleted",), + ".branch_protection_rule_edited": ("BranchProtectionRuleEdited",), + ".check_run_completed": ("CheckRunCompleted",), + ".check_run_created": ("CheckRunCreated",), + ".check_run_requested_action": ("CheckRunRequestedAction",), + ".check_run_rerequested": ("CheckRunRerequested",), + ".check_suite_completed": ("CheckSuiteCompleted",), + ".check_suite_requested": ("CheckSuiteRequested",), + ".check_suite_rerequested": ("CheckSuiteRerequested",), + ".code_scanning_alert_appeared_in_branch": ( "CodeScanningAlertAppearedInBranch", - "CodeScanningAlertClosedByUser", - "CodeScanningAlertCreated", - "CodeScanningAlertFixed", - "CodeScanningAlertReopened", - "CodeScanningAlertReopenedByUser", ), + ".code_scanning_alert_closed_by_user": ("CodeScanningAlertClosedByUser",), + ".code_scanning_alert_created": ("CodeScanningAlertCreated",), + ".code_scanning_alert_fixed": ("CodeScanningAlertFixed",), + ".code_scanning_alert_reopened": ("CodeScanningAlertReopened",), + ".code_scanning_alert_reopened_by_user": ("CodeScanningAlertReopenedByUser",), ".commit_comment": ("CommitCommentCreated",), ".create": ("Create",), - ".custom_property": ( - "CustomPropertyCreated", - "CustomPropertyDeleted", - "CustomPropertyUpdated", - ), + ".custom_property_created": ("CustomPropertyCreated",), + ".custom_property_deleted": ("CustomPropertyDeleted",), + ".custom_property_updated": ("CustomPropertyUpdated",), ".custom_property_values": ("CustomPropertyValuesUpdated",), ".delete": ("Delete",), - ".dependabot_alert": ( - "DependabotAlertAutoDismissed", - "DependabotAlertAutoReopened", - "DependabotAlertCreated", - "DependabotAlertDismissed", - "DependabotAlertFixed", - "DependabotAlertReintroduced", - "DependabotAlertReopened", - ), - ".deploy_key": ( - "DeployKeyCreated", - "DeployKeyDeleted", - ), + ".dependabot_alert_auto_dismissed": ("DependabotAlertAutoDismissed",), + ".dependabot_alert_auto_reopened": ("DependabotAlertAutoReopened",), + ".dependabot_alert_created": ("DependabotAlertCreated",), + ".dependabot_alert_dismissed": ("DependabotAlertDismissed",), + ".dependabot_alert_fixed": ("DependabotAlertFixed",), + ".dependabot_alert_reintroduced": ("DependabotAlertReintroduced",), + ".dependabot_alert_reopened": ("DependabotAlertReopened",), + ".deploy_key_created": ("DeployKeyCreated",), + ".deploy_key_deleted": ("DeployKeyDeleted",), ".deployment": ("DeploymentCreated",), ".deployment_protection_rule": ("DeploymentProtectionRuleRequested",), - ".deployment_review": ( - "DeploymentReviewApproved", - "DeploymentReviewRejected", - "DeploymentReviewRequested", - ), + ".deployment_review_approved": ("DeploymentReviewApproved",), + ".deployment_review_rejected": ("DeploymentReviewRejected",), + ".deployment_review_requested": ("DeploymentReviewRequested",), ".deployment_status": ("DeploymentStatusCreated",), - ".discussion": ( - "DiscussionAnswered", - "DiscussionCategoryChanged", - "DiscussionClosed", - "DiscussionCreated", - "DiscussionDeleted", - "DiscussionEdited", - "DiscussionLabeled", - "DiscussionLocked", - "DiscussionPinned", - "DiscussionReopened", - "DiscussionTransferred", - "DiscussionUnanswered", - "DiscussionUnlabeled", - "DiscussionUnlocked", - "DiscussionUnpinned", - ), - ".discussion_comment": ( - "DiscussionCommentCreated", - "DiscussionCommentDeleted", - "DiscussionCommentEdited", - ), + ".discussion_answered": ("DiscussionAnswered",), + ".discussion_category_changed": ("DiscussionCategoryChanged",), + ".discussion_closed": ("DiscussionClosed",), + ".discussion_created": ("DiscussionCreated",), + ".discussion_deleted": ("DiscussionDeleted",), + ".discussion_edited": ("DiscussionEdited",), + ".discussion_labeled": ("DiscussionLabeled",), + ".discussion_locked": ("DiscussionLocked",), + ".discussion_pinned": ("DiscussionPinned",), + ".discussion_reopened": ("DiscussionReopened",), + ".discussion_transferred": ("DiscussionTransferred",), + ".discussion_unanswered": ("DiscussionUnanswered",), + ".discussion_unlabeled": ("DiscussionUnlabeled",), + ".discussion_unlocked": ("DiscussionUnlocked",), + ".discussion_unpinned": ("DiscussionUnpinned",), + ".discussion_comment_created": ("DiscussionCommentCreated",), + ".discussion_comment_deleted": ("DiscussionCommentDeleted",), + ".discussion_comment_edited": ("DiscussionCommentEdited",), ".fork": ("Fork",), ".github_app_authorization": ("GithubAppAuthorizationRevoked",), ".gollum": ("Gollum",), - ".installation": ( - "InstallationCreated", - "InstallationDeleted", + ".installation_created": ("InstallationCreated",), + ".installation_deleted": ("InstallationDeleted",), + ".installation_new_permissions_accepted": ( "InstallationNewPermissionsAccepted", - "InstallationSuspend", - "InstallationUnsuspend", - ), - ".installation_repositories": ( - "InstallationRepositoriesAdded", - "InstallationRepositoriesRemoved", ), + ".installation_suspend": ("InstallationSuspend",), + ".installation_unsuspend": ("InstallationUnsuspend",), + ".installation_repositories_added": ("InstallationRepositoriesAdded",), + ".installation_repositories_removed": ("InstallationRepositoriesRemoved",), ".installation_target": ("InstallationTargetRenamed",), - ".issue_comment": ( - "IssueCommentCreated", - "IssueCommentDeleted", - "IssueCommentEdited", - ), - ".issues": ( - "IssuesAssigned", - "IssuesClosed", - "IssuesDeleted", - "IssuesDemilestoned", - "IssuesEdited", - "IssuesLabeled", - "IssuesLocked", - "IssuesMilestoned", - "IssuesOpened", - "IssuesPinned", - "IssuesReopened", - "IssuesTransferred", - "IssuesUnassigned", - "IssuesUnlabeled", - "IssuesUnlocked", - "IssuesUnpinned", - ), - ".label": ( - "LabelCreated", - "LabelDeleted", - "LabelEdited", - ), - ".marketplace_purchase": ( - "MarketplacePurchaseCancelled", - "MarketplacePurchaseChanged", - "MarketplacePurchasePendingChange", + ".issue_comment_created": ("IssueCommentCreated",), + ".issue_comment_deleted": ("IssueCommentDeleted",), + ".issue_comment_edited": ("IssueCommentEdited",), + ".issues_assigned": ("IssuesAssigned",), + ".issues_closed": ("IssuesClosed",), + ".issues_deleted": ("IssuesDeleted",), + ".issues_demilestoned": ("IssuesDemilestoned",), + ".issues_edited": ("IssuesEdited",), + ".issues_labeled": ("IssuesLabeled",), + ".issues_locked": ("IssuesLocked",), + ".issues_milestoned": ("IssuesMilestoned",), + ".issues_opened": ("IssuesOpened",), + ".issues_pinned": ("IssuesPinned",), + ".issues_reopened": ("IssuesReopened",), + ".issues_transferred": ("IssuesTransferred",), + ".issues_unassigned": ("IssuesUnassigned",), + ".issues_unlabeled": ("IssuesUnlabeled",), + ".issues_unlocked": ("IssuesUnlocked",), + ".issues_unpinned": ("IssuesUnpinned",), + ".label_created": ("LabelCreated",), + ".label_deleted": ("LabelDeleted",), + ".label_edited": ("LabelEdited",), + ".marketplace_purchase_cancelled": ("MarketplacePurchaseCancelled",), + ".marketplace_purchase_changed": ("MarketplacePurchaseChanged",), + ".marketplace_purchase_pending_change": ("MarketplacePurchasePendingChange",), + ".marketplace_purchase_pending_change_cancelled": ( "MarketplacePurchasePendingChangeCancelled", - "MarketplacePurchasePurchased", - ), - ".member": ( - "MemberAdded", - "MemberEdited", - "MemberRemoved", - ), - ".membership": ( - "MembershipAdded", - "MembershipRemoved", - ), - ".merge_group": ( - "MergeGroupChecksRequested", - "MergeGroupDestroyed", ), + ".marketplace_purchase_purchased": ("MarketplacePurchasePurchased",), + ".member_added": ("MemberAdded",), + ".member_edited": ("MemberEdited",), + ".member_removed": ("MemberRemoved",), + ".membership_added": ("MembershipAdded",), + ".membership_removed": ("MembershipRemoved",), + ".merge_group_checks_requested": ("MergeGroupChecksRequested",), + ".merge_group_destroyed": ("MergeGroupDestroyed",), ".meta": ("MetaDeleted",), - ".milestone": ( - "MilestoneClosed", - "MilestoneCreated", - "MilestoneDeleted", - "MilestoneEdited", - "MilestoneOpened", - ), - ".org_block": ( - "OrgBlockBlocked", - "OrgBlockUnblocked", - ), - ".organization": ( - "OrganizationDeleted", - "OrganizationMemberAdded", - "OrganizationMemberInvited", - "OrganizationMemberRemoved", - "OrganizationRenamed", - ), - ".package": ( - "PackagePublished", - "PackageUpdated", - ), + ".milestone_closed": ("MilestoneClosed",), + ".milestone_created": ("MilestoneCreated",), + ".milestone_deleted": ("MilestoneDeleted",), + ".milestone_edited": ("MilestoneEdited",), + ".milestone_opened": ("MilestoneOpened",), + ".org_block_blocked": ("OrgBlockBlocked",), + ".org_block_unblocked": ("OrgBlockUnblocked",), + ".organization_deleted": ("OrganizationDeleted",), + ".organization_member_added": ("OrganizationMemberAdded",), + ".organization_member_invited": ("OrganizationMemberInvited",), + ".organization_member_removed": ("OrganizationMemberRemoved",), + ".organization_renamed": ("OrganizationRenamed",), + ".package_published": ("PackagePublished",), + ".package_updated": ("PackageUpdated",), ".page_build": ("PageBuild",), - ".personal_access_token_request": ( + ".personal_access_token_request_approved": ( "PersonalAccessTokenRequestApproved", + ), + ".personal_access_token_request_cancelled": ( "PersonalAccessTokenRequestCancelled", + ), + ".personal_access_token_request_created": ( "PersonalAccessTokenRequestCreated", - "PersonalAccessTokenRequestDenied", ), + ".personal_access_token_request_denied": ("PersonalAccessTokenRequestDenied",), ".ping": ("Ping",), - ".project_card": ( - "ProjectCardConverted", - "ProjectCardCreated", - "ProjectCardDeleted", - "ProjectCardEdited", - "ProjectCardMoved", - ), - ".project": ( - "ProjectClosed", - "ProjectCreated", - "ProjectDeleted", - "ProjectEdited", - "ProjectReopened", - ), - ".project_column": ( - "ProjectColumnCreated", - "ProjectColumnDeleted", - "ProjectColumnEdited", - "ProjectColumnMoved", - ), - ".projects_v2": ( - "ProjectsV2ProjectClosed", - "ProjectsV2ProjectCreated", - "ProjectsV2ProjectDeleted", - "ProjectsV2ProjectEdited", - "ProjectsV2ProjectReopened", - ), - ".projects_v2_item": ( - "ProjectsV2ItemArchived", - "ProjectsV2ItemConverted", - "ProjectsV2ItemCreated", - "ProjectsV2ItemDeleted", - "ProjectsV2ItemEdited", - "ProjectsV2ItemReordered", - "ProjectsV2ItemRestored", - ), + ".project_card_converted": ("ProjectCardConverted",), + ".project_card_created": ("ProjectCardCreated",), + ".project_card_deleted": ("ProjectCardDeleted",), + ".project_card_edited": ("ProjectCardEdited",), + ".project_card_moved": ("ProjectCardMoved",), + ".project_closed": ("ProjectClosed",), + ".project_created": ("ProjectCreated",), + ".project_deleted": ("ProjectDeleted",), + ".project_edited": ("ProjectEdited",), + ".project_reopened": ("ProjectReopened",), + ".project_column_created": ("ProjectColumnCreated",), + ".project_column_deleted": ("ProjectColumnDeleted",), + ".project_column_edited": ("ProjectColumnEdited",), + ".project_column_moved": ("ProjectColumnMoved",), + ".projects_v2_closed": ("ProjectsV2ProjectClosed",), + ".projects_v2_created": ("ProjectsV2ProjectCreated",), + ".projects_v2_deleted": ("ProjectsV2ProjectDeleted",), + ".projects_v2_edited": ("ProjectsV2ProjectEdited",), + ".projects_v2_reopened": ("ProjectsV2ProjectReopened",), + ".projects_v2_item_archived": ("ProjectsV2ItemArchived",), + ".projects_v2_item_converted": ("ProjectsV2ItemConverted",), + ".projects_v2_item_created": ("ProjectsV2ItemCreated",), + ".projects_v2_item_deleted": ("ProjectsV2ItemDeleted",), + ".projects_v2_item_edited": ("ProjectsV2ItemEdited",), + ".projects_v2_item_reordered": ("ProjectsV2ItemReordered",), + ".projects_v2_item_restored": ("ProjectsV2ItemRestored",), ".public": ("Public",), - ".pull_request": ( - "PullRequestAssigned", - "PullRequestAutoMergeDisabled", - "PullRequestAutoMergeEnabled", - "PullRequestClosed", - "PullRequestConvertedToDraft", - "PullRequestDemilestoned", - "PullRequestDequeued", - "PullRequestEdited", - "PullRequestEnqueued", - "PullRequestLabeled", - "PullRequestLocked", - "PullRequestMilestoned", - "PullRequestOpened", - "PullRequestReadyForReview", - "PullRequestReopened", - "PullRequestReviewRequestRemoved", - "PullRequestReviewRequested", - "PullRequestSynchronize", - "PullRequestUnassigned", - "PullRequestUnlabeled", - "PullRequestUnlocked", - ), - ".pull_request_review_comment": ( - "PullRequestReviewCommentCreated", - "PullRequestReviewCommentDeleted", - "PullRequestReviewCommentEdited", - ), - ".pull_request_review": ( - "PullRequestReviewDismissed", - "PullRequestReviewEdited", - "PullRequestReviewSubmitted", - ), - ".pull_request_review_thread": ( - "PullRequestReviewThreadResolved", + ".pull_request_assigned": ("PullRequestAssigned",), + ".pull_request_auto_merge_disabled": ("PullRequestAutoMergeDisabled",), + ".pull_request_auto_merge_enabled": ("PullRequestAutoMergeEnabled",), + ".pull_request_closed": ("PullRequestClosed",), + ".pull_request_converted_to_draft": ("PullRequestConvertedToDraft",), + ".pull_request_demilestoned": ("PullRequestDemilestoned",), + ".pull_request_dequeued": ("PullRequestDequeued",), + ".pull_request_edited": ("PullRequestEdited",), + ".pull_request_enqueued": ("PullRequestEnqueued",), + ".pull_request_labeled": ("PullRequestLabeled",), + ".pull_request_locked": ("PullRequestLocked",), + ".pull_request_milestoned": ("PullRequestMilestoned",), + ".pull_request_opened": ("PullRequestOpened",), + ".pull_request_ready_for_review": ("PullRequestReadyForReview",), + ".pull_request_reopened": ("PullRequestReopened",), + ".pull_request_review_request_removed": ("PullRequestReviewRequestRemoved",), + ".pull_request_review_requested": ("PullRequestReviewRequested",), + ".pull_request_synchronize": ("PullRequestSynchronize",), + ".pull_request_unassigned": ("PullRequestUnassigned",), + ".pull_request_unlabeled": ("PullRequestUnlabeled",), + ".pull_request_unlocked": ("PullRequestUnlocked",), + ".pull_request_review_comment_created": ("PullRequestReviewCommentCreated",), + ".pull_request_review_comment_deleted": ("PullRequestReviewCommentDeleted",), + ".pull_request_review_comment_edited": ("PullRequestReviewCommentEdited",), + ".pull_request_review_dismissed": ("PullRequestReviewDismissed",), + ".pull_request_review_edited": ("PullRequestReviewEdited",), + ".pull_request_review_submitted": ("PullRequestReviewSubmitted",), + ".pull_request_review_thread_resolved": ("PullRequestReviewThreadResolved",), + ".pull_request_review_thread_unresolved": ( "PullRequestReviewThreadUnresolved", ), ".push": ("Push",), - ".registry_package": ( - "RegistryPackagePublished", - "RegistryPackageUpdated", - ), - ".release": ( - "ReleaseCreated", - "ReleaseDeleted", - "ReleaseEdited", - "ReleasePrereleased", - "ReleasePublished", - "ReleaseReleased", - "ReleaseUnpublished", - ), - ".repository_advisory": ( - "RepositoryAdvisoryPublished", - "RepositoryAdvisoryReported", - ), - ".repository": ( - "RepositoryArchived", - "RepositoryCreated", - "RepositoryDeleted", - "RepositoryEdited", - "RepositoryPrivatized", - "RepositoryPublicized", - "RepositoryRenamed", - "RepositoryTransferred", - "RepositoryUnarchived", - ), + ".registry_package_published": ("RegistryPackagePublished",), + ".registry_package_updated": ("RegistryPackageUpdated",), + ".release_created": ("ReleaseCreated",), + ".release_deleted": ("ReleaseDeleted",), + ".release_edited": ("ReleaseEdited",), + ".release_prereleased": ("ReleasePrereleased",), + ".release_published": ("ReleasePublished",), + ".release_released": ("ReleaseReleased",), + ".release_unpublished": ("ReleaseUnpublished",), + ".repository_advisory_published": ("RepositoryAdvisoryPublished",), + ".repository_advisory_reported": ("RepositoryAdvisoryReported",), + ".repository_archived": ("RepositoryArchived",), + ".repository_created": ("RepositoryCreated",), + ".repository_deleted": ("RepositoryDeleted",), + ".repository_edited": ("RepositoryEdited",), + ".repository_privatized": ("RepositoryPrivatized",), + ".repository_publicized": ("RepositoryPublicized",), + ".repository_renamed": ("RepositoryRenamed",), + ".repository_transferred": ("RepositoryTransferred",), + ".repository_unarchived": ("RepositoryUnarchived",), ".repository_dispatch": ("RepositoryDispatchSample",), ".repository_import": ("RepositoryImport",), - ".repository_ruleset": ( - "RepositoryRulesetCreated", - "RepositoryRulesetDeleted", - "RepositoryRulesetEdited", - ), - ".repository_vulnerability_alert": ( + ".repository_ruleset_created": ("RepositoryRulesetCreated",), + ".repository_ruleset_deleted": ("RepositoryRulesetDeleted",), + ".repository_ruleset_edited": ("RepositoryRulesetEdited",), + ".repository_vulnerability_alert_create": ( "RepositoryVulnerabilityAlertCreate", + ), + ".repository_vulnerability_alert_dismiss": ( "RepositoryVulnerabilityAlertDismiss", + ), + ".repository_vulnerability_alert_reopen": ( "RepositoryVulnerabilityAlertReopen", - "RepositoryVulnerabilityAlertResolve", ), - ".secret_scanning_alert": ( - "SecretScanningAlertCreated", - "SecretScanningAlertReopened", - "SecretScanningAlertResolved", - "SecretScanningAlertRevoked", + ".repository_vulnerability_alert_resolve": ( + "RepositoryVulnerabilityAlertResolve", ), + ".secret_scanning_alert_created": ("SecretScanningAlertCreated",), + ".secret_scanning_alert_reopened": ("SecretScanningAlertReopened",), + ".secret_scanning_alert_resolved": ("SecretScanningAlertResolved",), + ".secret_scanning_alert_revoked": ("SecretScanningAlertRevoked",), ".secret_scanning_alert_location": ("SecretScanningAlertLocationCreated",), - ".security_advisory": ( - "SecurityAdvisoryPublished", - "SecurityAdvisoryUpdated", - "SecurityAdvisoryWithdrawn", - ), + ".security_advisory_published": ("SecurityAdvisoryPublished",), + ".security_advisory_updated": ("SecurityAdvisoryUpdated",), + ".security_advisory_withdrawn": ("SecurityAdvisoryWithdrawn",), ".security_and_analysis": ("SecurityAndAnalysis",), - ".sponsorship": ( - "SponsorshipCancelled", - "SponsorshipCreated", - "SponsorshipEdited", - "SponsorshipPendingCancellation", - "SponsorshipPendingTierChange", - "SponsorshipTierChanged", - ), - ".star": ( - "StarCreated", - "StarDeleted", - ), + ".sponsorship_cancelled": ("SponsorshipCancelled",), + ".sponsorship_created": ("SponsorshipCreated",), + ".sponsorship_edited": ("SponsorshipEdited",), + ".sponsorship_pending_cancellation": ("SponsorshipPendingCancellation",), + ".sponsorship_pending_tier_change": ("SponsorshipPendingTierChange",), + ".sponsorship_tier_changed": ("SponsorshipTierChanged",), + ".star_created": ("StarCreated",), + ".star_deleted": ("StarDeleted",), ".status": ("Status",), ".team_add": ("TeamAdd",), - ".team": ( - "TeamAddedToRepository", - "TeamCreated", - "TeamDeleted", - "TeamEdited", - "TeamRemovedFromRepository", - ), + ".team_added_to_repository": ("TeamAddedToRepository",), + ".team_created": ("TeamCreated",), + ".team_deleted": ("TeamDeleted",), + ".team_edited": ("TeamEdited",), + ".team_removed_from_repository": ("TeamRemovedFromRepository",), ".watch": ("WatchStarted",), ".workflow_dispatch": ("WorkflowDispatch",), - ".workflow_job": ( - "WorkflowJobCompleted", - "WorkflowJobInProgress", - "WorkflowJobQueued", - "WorkflowJobWaiting", - ), - ".workflow_run": ( - "WorkflowRunCompleted", - "WorkflowRunInProgress", - "WorkflowRunRequested", - ), + ".workflow_job_completed": ("WorkflowJobCompleted",), + ".workflow_job_in_progress": ("WorkflowJobInProgress",), + ".workflow_job_queued": ("WorkflowJobQueued",), + ".workflow_job_waiting": ("WorkflowJobWaiting",), + ".workflow_run_completed": ("WorkflowRunCompleted",), + ".workflow_run_in_progress": ("WorkflowRunInProgress",), + ".workflow_run_requested": ("WorkflowRunRequested",), "._base": ("Event",), "._types": ("events",), } diff --git a/nonebot/adapters/github/event/branch_protection_configuration.py b/nonebot/adapters/github/event/branch_protection_configuration_disabled.py similarity index 59% rename from nonebot/adapters/github/event/branch_protection_configuration.py rename to nonebot/adapters/github/event/branch_protection_configuration_disabled.py index ac7a82a..7e87d50 100644 --- a/nonebot/adapters/github/event/branch_protection_configuration.py +++ b/nonebot/adapters/github/event/branch_protection_configuration_disabled.py @@ -1,5 +1,4 @@ from githubkit.versions.latest.models import ( - WebhookBranchProtectionConfigurationEnabled, WebhookBranchProtectionConfigurationDisabled, ) @@ -9,8 +8,3 @@ class BranchProtectionConfigurationDisabled(Event): payload: WebhookBranchProtectionConfigurationDisabled - - -class BranchProtectionConfigurationEnabled(Event): - - payload: WebhookBranchProtectionConfigurationEnabled diff --git a/nonebot/adapters/github/event/branch_protection_configuration_enabled.py b/nonebot/adapters/github/event/branch_protection_configuration_enabled.py new file mode 100644 index 0000000..8aa2a20 --- /dev/null +++ b/nonebot/adapters/github/event/branch_protection_configuration_enabled.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookBranchProtectionConfigurationEnabled + +from ._base import Event + + +class BranchProtectionConfigurationEnabled(Event): + + payload: WebhookBranchProtectionConfigurationEnabled diff --git a/nonebot/adapters/github/event/branch_protection_rule.py b/nonebot/adapters/github/event/branch_protection_rule.py deleted file mode 100644 index 5662568..0000000 --- a/nonebot/adapters/github/event/branch_protection_rule.py +++ /dev/null @@ -1,22 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookBranchProtectionRuleEdited, - WebhookBranchProtectionRuleCreated, - WebhookBranchProtectionRuleDeleted, -) - -from ._base import Event - - -class BranchProtectionRuleCreated(Event): - - payload: WebhookBranchProtectionRuleCreated - - -class BranchProtectionRuleDeleted(Event): - - payload: WebhookBranchProtectionRuleDeleted - - -class BranchProtectionRuleEdited(Event): - - payload: WebhookBranchProtectionRuleEdited diff --git a/nonebot/adapters/github/event/branch_protection_rule_created.py b/nonebot/adapters/github/event/branch_protection_rule_created.py new file mode 100644 index 0000000..b517831 --- /dev/null +++ b/nonebot/adapters/github/event/branch_protection_rule_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookBranchProtectionRuleCreated + +from ._base import Event + + +class BranchProtectionRuleCreated(Event): + + payload: WebhookBranchProtectionRuleCreated diff --git a/nonebot/adapters/github/event/branch_protection_rule_deleted.py b/nonebot/adapters/github/event/branch_protection_rule_deleted.py new file mode 100644 index 0000000..139f7cd --- /dev/null +++ b/nonebot/adapters/github/event/branch_protection_rule_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookBranchProtectionRuleDeleted + +from ._base import Event + + +class BranchProtectionRuleDeleted(Event): + + payload: WebhookBranchProtectionRuleDeleted diff --git a/nonebot/adapters/github/event/branch_protection_rule_edited.py b/nonebot/adapters/github/event/branch_protection_rule_edited.py new file mode 100644 index 0000000..2b53d5b --- /dev/null +++ b/nonebot/adapters/github/event/branch_protection_rule_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookBranchProtectionRuleEdited + +from ._base import Event + + +class BranchProtectionRuleEdited(Event): + + payload: WebhookBranchProtectionRuleEdited diff --git a/nonebot/adapters/github/event/check_run.py b/nonebot/adapters/github/event/check_run.py deleted file mode 100644 index bd82ece..0000000 --- a/nonebot/adapters/github/event/check_run.py +++ /dev/null @@ -1,28 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookCheckRunCreated, - WebhookCheckRunCompleted, - WebhookCheckRunRerequested, - WebhookCheckRunRequestedAction, -) - -from ._base import Event - - -class CheckRunCompleted(Event): - - payload: WebhookCheckRunCompleted - - -class CheckRunCreated(Event): - - payload: WebhookCheckRunCreated - - -class CheckRunRequestedAction(Event): - - payload: WebhookCheckRunRequestedAction - - -class CheckRunRerequested(Event): - - payload: WebhookCheckRunRerequested diff --git a/nonebot/adapters/github/event/check_run_completed.py b/nonebot/adapters/github/event/check_run_completed.py new file mode 100644 index 0000000..adda9f8 --- /dev/null +++ b/nonebot/adapters/github/event/check_run_completed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCheckRunCompleted + +from ._base import Event + + +class CheckRunCompleted(Event): + + payload: WebhookCheckRunCompleted diff --git a/nonebot/adapters/github/event/check_run_created.py b/nonebot/adapters/github/event/check_run_created.py new file mode 100644 index 0000000..5547257 --- /dev/null +++ b/nonebot/adapters/github/event/check_run_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCheckRunCreated + +from ._base import Event + + +class CheckRunCreated(Event): + + payload: WebhookCheckRunCreated diff --git a/nonebot/adapters/github/event/check_run_requested_action.py b/nonebot/adapters/github/event/check_run_requested_action.py new file mode 100644 index 0000000..673e627 --- /dev/null +++ b/nonebot/adapters/github/event/check_run_requested_action.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCheckRunRequestedAction + +from ._base import Event + + +class CheckRunRequestedAction(Event): + + payload: WebhookCheckRunRequestedAction diff --git a/nonebot/adapters/github/event/check_run_rerequested.py b/nonebot/adapters/github/event/check_run_rerequested.py new file mode 100644 index 0000000..099f485 --- /dev/null +++ b/nonebot/adapters/github/event/check_run_rerequested.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCheckRunRerequested + +from ._base import Event + + +class CheckRunRerequested(Event): + + payload: WebhookCheckRunRerequested diff --git a/nonebot/adapters/github/event/check_suite.py b/nonebot/adapters/github/event/check_suite.py deleted file mode 100644 index f1523b2..0000000 --- a/nonebot/adapters/github/event/check_suite.py +++ /dev/null @@ -1,22 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookCheckSuiteCompleted, - WebhookCheckSuiteRequested, - WebhookCheckSuiteRerequested, -) - -from ._base import Event - - -class CheckSuiteCompleted(Event): - - payload: WebhookCheckSuiteCompleted - - -class CheckSuiteRequested(Event): - - payload: WebhookCheckSuiteRequested - - -class CheckSuiteRerequested(Event): - - payload: WebhookCheckSuiteRerequested diff --git a/nonebot/adapters/github/event/check_suite_completed.py b/nonebot/adapters/github/event/check_suite_completed.py new file mode 100644 index 0000000..7ce439d --- /dev/null +++ b/nonebot/adapters/github/event/check_suite_completed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCheckSuiteCompleted + +from ._base import Event + + +class CheckSuiteCompleted(Event): + + payload: WebhookCheckSuiteCompleted diff --git a/nonebot/adapters/github/event/check_suite_requested.py b/nonebot/adapters/github/event/check_suite_requested.py new file mode 100644 index 0000000..0dab466 --- /dev/null +++ b/nonebot/adapters/github/event/check_suite_requested.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCheckSuiteRequested + +from ._base import Event + + +class CheckSuiteRequested(Event): + + payload: WebhookCheckSuiteRequested diff --git a/nonebot/adapters/github/event/check_suite_rerequested.py b/nonebot/adapters/github/event/check_suite_rerequested.py new file mode 100644 index 0000000..3884b33 --- /dev/null +++ b/nonebot/adapters/github/event/check_suite_rerequested.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCheckSuiteRerequested + +from ._base import Event + + +class CheckSuiteRerequested(Event): + + payload: WebhookCheckSuiteRerequested diff --git a/nonebot/adapters/github/event/code_scanning_alert.py b/nonebot/adapters/github/event/code_scanning_alert.py deleted file mode 100644 index e566b70..0000000 --- a/nonebot/adapters/github/event/code_scanning_alert.py +++ /dev/null @@ -1,40 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookCodeScanningAlertFixed, - WebhookCodeScanningAlertCreated, - WebhookCodeScanningAlertReopened, - WebhookCodeScanningAlertClosedByUser, - WebhookCodeScanningAlertReopenedByUser, - WebhookCodeScanningAlertAppearedInBranch, -) - -from ._base import Event - - -class CodeScanningAlertAppearedInBranch(Event): - - payload: WebhookCodeScanningAlertAppearedInBranch - - -class CodeScanningAlertClosedByUser(Event): - - payload: WebhookCodeScanningAlertClosedByUser - - -class CodeScanningAlertCreated(Event): - - payload: WebhookCodeScanningAlertCreated - - -class CodeScanningAlertFixed(Event): - - payload: WebhookCodeScanningAlertFixed - - -class CodeScanningAlertReopened(Event): - - payload: WebhookCodeScanningAlertReopened - - -class CodeScanningAlertReopenedByUser(Event): - - payload: WebhookCodeScanningAlertReopenedByUser diff --git a/nonebot/adapters/github/event/code_scanning_alert_appeared_in_branch.py b/nonebot/adapters/github/event/code_scanning_alert_appeared_in_branch.py new file mode 100644 index 0000000..f75c2e8 --- /dev/null +++ b/nonebot/adapters/github/event/code_scanning_alert_appeared_in_branch.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCodeScanningAlertAppearedInBranch + +from ._base import Event + + +class CodeScanningAlertAppearedInBranch(Event): + + payload: WebhookCodeScanningAlertAppearedInBranch diff --git a/nonebot/adapters/github/event/code_scanning_alert_closed_by_user.py b/nonebot/adapters/github/event/code_scanning_alert_closed_by_user.py new file mode 100644 index 0000000..9595060 --- /dev/null +++ b/nonebot/adapters/github/event/code_scanning_alert_closed_by_user.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCodeScanningAlertClosedByUser + +from ._base import Event + + +class CodeScanningAlertClosedByUser(Event): + + payload: WebhookCodeScanningAlertClosedByUser diff --git a/nonebot/adapters/github/event/code_scanning_alert_created.py b/nonebot/adapters/github/event/code_scanning_alert_created.py new file mode 100644 index 0000000..b99d016 --- /dev/null +++ b/nonebot/adapters/github/event/code_scanning_alert_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCodeScanningAlertCreated + +from ._base import Event + + +class CodeScanningAlertCreated(Event): + + payload: WebhookCodeScanningAlertCreated diff --git a/nonebot/adapters/github/event/code_scanning_alert_fixed.py b/nonebot/adapters/github/event/code_scanning_alert_fixed.py new file mode 100644 index 0000000..8b9f9cf --- /dev/null +++ b/nonebot/adapters/github/event/code_scanning_alert_fixed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCodeScanningAlertFixed + +from ._base import Event + + +class CodeScanningAlertFixed(Event): + + payload: WebhookCodeScanningAlertFixed diff --git a/nonebot/adapters/github/event/code_scanning_alert_reopened.py b/nonebot/adapters/github/event/code_scanning_alert_reopened.py new file mode 100644 index 0000000..d691b24 --- /dev/null +++ b/nonebot/adapters/github/event/code_scanning_alert_reopened.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCodeScanningAlertReopened + +from ._base import Event + + +class CodeScanningAlertReopened(Event): + + payload: WebhookCodeScanningAlertReopened diff --git a/nonebot/adapters/github/event/code_scanning_alert_reopened_by_user.py b/nonebot/adapters/github/event/code_scanning_alert_reopened_by_user.py new file mode 100644 index 0000000..ca13dd2 --- /dev/null +++ b/nonebot/adapters/github/event/code_scanning_alert_reopened_by_user.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCodeScanningAlertReopenedByUser + +from ._base import Event + + +class CodeScanningAlertReopenedByUser(Event): + + payload: WebhookCodeScanningAlertReopenedByUser diff --git a/nonebot/adapters/github/event/custom_property.py b/nonebot/adapters/github/event/custom_property.py deleted file mode 100644 index 4266fd4..0000000 --- a/nonebot/adapters/github/event/custom_property.py +++ /dev/null @@ -1,22 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookCustomPropertyCreated, - WebhookCustomPropertyDeleted, - WebhookCustomPropertyUpdated, -) - -from ._base import Event - - -class CustomPropertyCreated(Event): - - payload: WebhookCustomPropertyCreated - - -class CustomPropertyDeleted(Event): - - payload: WebhookCustomPropertyDeleted - - -class CustomPropertyUpdated(Event): - - payload: WebhookCustomPropertyUpdated diff --git a/nonebot/adapters/github/event/custom_property_created.py b/nonebot/adapters/github/event/custom_property_created.py new file mode 100644 index 0000000..f9cf986 --- /dev/null +++ b/nonebot/adapters/github/event/custom_property_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCustomPropertyCreated + +from ._base import Event + + +class CustomPropertyCreated(Event): + + payload: WebhookCustomPropertyCreated diff --git a/nonebot/adapters/github/event/custom_property_deleted.py b/nonebot/adapters/github/event/custom_property_deleted.py new file mode 100644 index 0000000..c9aa33e --- /dev/null +++ b/nonebot/adapters/github/event/custom_property_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCustomPropertyDeleted + +from ._base import Event + + +class CustomPropertyDeleted(Event): + + payload: WebhookCustomPropertyDeleted diff --git a/nonebot/adapters/github/event/custom_property_updated.py b/nonebot/adapters/github/event/custom_property_updated.py new file mode 100644 index 0000000..374f4fd --- /dev/null +++ b/nonebot/adapters/github/event/custom_property_updated.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookCustomPropertyUpdated + +from ._base import Event + + +class CustomPropertyUpdated(Event): + + payload: WebhookCustomPropertyUpdated diff --git a/nonebot/adapters/github/event/dependabot_alert.py b/nonebot/adapters/github/event/dependabot_alert.py deleted file mode 100644 index 9f6eb2a..0000000 --- a/nonebot/adapters/github/event/dependabot_alert.py +++ /dev/null @@ -1,46 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookDependabotAlertFixed, - WebhookDependabotAlertCreated, - WebhookDependabotAlertReopened, - WebhookDependabotAlertDismissed, - WebhookDependabotAlertAutoReopened, - WebhookDependabotAlertReintroduced, - WebhookDependabotAlertAutoDismissed, -) - -from ._base import Event - - -class DependabotAlertAutoDismissed(Event): - - payload: WebhookDependabotAlertAutoDismissed - - -class DependabotAlertAutoReopened(Event): - - payload: WebhookDependabotAlertAutoReopened - - -class DependabotAlertCreated(Event): - - payload: WebhookDependabotAlertCreated - - -class DependabotAlertDismissed(Event): - - payload: WebhookDependabotAlertDismissed - - -class DependabotAlertFixed(Event): - - payload: WebhookDependabotAlertFixed - - -class DependabotAlertReintroduced(Event): - - payload: WebhookDependabotAlertReintroduced - - -class DependabotAlertReopened(Event): - - payload: WebhookDependabotAlertReopened diff --git a/nonebot/adapters/github/event/dependabot_alert_auto_dismissed.py b/nonebot/adapters/github/event/dependabot_alert_auto_dismissed.py new file mode 100644 index 0000000..1624eb9 --- /dev/null +++ b/nonebot/adapters/github/event/dependabot_alert_auto_dismissed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDependabotAlertAutoDismissed + +from ._base import Event + + +class DependabotAlertAutoDismissed(Event): + + payload: WebhookDependabotAlertAutoDismissed diff --git a/nonebot/adapters/github/event/dependabot_alert_auto_reopened.py b/nonebot/adapters/github/event/dependabot_alert_auto_reopened.py new file mode 100644 index 0000000..b8aa725 --- /dev/null +++ b/nonebot/adapters/github/event/dependabot_alert_auto_reopened.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDependabotAlertAutoReopened + +from ._base import Event + + +class DependabotAlertAutoReopened(Event): + + payload: WebhookDependabotAlertAutoReopened diff --git a/nonebot/adapters/github/event/dependabot_alert_created.py b/nonebot/adapters/github/event/dependabot_alert_created.py new file mode 100644 index 0000000..5a4512f --- /dev/null +++ b/nonebot/adapters/github/event/dependabot_alert_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDependabotAlertCreated + +from ._base import Event + + +class DependabotAlertCreated(Event): + + payload: WebhookDependabotAlertCreated diff --git a/nonebot/adapters/github/event/dependabot_alert_dismissed.py b/nonebot/adapters/github/event/dependabot_alert_dismissed.py new file mode 100644 index 0000000..d87d0eb --- /dev/null +++ b/nonebot/adapters/github/event/dependabot_alert_dismissed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDependabotAlertDismissed + +from ._base import Event + + +class DependabotAlertDismissed(Event): + + payload: WebhookDependabotAlertDismissed diff --git a/nonebot/adapters/github/event/dependabot_alert_fixed.py b/nonebot/adapters/github/event/dependabot_alert_fixed.py new file mode 100644 index 0000000..e862e51 --- /dev/null +++ b/nonebot/adapters/github/event/dependabot_alert_fixed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDependabotAlertFixed + +from ._base import Event + + +class DependabotAlertFixed(Event): + + payload: WebhookDependabotAlertFixed diff --git a/nonebot/adapters/github/event/dependabot_alert_reintroduced.py b/nonebot/adapters/github/event/dependabot_alert_reintroduced.py new file mode 100644 index 0000000..6e83a0d --- /dev/null +++ b/nonebot/adapters/github/event/dependabot_alert_reintroduced.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDependabotAlertReintroduced + +from ._base import Event + + +class DependabotAlertReintroduced(Event): + + payload: WebhookDependabotAlertReintroduced diff --git a/nonebot/adapters/github/event/dependabot_alert_reopened.py b/nonebot/adapters/github/event/dependabot_alert_reopened.py new file mode 100644 index 0000000..5914a95 --- /dev/null +++ b/nonebot/adapters/github/event/dependabot_alert_reopened.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDependabotAlertReopened + +from ._base import Event + + +class DependabotAlertReopened(Event): + + payload: WebhookDependabotAlertReopened diff --git a/nonebot/adapters/github/event/deploy_key.py b/nonebot/adapters/github/event/deploy_key.py deleted file mode 100644 index 34b24d4..0000000 --- a/nonebot/adapters/github/event/deploy_key.py +++ /dev/null @@ -1,16 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookDeployKeyCreated, - WebhookDeployKeyDeleted, -) - -from ._base import Event - - -class DeployKeyCreated(Event): - - payload: WebhookDeployKeyCreated - - -class DeployKeyDeleted(Event): - - payload: WebhookDeployKeyDeleted diff --git a/nonebot/adapters/github/event/deploy_key_created.py b/nonebot/adapters/github/event/deploy_key_created.py new file mode 100644 index 0000000..5a38af1 --- /dev/null +++ b/nonebot/adapters/github/event/deploy_key_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDeployKeyCreated + +from ._base import Event + + +class DeployKeyCreated(Event): + + payload: WebhookDeployKeyCreated diff --git a/nonebot/adapters/github/event/deploy_key_deleted.py b/nonebot/adapters/github/event/deploy_key_deleted.py new file mode 100644 index 0000000..69ad240 --- /dev/null +++ b/nonebot/adapters/github/event/deploy_key_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDeployKeyDeleted + +from ._base import Event + + +class DeployKeyDeleted(Event): + + payload: WebhookDeployKeyDeleted diff --git a/nonebot/adapters/github/event/deployment_review.py b/nonebot/adapters/github/event/deployment_review.py deleted file mode 100644 index 7933b01..0000000 --- a/nonebot/adapters/github/event/deployment_review.py +++ /dev/null @@ -1,22 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookDeploymentReviewApproved, - WebhookDeploymentReviewRejected, - WebhookDeploymentReviewRequested, -) - -from ._base import Event - - -class DeploymentReviewApproved(Event): - - payload: WebhookDeploymentReviewApproved - - -class DeploymentReviewRejected(Event): - - payload: WebhookDeploymentReviewRejected - - -class DeploymentReviewRequested(Event): - - payload: WebhookDeploymentReviewRequested diff --git a/nonebot/adapters/github/event/deployment_review_approved.py b/nonebot/adapters/github/event/deployment_review_approved.py new file mode 100644 index 0000000..e50e7bb --- /dev/null +++ b/nonebot/adapters/github/event/deployment_review_approved.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDeploymentReviewApproved + +from ._base import Event + + +class DeploymentReviewApproved(Event): + + payload: WebhookDeploymentReviewApproved diff --git a/nonebot/adapters/github/event/deployment_review_rejected.py b/nonebot/adapters/github/event/deployment_review_rejected.py new file mode 100644 index 0000000..355f9ae --- /dev/null +++ b/nonebot/adapters/github/event/deployment_review_rejected.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDeploymentReviewRejected + +from ._base import Event + + +class DeploymentReviewRejected(Event): + + payload: WebhookDeploymentReviewRejected diff --git a/nonebot/adapters/github/event/deployment_review_requested.py b/nonebot/adapters/github/event/deployment_review_requested.py new file mode 100644 index 0000000..b65a5d8 --- /dev/null +++ b/nonebot/adapters/github/event/deployment_review_requested.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDeploymentReviewRequested + +from ._base import Event + + +class DeploymentReviewRequested(Event): + + payload: WebhookDeploymentReviewRequested diff --git a/nonebot/adapters/github/event/discussion.py b/nonebot/adapters/github/event/discussion.py deleted file mode 100644 index b63bdb0..0000000 --- a/nonebot/adapters/github/event/discussion.py +++ /dev/null @@ -1,94 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookDiscussionClosed, - WebhookDiscussionEdited, - WebhookDiscussionLocked, - WebhookDiscussionPinned, - WebhookDiscussionCreated, - WebhookDiscussionDeleted, - WebhookDiscussionLabeled, - WebhookDiscussionAnswered, - WebhookDiscussionReopened, - WebhookDiscussionUnlocked, - WebhookDiscussionUnpinned, - WebhookDiscussionUnlabeled, - WebhookDiscussionUnanswered, - WebhookDiscussionTransferred, - WebhookDiscussionCategoryChanged, -) - -from ._base import Event - - -class DiscussionAnswered(Event): - - payload: WebhookDiscussionAnswered - - -class DiscussionCategoryChanged(Event): - - payload: WebhookDiscussionCategoryChanged - - -class DiscussionClosed(Event): - - payload: WebhookDiscussionClosed - - -class DiscussionCreated(Event): - - payload: WebhookDiscussionCreated - - -class DiscussionDeleted(Event): - - payload: WebhookDiscussionDeleted - - -class DiscussionEdited(Event): - - payload: WebhookDiscussionEdited - - -class DiscussionLabeled(Event): - - payload: WebhookDiscussionLabeled - - -class DiscussionLocked(Event): - - payload: WebhookDiscussionLocked - - -class DiscussionPinned(Event): - - payload: WebhookDiscussionPinned - - -class DiscussionReopened(Event): - - payload: WebhookDiscussionReopened - - -class DiscussionTransferred(Event): - - payload: WebhookDiscussionTransferred - - -class DiscussionUnanswered(Event): - - payload: WebhookDiscussionUnanswered - - -class DiscussionUnlabeled(Event): - - payload: WebhookDiscussionUnlabeled - - -class DiscussionUnlocked(Event): - - payload: WebhookDiscussionUnlocked - - -class DiscussionUnpinned(Event): - - payload: WebhookDiscussionUnpinned diff --git a/nonebot/adapters/github/event/discussion_answered.py b/nonebot/adapters/github/event/discussion_answered.py new file mode 100644 index 0000000..152714b --- /dev/null +++ b/nonebot/adapters/github/event/discussion_answered.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionAnswered + +from ._base import Event + + +class DiscussionAnswered(Event): + + payload: WebhookDiscussionAnswered diff --git a/nonebot/adapters/github/event/discussion_category_changed.py b/nonebot/adapters/github/event/discussion_category_changed.py new file mode 100644 index 0000000..73b78e3 --- /dev/null +++ b/nonebot/adapters/github/event/discussion_category_changed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionCategoryChanged + +from ._base import Event + + +class DiscussionCategoryChanged(Event): + + payload: WebhookDiscussionCategoryChanged diff --git a/nonebot/adapters/github/event/discussion_closed.py b/nonebot/adapters/github/event/discussion_closed.py new file mode 100644 index 0000000..a95badf --- /dev/null +++ b/nonebot/adapters/github/event/discussion_closed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionClosed + +from ._base import Event + + +class DiscussionClosed(Event): + + payload: WebhookDiscussionClosed diff --git a/nonebot/adapters/github/event/discussion_comment.py b/nonebot/adapters/github/event/discussion_comment.py deleted file mode 100644 index 613844c..0000000 --- a/nonebot/adapters/github/event/discussion_comment.py +++ /dev/null @@ -1,22 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookDiscussionCommentEdited, - WebhookDiscussionCommentCreated, - WebhookDiscussionCommentDeleted, -) - -from ._base import Event - - -class DiscussionCommentCreated(Event): - - payload: WebhookDiscussionCommentCreated - - -class DiscussionCommentDeleted(Event): - - payload: WebhookDiscussionCommentDeleted - - -class DiscussionCommentEdited(Event): - - payload: WebhookDiscussionCommentEdited diff --git a/nonebot/adapters/github/event/discussion_comment_created.py b/nonebot/adapters/github/event/discussion_comment_created.py new file mode 100644 index 0000000..be8539d --- /dev/null +++ b/nonebot/adapters/github/event/discussion_comment_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionCommentCreated + +from ._base import Event + + +class DiscussionCommentCreated(Event): + + payload: WebhookDiscussionCommentCreated diff --git a/nonebot/adapters/github/event/discussion_comment_deleted.py b/nonebot/adapters/github/event/discussion_comment_deleted.py new file mode 100644 index 0000000..a060043 --- /dev/null +++ b/nonebot/adapters/github/event/discussion_comment_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionCommentDeleted + +from ._base import Event + + +class DiscussionCommentDeleted(Event): + + payload: WebhookDiscussionCommentDeleted diff --git a/nonebot/adapters/github/event/discussion_comment_edited.py b/nonebot/adapters/github/event/discussion_comment_edited.py new file mode 100644 index 0000000..a3e080d --- /dev/null +++ b/nonebot/adapters/github/event/discussion_comment_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionCommentEdited + +from ._base import Event + + +class DiscussionCommentEdited(Event): + + payload: WebhookDiscussionCommentEdited diff --git a/nonebot/adapters/github/event/discussion_created.py b/nonebot/adapters/github/event/discussion_created.py new file mode 100644 index 0000000..4b08596 --- /dev/null +++ b/nonebot/adapters/github/event/discussion_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionCreated + +from ._base import Event + + +class DiscussionCreated(Event): + + payload: WebhookDiscussionCreated diff --git a/nonebot/adapters/github/event/discussion_deleted.py b/nonebot/adapters/github/event/discussion_deleted.py new file mode 100644 index 0000000..a0d0396 --- /dev/null +++ b/nonebot/adapters/github/event/discussion_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionDeleted + +from ._base import Event + + +class DiscussionDeleted(Event): + + payload: WebhookDiscussionDeleted diff --git a/nonebot/adapters/github/event/discussion_edited.py b/nonebot/adapters/github/event/discussion_edited.py new file mode 100644 index 0000000..f4dde58 --- /dev/null +++ b/nonebot/adapters/github/event/discussion_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionEdited + +from ._base import Event + + +class DiscussionEdited(Event): + + payload: WebhookDiscussionEdited diff --git a/nonebot/adapters/github/event/discussion_labeled.py b/nonebot/adapters/github/event/discussion_labeled.py new file mode 100644 index 0000000..5d60f42 --- /dev/null +++ b/nonebot/adapters/github/event/discussion_labeled.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionLabeled + +from ._base import Event + + +class DiscussionLabeled(Event): + + payload: WebhookDiscussionLabeled diff --git a/nonebot/adapters/github/event/discussion_locked.py b/nonebot/adapters/github/event/discussion_locked.py new file mode 100644 index 0000000..a416e59 --- /dev/null +++ b/nonebot/adapters/github/event/discussion_locked.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionLocked + +from ._base import Event + + +class DiscussionLocked(Event): + + payload: WebhookDiscussionLocked diff --git a/nonebot/adapters/github/event/discussion_pinned.py b/nonebot/adapters/github/event/discussion_pinned.py new file mode 100644 index 0000000..8f2516f --- /dev/null +++ b/nonebot/adapters/github/event/discussion_pinned.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionPinned + +from ._base import Event + + +class DiscussionPinned(Event): + + payload: WebhookDiscussionPinned diff --git a/nonebot/adapters/github/event/discussion_reopened.py b/nonebot/adapters/github/event/discussion_reopened.py new file mode 100644 index 0000000..425a0e1 --- /dev/null +++ b/nonebot/adapters/github/event/discussion_reopened.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionReopened + +from ._base import Event + + +class DiscussionReopened(Event): + + payload: WebhookDiscussionReopened diff --git a/nonebot/adapters/github/event/discussion_transferred.py b/nonebot/adapters/github/event/discussion_transferred.py new file mode 100644 index 0000000..8da3783 --- /dev/null +++ b/nonebot/adapters/github/event/discussion_transferred.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionTransferred + +from ._base import Event + + +class DiscussionTransferred(Event): + + payload: WebhookDiscussionTransferred diff --git a/nonebot/adapters/github/event/discussion_unanswered.py b/nonebot/adapters/github/event/discussion_unanswered.py new file mode 100644 index 0000000..ee6e885 --- /dev/null +++ b/nonebot/adapters/github/event/discussion_unanswered.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionUnanswered + +from ._base import Event + + +class DiscussionUnanswered(Event): + + payload: WebhookDiscussionUnanswered diff --git a/nonebot/adapters/github/event/discussion_unlabeled.py b/nonebot/adapters/github/event/discussion_unlabeled.py new file mode 100644 index 0000000..0acb65b --- /dev/null +++ b/nonebot/adapters/github/event/discussion_unlabeled.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionUnlabeled + +from ._base import Event + + +class DiscussionUnlabeled(Event): + + payload: WebhookDiscussionUnlabeled diff --git a/nonebot/adapters/github/event/discussion_unlocked.py b/nonebot/adapters/github/event/discussion_unlocked.py new file mode 100644 index 0000000..6567e7d --- /dev/null +++ b/nonebot/adapters/github/event/discussion_unlocked.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionUnlocked + +from ._base import Event + + +class DiscussionUnlocked(Event): + + payload: WebhookDiscussionUnlocked diff --git a/nonebot/adapters/github/event/discussion_unpinned.py b/nonebot/adapters/github/event/discussion_unpinned.py new file mode 100644 index 0000000..60c31b3 --- /dev/null +++ b/nonebot/adapters/github/event/discussion_unpinned.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookDiscussionUnpinned + +from ._base import Event + + +class DiscussionUnpinned(Event): + + payload: WebhookDiscussionUnpinned diff --git a/nonebot/adapters/github/event/installation.py b/nonebot/adapters/github/event/installation.py deleted file mode 100644 index 4dd271c..0000000 --- a/nonebot/adapters/github/event/installation.py +++ /dev/null @@ -1,34 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookInstallationCreated, - WebhookInstallationDeleted, - WebhookInstallationSuspend, - WebhookInstallationUnsuspend, - WebhookInstallationNewPermissionsAccepted, -) - -from ._base import Event - - -class InstallationCreated(Event): - - payload: WebhookInstallationCreated - - -class InstallationDeleted(Event): - - payload: WebhookInstallationDeleted - - -class InstallationNewPermissionsAccepted(Event): - - payload: WebhookInstallationNewPermissionsAccepted - - -class InstallationSuspend(Event): - - payload: WebhookInstallationSuspend - - -class InstallationUnsuspend(Event): - - payload: WebhookInstallationUnsuspend diff --git a/nonebot/adapters/github/event/installation_created.py b/nonebot/adapters/github/event/installation_created.py new file mode 100644 index 0000000..e34f825 --- /dev/null +++ b/nonebot/adapters/github/event/installation_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookInstallationCreated + +from ._base import Event + + +class InstallationCreated(Event): + + payload: WebhookInstallationCreated diff --git a/nonebot/adapters/github/event/installation_deleted.py b/nonebot/adapters/github/event/installation_deleted.py new file mode 100644 index 0000000..7ffa09e --- /dev/null +++ b/nonebot/adapters/github/event/installation_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookInstallationDeleted + +from ._base import Event + + +class InstallationDeleted(Event): + + payload: WebhookInstallationDeleted diff --git a/nonebot/adapters/github/event/installation_new_permissions_accepted.py b/nonebot/adapters/github/event/installation_new_permissions_accepted.py new file mode 100644 index 0000000..bd526f9 --- /dev/null +++ b/nonebot/adapters/github/event/installation_new_permissions_accepted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookInstallationNewPermissionsAccepted + +from ._base import Event + + +class InstallationNewPermissionsAccepted(Event): + + payload: WebhookInstallationNewPermissionsAccepted diff --git a/nonebot/adapters/github/event/installation_repositories.py b/nonebot/adapters/github/event/installation_repositories.py deleted file mode 100644 index ea8a7b2..0000000 --- a/nonebot/adapters/github/event/installation_repositories.py +++ /dev/null @@ -1,16 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookInstallationRepositoriesAdded, - WebhookInstallationRepositoriesRemoved, -) - -from ._base import Event - - -class InstallationRepositoriesAdded(Event): - - payload: WebhookInstallationRepositoriesAdded - - -class InstallationRepositoriesRemoved(Event): - - payload: WebhookInstallationRepositoriesRemoved diff --git a/nonebot/adapters/github/event/installation_repositories_added.py b/nonebot/adapters/github/event/installation_repositories_added.py new file mode 100644 index 0000000..e2a550b --- /dev/null +++ b/nonebot/adapters/github/event/installation_repositories_added.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookInstallationRepositoriesAdded + +from ._base import Event + + +class InstallationRepositoriesAdded(Event): + + payload: WebhookInstallationRepositoriesAdded diff --git a/nonebot/adapters/github/event/installation_repositories_removed.py b/nonebot/adapters/github/event/installation_repositories_removed.py new file mode 100644 index 0000000..609ce9f --- /dev/null +++ b/nonebot/adapters/github/event/installation_repositories_removed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookInstallationRepositoriesRemoved + +from ._base import Event + + +class InstallationRepositoriesRemoved(Event): + + payload: WebhookInstallationRepositoriesRemoved diff --git a/nonebot/adapters/github/event/installation_suspend.py b/nonebot/adapters/github/event/installation_suspend.py new file mode 100644 index 0000000..1838ed3 --- /dev/null +++ b/nonebot/adapters/github/event/installation_suspend.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookInstallationSuspend + +from ._base import Event + + +class InstallationSuspend(Event): + + payload: WebhookInstallationSuspend diff --git a/nonebot/adapters/github/event/installation_unsuspend.py b/nonebot/adapters/github/event/installation_unsuspend.py new file mode 100644 index 0000000..03d69d1 --- /dev/null +++ b/nonebot/adapters/github/event/installation_unsuspend.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookInstallationUnsuspend + +from ._base import Event + + +class InstallationUnsuspend(Event): + + payload: WebhookInstallationUnsuspend diff --git a/nonebot/adapters/github/event/issue_comment.py b/nonebot/adapters/github/event/issue_comment.py deleted file mode 100644 index a314ab1..0000000 --- a/nonebot/adapters/github/event/issue_comment.py +++ /dev/null @@ -1,63 +0,0 @@ -from functools import cached_property -from typing_extensions import override - -from githubkit.versions.latest.models import ( - WebhookIssueCommentEdited, - WebhookIssueCommentCreated, - WebhookIssueCommentDeleted, -) - -from ._base import Event -from ..message import Message - - -class IssueCommentCreated(Event): - - payload: WebhookIssueCommentCreated - - @override - def get_type(self) -> str: - return "message" - - @cached_property - def _message(self): - return Message(self.payload.comment.body) - - @override - def get_message(self): - return self._message - - class Config: - keep_untouched = (cached_property,) - - -class IssueCommentDeleted(Event): - - payload: WebhookIssueCommentDeleted - - @cached_property - def _message(self): - return Message(self.payload.comment.body) - - @override - def get_message(self): - return self._message - - class Config: - keep_untouched = (cached_property,) - - -class IssueCommentEdited(Event): - - payload: WebhookIssueCommentEdited - - @cached_property - def _message(self): - return Message(self.payload.comment.body) - - @override - def get_message(self): - return self._message - - class Config: - keep_untouched = (cached_property,) diff --git a/nonebot/adapters/github/event/issue_comment_created.py b/nonebot/adapters/github/event/issue_comment_created.py new file mode 100644 index 0000000..8a00eed --- /dev/null +++ b/nonebot/adapters/github/event/issue_comment_created.py @@ -0,0 +1,27 @@ +from functools import cached_property +from typing_extensions import override + +from githubkit.versions.latest.models import WebhookIssueCommentCreated + +from ._base import Event +from ..message import Message + + +class IssueCommentCreated(Event): + + payload: WebhookIssueCommentCreated + + @override + def get_type(self) -> str: + return "message" + + @cached_property + def _message(self): + return Message(self.payload.comment.body) + + @override + def get_message(self): + return self._message + + class Config: + keep_untouched = (cached_property,) diff --git a/nonebot/adapters/github/event/issue_comment_deleted.py b/nonebot/adapters/github/event/issue_comment_deleted.py new file mode 100644 index 0000000..e58d8d2 --- /dev/null +++ b/nonebot/adapters/github/event/issue_comment_deleted.py @@ -0,0 +1,23 @@ +from functools import cached_property +from typing_extensions import override + +from githubkit.versions.latest.models import WebhookIssueCommentDeleted + +from ._base import Event +from ..message import Message + + +class IssueCommentDeleted(Event): + + payload: WebhookIssueCommentDeleted + + @cached_property + def _message(self): + return Message(self.payload.comment.body) + + @override + def get_message(self): + return self._message + + class Config: + keep_untouched = (cached_property,) diff --git a/nonebot/adapters/github/event/issue_comment_edited.py b/nonebot/adapters/github/event/issue_comment_edited.py new file mode 100644 index 0000000..f73f631 --- /dev/null +++ b/nonebot/adapters/github/event/issue_comment_edited.py @@ -0,0 +1,23 @@ +from functools import cached_property +from typing_extensions import override + +from githubkit.versions.latest.models import WebhookIssueCommentEdited + +from ._base import Event +from ..message import Message + + +class IssueCommentEdited(Event): + + payload: WebhookIssueCommentEdited + + @cached_property + def _message(self): + return Message(self.payload.comment.body) + + @override + def get_message(self): + return self._message + + class Config: + keep_untouched = (cached_property,) diff --git a/nonebot/adapters/github/event/issues.py b/nonebot/adapters/github/event/issues.py deleted file mode 100644 index f7013d7..0000000 --- a/nonebot/adapters/github/event/issues.py +++ /dev/null @@ -1,100 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookIssuesClosed, - WebhookIssuesEdited, - WebhookIssuesLocked, - WebhookIssuesOpened, - WebhookIssuesPinned, - WebhookIssuesDeleted, - WebhookIssuesLabeled, - WebhookIssuesAssigned, - WebhookIssuesReopened, - WebhookIssuesUnlocked, - WebhookIssuesUnpinned, - WebhookIssuesUnlabeled, - WebhookIssuesMilestoned, - WebhookIssuesUnassigned, - WebhookIssuesTransferred, - WebhookIssuesDemilestoned, -) - -from ._base import Event - - -class IssuesAssigned(Event): - - payload: WebhookIssuesAssigned - - -class IssuesClosed(Event): - - payload: WebhookIssuesClosed - - -class IssuesDeleted(Event): - - payload: WebhookIssuesDeleted - - -class IssuesDemilestoned(Event): - - payload: WebhookIssuesDemilestoned - - -class IssuesEdited(Event): - - payload: WebhookIssuesEdited - - -class IssuesLabeled(Event): - - payload: WebhookIssuesLabeled - - -class IssuesLocked(Event): - - payload: WebhookIssuesLocked - - -class IssuesMilestoned(Event): - - payload: WebhookIssuesMilestoned - - -class IssuesOpened(Event): - - payload: WebhookIssuesOpened - - -class IssuesPinned(Event): - - payload: WebhookIssuesPinned - - -class IssuesReopened(Event): - - payload: WebhookIssuesReopened - - -class IssuesTransferred(Event): - - payload: WebhookIssuesTransferred - - -class IssuesUnassigned(Event): - - payload: WebhookIssuesUnassigned - - -class IssuesUnlabeled(Event): - - payload: WebhookIssuesUnlabeled - - -class IssuesUnlocked(Event): - - payload: WebhookIssuesUnlocked - - -class IssuesUnpinned(Event): - - payload: WebhookIssuesUnpinned diff --git a/nonebot/adapters/github/event/issues_assigned.py b/nonebot/adapters/github/event/issues_assigned.py new file mode 100644 index 0000000..b79dfea --- /dev/null +++ b/nonebot/adapters/github/event/issues_assigned.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesAssigned + +from ._base import Event + + +class IssuesAssigned(Event): + + payload: WebhookIssuesAssigned diff --git a/nonebot/adapters/github/event/issues_closed.py b/nonebot/adapters/github/event/issues_closed.py new file mode 100644 index 0000000..093f08b --- /dev/null +++ b/nonebot/adapters/github/event/issues_closed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesClosed + +from ._base import Event + + +class IssuesClosed(Event): + + payload: WebhookIssuesClosed diff --git a/nonebot/adapters/github/event/issues_deleted.py b/nonebot/adapters/github/event/issues_deleted.py new file mode 100644 index 0000000..0385470 --- /dev/null +++ b/nonebot/adapters/github/event/issues_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesDeleted + +from ._base import Event + + +class IssuesDeleted(Event): + + payload: WebhookIssuesDeleted diff --git a/nonebot/adapters/github/event/issues_demilestoned.py b/nonebot/adapters/github/event/issues_demilestoned.py new file mode 100644 index 0000000..7ec76c7 --- /dev/null +++ b/nonebot/adapters/github/event/issues_demilestoned.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesDemilestoned + +from ._base import Event + + +class IssuesDemilestoned(Event): + + payload: WebhookIssuesDemilestoned diff --git a/nonebot/adapters/github/event/issues_edited.py b/nonebot/adapters/github/event/issues_edited.py new file mode 100644 index 0000000..f22e5ed --- /dev/null +++ b/nonebot/adapters/github/event/issues_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesEdited + +from ._base import Event + + +class IssuesEdited(Event): + + payload: WebhookIssuesEdited diff --git a/nonebot/adapters/github/event/issues_labeled.py b/nonebot/adapters/github/event/issues_labeled.py new file mode 100644 index 0000000..77772e9 --- /dev/null +++ b/nonebot/adapters/github/event/issues_labeled.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesLabeled + +from ._base import Event + + +class IssuesLabeled(Event): + + payload: WebhookIssuesLabeled diff --git a/nonebot/adapters/github/event/issues_locked.py b/nonebot/adapters/github/event/issues_locked.py new file mode 100644 index 0000000..7ea0686 --- /dev/null +++ b/nonebot/adapters/github/event/issues_locked.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesLocked + +from ._base import Event + + +class IssuesLocked(Event): + + payload: WebhookIssuesLocked diff --git a/nonebot/adapters/github/event/issues_milestoned.py b/nonebot/adapters/github/event/issues_milestoned.py new file mode 100644 index 0000000..f1008b7 --- /dev/null +++ b/nonebot/adapters/github/event/issues_milestoned.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesMilestoned + +from ._base import Event + + +class IssuesMilestoned(Event): + + payload: WebhookIssuesMilestoned diff --git a/nonebot/adapters/github/event/issues_opened.py b/nonebot/adapters/github/event/issues_opened.py new file mode 100644 index 0000000..1bffac2 --- /dev/null +++ b/nonebot/adapters/github/event/issues_opened.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesOpened + +from ._base import Event + + +class IssuesOpened(Event): + + payload: WebhookIssuesOpened diff --git a/nonebot/adapters/github/event/issues_pinned.py b/nonebot/adapters/github/event/issues_pinned.py new file mode 100644 index 0000000..a5cf858 --- /dev/null +++ b/nonebot/adapters/github/event/issues_pinned.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesPinned + +from ._base import Event + + +class IssuesPinned(Event): + + payload: WebhookIssuesPinned diff --git a/nonebot/adapters/github/event/issues_reopened.py b/nonebot/adapters/github/event/issues_reopened.py new file mode 100644 index 0000000..57458ed --- /dev/null +++ b/nonebot/adapters/github/event/issues_reopened.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesReopened + +from ._base import Event + + +class IssuesReopened(Event): + + payload: WebhookIssuesReopened diff --git a/nonebot/adapters/github/event/issues_transferred.py b/nonebot/adapters/github/event/issues_transferred.py new file mode 100644 index 0000000..b56d1e0 --- /dev/null +++ b/nonebot/adapters/github/event/issues_transferred.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesTransferred + +from ._base import Event + + +class IssuesTransferred(Event): + + payload: WebhookIssuesTransferred diff --git a/nonebot/adapters/github/event/issues_unassigned.py b/nonebot/adapters/github/event/issues_unassigned.py new file mode 100644 index 0000000..6e876a4 --- /dev/null +++ b/nonebot/adapters/github/event/issues_unassigned.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesUnassigned + +from ._base import Event + + +class IssuesUnassigned(Event): + + payload: WebhookIssuesUnassigned diff --git a/nonebot/adapters/github/event/issues_unlabeled.py b/nonebot/adapters/github/event/issues_unlabeled.py new file mode 100644 index 0000000..9692246 --- /dev/null +++ b/nonebot/adapters/github/event/issues_unlabeled.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesUnlabeled + +from ._base import Event + + +class IssuesUnlabeled(Event): + + payload: WebhookIssuesUnlabeled diff --git a/nonebot/adapters/github/event/issues_unlocked.py b/nonebot/adapters/github/event/issues_unlocked.py new file mode 100644 index 0000000..8cb8c5d --- /dev/null +++ b/nonebot/adapters/github/event/issues_unlocked.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesUnlocked + +from ._base import Event + + +class IssuesUnlocked(Event): + + payload: WebhookIssuesUnlocked diff --git a/nonebot/adapters/github/event/issues_unpinned.py b/nonebot/adapters/github/event/issues_unpinned.py new file mode 100644 index 0000000..a288cb4 --- /dev/null +++ b/nonebot/adapters/github/event/issues_unpinned.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookIssuesUnpinned + +from ._base import Event + + +class IssuesUnpinned(Event): + + payload: WebhookIssuesUnpinned diff --git a/nonebot/adapters/github/event/label.py b/nonebot/adapters/github/event/label.py deleted file mode 100644 index 6af5bc9..0000000 --- a/nonebot/adapters/github/event/label.py +++ /dev/null @@ -1,22 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookLabelEdited, - WebhookLabelCreated, - WebhookLabelDeleted, -) - -from ._base import Event - - -class LabelCreated(Event): - - payload: WebhookLabelCreated - - -class LabelDeleted(Event): - - payload: WebhookLabelDeleted - - -class LabelEdited(Event): - - payload: WebhookLabelEdited diff --git a/nonebot/adapters/github/event/label_created.py b/nonebot/adapters/github/event/label_created.py new file mode 100644 index 0000000..244742c --- /dev/null +++ b/nonebot/adapters/github/event/label_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookLabelCreated + +from ._base import Event + + +class LabelCreated(Event): + + payload: WebhookLabelCreated diff --git a/nonebot/adapters/github/event/label_deleted.py b/nonebot/adapters/github/event/label_deleted.py new file mode 100644 index 0000000..860be99 --- /dev/null +++ b/nonebot/adapters/github/event/label_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookLabelDeleted + +from ._base import Event + + +class LabelDeleted(Event): + + payload: WebhookLabelDeleted diff --git a/nonebot/adapters/github/event/label_edited.py b/nonebot/adapters/github/event/label_edited.py new file mode 100644 index 0000000..ffb2244 --- /dev/null +++ b/nonebot/adapters/github/event/label_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookLabelEdited + +from ._base import Event + + +class LabelEdited(Event): + + payload: WebhookLabelEdited diff --git a/nonebot/adapters/github/event/marketplace_purchase.py b/nonebot/adapters/github/event/marketplace_purchase.py deleted file mode 100644 index 15f513a..0000000 --- a/nonebot/adapters/github/event/marketplace_purchase.py +++ /dev/null @@ -1,34 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookMarketplacePurchaseChanged, - WebhookMarketplacePurchaseCancelled, - WebhookMarketplacePurchasePurchased, - WebhookMarketplacePurchasePendingChange, - WebhookMarketplacePurchasePendingChangeCancelled, -) - -from ._base import Event - - -class MarketplacePurchaseCancelled(Event): - - payload: WebhookMarketplacePurchaseCancelled - - -class MarketplacePurchaseChanged(Event): - - payload: WebhookMarketplacePurchaseChanged - - -class MarketplacePurchasePendingChange(Event): - - payload: WebhookMarketplacePurchasePendingChange - - -class MarketplacePurchasePendingChangeCancelled(Event): - - payload: WebhookMarketplacePurchasePendingChangeCancelled - - -class MarketplacePurchasePurchased(Event): - - payload: WebhookMarketplacePurchasePurchased diff --git a/nonebot/adapters/github/event/marketplace_purchase_cancelled.py b/nonebot/adapters/github/event/marketplace_purchase_cancelled.py new file mode 100644 index 0000000..19cee79 --- /dev/null +++ b/nonebot/adapters/github/event/marketplace_purchase_cancelled.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMarketplacePurchaseCancelled + +from ._base import Event + + +class MarketplacePurchaseCancelled(Event): + + payload: WebhookMarketplacePurchaseCancelled diff --git a/nonebot/adapters/github/event/marketplace_purchase_changed.py b/nonebot/adapters/github/event/marketplace_purchase_changed.py new file mode 100644 index 0000000..2b9eb4a --- /dev/null +++ b/nonebot/adapters/github/event/marketplace_purchase_changed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMarketplacePurchaseChanged + +from ._base import Event + + +class MarketplacePurchaseChanged(Event): + + payload: WebhookMarketplacePurchaseChanged diff --git a/nonebot/adapters/github/event/marketplace_purchase_pending_change.py b/nonebot/adapters/github/event/marketplace_purchase_pending_change.py new file mode 100644 index 0000000..2a5fcf6 --- /dev/null +++ b/nonebot/adapters/github/event/marketplace_purchase_pending_change.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMarketplacePurchasePendingChange + +from ._base import Event + + +class MarketplacePurchasePendingChange(Event): + + payload: WebhookMarketplacePurchasePendingChange diff --git a/nonebot/adapters/github/event/marketplace_purchase_pending_change_cancelled.py b/nonebot/adapters/github/event/marketplace_purchase_pending_change_cancelled.py new file mode 100644 index 0000000..79b1c79 --- /dev/null +++ b/nonebot/adapters/github/event/marketplace_purchase_pending_change_cancelled.py @@ -0,0 +1,10 @@ +from githubkit.versions.latest.models import ( + WebhookMarketplacePurchasePendingChangeCancelled, +) + +from ._base import Event + + +class MarketplacePurchasePendingChangeCancelled(Event): + + payload: WebhookMarketplacePurchasePendingChangeCancelled diff --git a/nonebot/adapters/github/event/marketplace_purchase_purchased.py b/nonebot/adapters/github/event/marketplace_purchase_purchased.py new file mode 100644 index 0000000..168ea18 --- /dev/null +++ b/nonebot/adapters/github/event/marketplace_purchase_purchased.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMarketplacePurchasePurchased + +from ._base import Event + + +class MarketplacePurchasePurchased(Event): + + payload: WebhookMarketplacePurchasePurchased diff --git a/nonebot/adapters/github/event/member.py b/nonebot/adapters/github/event/member.py deleted file mode 100644 index 496df37..0000000 --- a/nonebot/adapters/github/event/member.py +++ /dev/null @@ -1,22 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookMemberAdded, - WebhookMemberEdited, - WebhookMemberRemoved, -) - -from ._base import Event - - -class MemberAdded(Event): - - payload: WebhookMemberAdded - - -class MemberEdited(Event): - - payload: WebhookMemberEdited - - -class MemberRemoved(Event): - - payload: WebhookMemberRemoved diff --git a/nonebot/adapters/github/event/member_added.py b/nonebot/adapters/github/event/member_added.py new file mode 100644 index 0000000..f09a2bf --- /dev/null +++ b/nonebot/adapters/github/event/member_added.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMemberAdded + +from ._base import Event + + +class MemberAdded(Event): + + payload: WebhookMemberAdded diff --git a/nonebot/adapters/github/event/member_edited.py b/nonebot/adapters/github/event/member_edited.py new file mode 100644 index 0000000..1998c97 --- /dev/null +++ b/nonebot/adapters/github/event/member_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMemberEdited + +from ._base import Event + + +class MemberEdited(Event): + + payload: WebhookMemberEdited diff --git a/nonebot/adapters/github/event/member_removed.py b/nonebot/adapters/github/event/member_removed.py new file mode 100644 index 0000000..b9a4015 --- /dev/null +++ b/nonebot/adapters/github/event/member_removed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMemberRemoved + +from ._base import Event + + +class MemberRemoved(Event): + + payload: WebhookMemberRemoved diff --git a/nonebot/adapters/github/event/membership.py b/nonebot/adapters/github/event/membership.py deleted file mode 100644 index f868e77..0000000 --- a/nonebot/adapters/github/event/membership.py +++ /dev/null @@ -1,16 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookMembershipAdded, - WebhookMembershipRemoved, -) - -from ._base import Event - - -class MembershipAdded(Event): - - payload: WebhookMembershipAdded - - -class MembershipRemoved(Event): - - payload: WebhookMembershipRemoved diff --git a/nonebot/adapters/github/event/membership_added.py b/nonebot/adapters/github/event/membership_added.py new file mode 100644 index 0000000..4f36a33 --- /dev/null +++ b/nonebot/adapters/github/event/membership_added.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMembershipAdded + +from ._base import Event + + +class MembershipAdded(Event): + + payload: WebhookMembershipAdded diff --git a/nonebot/adapters/github/event/membership_removed.py b/nonebot/adapters/github/event/membership_removed.py new file mode 100644 index 0000000..d0abcff --- /dev/null +++ b/nonebot/adapters/github/event/membership_removed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMembershipRemoved + +from ._base import Event + + +class MembershipRemoved(Event): + + payload: WebhookMembershipRemoved diff --git a/nonebot/adapters/github/event/merge_group.py b/nonebot/adapters/github/event/merge_group.py deleted file mode 100644 index d0c9bc7..0000000 --- a/nonebot/adapters/github/event/merge_group.py +++ /dev/null @@ -1,16 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookMergeGroupDestroyed, - WebhookMergeGroupChecksRequested, -) - -from ._base import Event - - -class MergeGroupChecksRequested(Event): - - payload: WebhookMergeGroupChecksRequested - - -class MergeGroupDestroyed(Event): - - payload: WebhookMergeGroupDestroyed diff --git a/nonebot/adapters/github/event/merge_group_checks_requested.py b/nonebot/adapters/github/event/merge_group_checks_requested.py new file mode 100644 index 0000000..d71e235 --- /dev/null +++ b/nonebot/adapters/github/event/merge_group_checks_requested.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMergeGroupChecksRequested + +from ._base import Event + + +class MergeGroupChecksRequested(Event): + + payload: WebhookMergeGroupChecksRequested diff --git a/nonebot/adapters/github/event/merge_group_destroyed.py b/nonebot/adapters/github/event/merge_group_destroyed.py new file mode 100644 index 0000000..40a9d82 --- /dev/null +++ b/nonebot/adapters/github/event/merge_group_destroyed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMergeGroupDestroyed + +from ._base import Event + + +class MergeGroupDestroyed(Event): + + payload: WebhookMergeGroupDestroyed diff --git a/nonebot/adapters/github/event/milestone.py b/nonebot/adapters/github/event/milestone.py deleted file mode 100644 index b75f8e8..0000000 --- a/nonebot/adapters/github/event/milestone.py +++ /dev/null @@ -1,34 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookMilestoneClosed, - WebhookMilestoneEdited, - WebhookMilestoneOpened, - WebhookMilestoneCreated, - WebhookMilestoneDeleted, -) - -from ._base import Event - - -class MilestoneClosed(Event): - - payload: WebhookMilestoneClosed - - -class MilestoneCreated(Event): - - payload: WebhookMilestoneCreated - - -class MilestoneDeleted(Event): - - payload: WebhookMilestoneDeleted - - -class MilestoneEdited(Event): - - payload: WebhookMilestoneEdited - - -class MilestoneOpened(Event): - - payload: WebhookMilestoneOpened diff --git a/nonebot/adapters/github/event/milestone_closed.py b/nonebot/adapters/github/event/milestone_closed.py new file mode 100644 index 0000000..b49caa9 --- /dev/null +++ b/nonebot/adapters/github/event/milestone_closed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMilestoneClosed + +from ._base import Event + + +class MilestoneClosed(Event): + + payload: WebhookMilestoneClosed diff --git a/nonebot/adapters/github/event/milestone_created.py b/nonebot/adapters/github/event/milestone_created.py new file mode 100644 index 0000000..dbec3bf --- /dev/null +++ b/nonebot/adapters/github/event/milestone_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMilestoneCreated + +from ._base import Event + + +class MilestoneCreated(Event): + + payload: WebhookMilestoneCreated diff --git a/nonebot/adapters/github/event/milestone_deleted.py b/nonebot/adapters/github/event/milestone_deleted.py new file mode 100644 index 0000000..7cbb1af --- /dev/null +++ b/nonebot/adapters/github/event/milestone_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMilestoneDeleted + +from ._base import Event + + +class MilestoneDeleted(Event): + + payload: WebhookMilestoneDeleted diff --git a/nonebot/adapters/github/event/milestone_edited.py b/nonebot/adapters/github/event/milestone_edited.py new file mode 100644 index 0000000..519b95c --- /dev/null +++ b/nonebot/adapters/github/event/milestone_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMilestoneEdited + +from ._base import Event + + +class MilestoneEdited(Event): + + payload: WebhookMilestoneEdited diff --git a/nonebot/adapters/github/event/milestone_opened.py b/nonebot/adapters/github/event/milestone_opened.py new file mode 100644 index 0000000..0079707 --- /dev/null +++ b/nonebot/adapters/github/event/milestone_opened.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookMilestoneOpened + +from ._base import Event + + +class MilestoneOpened(Event): + + payload: WebhookMilestoneOpened diff --git a/nonebot/adapters/github/event/org_block.py b/nonebot/adapters/github/event/org_block.py deleted file mode 100644 index 5909c99..0000000 --- a/nonebot/adapters/github/event/org_block.py +++ /dev/null @@ -1,16 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookOrgBlockBlocked, - WebhookOrgBlockUnblocked, -) - -from ._base import Event - - -class OrgBlockBlocked(Event): - - payload: WebhookOrgBlockBlocked - - -class OrgBlockUnblocked(Event): - - payload: WebhookOrgBlockUnblocked diff --git a/nonebot/adapters/github/event/org_block_blocked.py b/nonebot/adapters/github/event/org_block_blocked.py new file mode 100644 index 0000000..89dd8d8 --- /dev/null +++ b/nonebot/adapters/github/event/org_block_blocked.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookOrgBlockBlocked + +from ._base import Event + + +class OrgBlockBlocked(Event): + + payload: WebhookOrgBlockBlocked diff --git a/nonebot/adapters/github/event/org_block_unblocked.py b/nonebot/adapters/github/event/org_block_unblocked.py new file mode 100644 index 0000000..2800274 --- /dev/null +++ b/nonebot/adapters/github/event/org_block_unblocked.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookOrgBlockUnblocked + +from ._base import Event + + +class OrgBlockUnblocked(Event): + + payload: WebhookOrgBlockUnblocked diff --git a/nonebot/adapters/github/event/organization.py b/nonebot/adapters/github/event/organization.py deleted file mode 100644 index c9d0f70..0000000 --- a/nonebot/adapters/github/event/organization.py +++ /dev/null @@ -1,34 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookOrganizationDeleted, - WebhookOrganizationRenamed, - WebhookOrganizationMemberAdded, - WebhookOrganizationMemberInvited, - WebhookOrganizationMemberRemoved, -) - -from ._base import Event - - -class OrganizationDeleted(Event): - - payload: WebhookOrganizationDeleted - - -class OrganizationMemberAdded(Event): - - payload: WebhookOrganizationMemberAdded - - -class OrganizationMemberInvited(Event): - - payload: WebhookOrganizationMemberInvited - - -class OrganizationMemberRemoved(Event): - - payload: WebhookOrganizationMemberRemoved - - -class OrganizationRenamed(Event): - - payload: WebhookOrganizationRenamed diff --git a/nonebot/adapters/github/event/organization_deleted.py b/nonebot/adapters/github/event/organization_deleted.py new file mode 100644 index 0000000..adff698 --- /dev/null +++ b/nonebot/adapters/github/event/organization_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookOrganizationDeleted + +from ._base import Event + + +class OrganizationDeleted(Event): + + payload: WebhookOrganizationDeleted diff --git a/nonebot/adapters/github/event/organization_member_added.py b/nonebot/adapters/github/event/organization_member_added.py new file mode 100644 index 0000000..2c5c6c7 --- /dev/null +++ b/nonebot/adapters/github/event/organization_member_added.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookOrganizationMemberAdded + +from ._base import Event + + +class OrganizationMemberAdded(Event): + + payload: WebhookOrganizationMemberAdded diff --git a/nonebot/adapters/github/event/organization_member_invited.py b/nonebot/adapters/github/event/organization_member_invited.py new file mode 100644 index 0000000..7de7235 --- /dev/null +++ b/nonebot/adapters/github/event/organization_member_invited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookOrganizationMemberInvited + +from ._base import Event + + +class OrganizationMemberInvited(Event): + + payload: WebhookOrganizationMemberInvited diff --git a/nonebot/adapters/github/event/organization_member_removed.py b/nonebot/adapters/github/event/organization_member_removed.py new file mode 100644 index 0000000..b27df47 --- /dev/null +++ b/nonebot/adapters/github/event/organization_member_removed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookOrganizationMemberRemoved + +from ._base import Event + + +class OrganizationMemberRemoved(Event): + + payload: WebhookOrganizationMemberRemoved diff --git a/nonebot/adapters/github/event/organization_renamed.py b/nonebot/adapters/github/event/organization_renamed.py new file mode 100644 index 0000000..c1c5f4c --- /dev/null +++ b/nonebot/adapters/github/event/organization_renamed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookOrganizationRenamed + +from ._base import Event + + +class OrganizationRenamed(Event): + + payload: WebhookOrganizationRenamed diff --git a/nonebot/adapters/github/event/package.py b/nonebot/adapters/github/event/package.py deleted file mode 100644 index d270648..0000000 --- a/nonebot/adapters/github/event/package.py +++ /dev/null @@ -1,16 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookPackageUpdated, - WebhookPackagePublished, -) - -from ._base import Event - - -class PackagePublished(Event): - - payload: WebhookPackagePublished - - -class PackageUpdated(Event): - - payload: WebhookPackageUpdated diff --git a/nonebot/adapters/github/event/package_published.py b/nonebot/adapters/github/event/package_published.py new file mode 100644 index 0000000..d813815 --- /dev/null +++ b/nonebot/adapters/github/event/package_published.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPackagePublished + +from ._base import Event + + +class PackagePublished(Event): + + payload: WebhookPackagePublished diff --git a/nonebot/adapters/github/event/package_updated.py b/nonebot/adapters/github/event/package_updated.py new file mode 100644 index 0000000..349af91 --- /dev/null +++ b/nonebot/adapters/github/event/package_updated.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPackageUpdated + +from ._base import Event + + +class PackageUpdated(Event): + + payload: WebhookPackageUpdated diff --git a/nonebot/adapters/github/event/personal_access_token_request.py b/nonebot/adapters/github/event/personal_access_token_request.py deleted file mode 100644 index 762d308..0000000 --- a/nonebot/adapters/github/event/personal_access_token_request.py +++ /dev/null @@ -1,28 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookPersonalAccessTokenRequestDenied, - WebhookPersonalAccessTokenRequestCreated, - WebhookPersonalAccessTokenRequestApproved, - WebhookPersonalAccessTokenRequestCancelled, -) - -from ._base import Event - - -class PersonalAccessTokenRequestApproved(Event): - - payload: WebhookPersonalAccessTokenRequestApproved - - -class PersonalAccessTokenRequestCancelled(Event): - - payload: WebhookPersonalAccessTokenRequestCancelled - - -class PersonalAccessTokenRequestCreated(Event): - - payload: WebhookPersonalAccessTokenRequestCreated - - -class PersonalAccessTokenRequestDenied(Event): - - payload: WebhookPersonalAccessTokenRequestDenied diff --git a/nonebot/adapters/github/event/personal_access_token_request_approved.py b/nonebot/adapters/github/event/personal_access_token_request_approved.py new file mode 100644 index 0000000..5a57f10 --- /dev/null +++ b/nonebot/adapters/github/event/personal_access_token_request_approved.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPersonalAccessTokenRequestApproved + +from ._base import Event + + +class PersonalAccessTokenRequestApproved(Event): + + payload: WebhookPersonalAccessTokenRequestApproved diff --git a/nonebot/adapters/github/event/personal_access_token_request_cancelled.py b/nonebot/adapters/github/event/personal_access_token_request_cancelled.py new file mode 100644 index 0000000..98ace41 --- /dev/null +++ b/nonebot/adapters/github/event/personal_access_token_request_cancelled.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPersonalAccessTokenRequestCancelled + +from ._base import Event + + +class PersonalAccessTokenRequestCancelled(Event): + + payload: WebhookPersonalAccessTokenRequestCancelled diff --git a/nonebot/adapters/github/event/personal_access_token_request_created.py b/nonebot/adapters/github/event/personal_access_token_request_created.py new file mode 100644 index 0000000..e7c1eb0 --- /dev/null +++ b/nonebot/adapters/github/event/personal_access_token_request_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPersonalAccessTokenRequestCreated + +from ._base import Event + + +class PersonalAccessTokenRequestCreated(Event): + + payload: WebhookPersonalAccessTokenRequestCreated diff --git a/nonebot/adapters/github/event/personal_access_token_request_denied.py b/nonebot/adapters/github/event/personal_access_token_request_denied.py new file mode 100644 index 0000000..d2a6122 --- /dev/null +++ b/nonebot/adapters/github/event/personal_access_token_request_denied.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPersonalAccessTokenRequestDenied + +from ._base import Event + + +class PersonalAccessTokenRequestDenied(Event): + + payload: WebhookPersonalAccessTokenRequestDenied diff --git a/nonebot/adapters/github/event/project.py b/nonebot/adapters/github/event/project.py deleted file mode 100644 index 2666d8d..0000000 --- a/nonebot/adapters/github/event/project.py +++ /dev/null @@ -1,34 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookProjectClosed, - WebhookProjectEdited, - WebhookProjectCreated, - WebhookProjectDeleted, - WebhookProjectReopened, -) - -from ._base import Event - - -class ProjectClosed(Event): - - payload: WebhookProjectClosed - - -class ProjectCreated(Event): - - payload: WebhookProjectCreated - - -class ProjectDeleted(Event): - - payload: WebhookProjectDeleted - - -class ProjectEdited(Event): - - payload: WebhookProjectEdited - - -class ProjectReopened(Event): - - payload: WebhookProjectReopened diff --git a/nonebot/adapters/github/event/project_card.py b/nonebot/adapters/github/event/project_card.py deleted file mode 100644 index 4da0b7d..0000000 --- a/nonebot/adapters/github/event/project_card.py +++ /dev/null @@ -1,34 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookProjectCardMoved, - WebhookProjectCardEdited, - WebhookProjectCardCreated, - WebhookProjectCardDeleted, - WebhookProjectCardConverted, -) - -from ._base import Event - - -class ProjectCardConverted(Event): - - payload: WebhookProjectCardConverted - - -class ProjectCardCreated(Event): - - payload: WebhookProjectCardCreated - - -class ProjectCardDeleted(Event): - - payload: WebhookProjectCardDeleted - - -class ProjectCardEdited(Event): - - payload: WebhookProjectCardEdited - - -class ProjectCardMoved(Event): - - payload: WebhookProjectCardMoved diff --git a/nonebot/adapters/github/event/project_card_converted.py b/nonebot/adapters/github/event/project_card_converted.py new file mode 100644 index 0000000..b0b52ee --- /dev/null +++ b/nonebot/adapters/github/event/project_card_converted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectCardConverted + +from ._base import Event + + +class ProjectCardConverted(Event): + + payload: WebhookProjectCardConverted diff --git a/nonebot/adapters/github/event/project_card_created.py b/nonebot/adapters/github/event/project_card_created.py new file mode 100644 index 0000000..772394e --- /dev/null +++ b/nonebot/adapters/github/event/project_card_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectCardCreated + +from ._base import Event + + +class ProjectCardCreated(Event): + + payload: WebhookProjectCardCreated diff --git a/nonebot/adapters/github/event/project_card_deleted.py b/nonebot/adapters/github/event/project_card_deleted.py new file mode 100644 index 0000000..9f3ee97 --- /dev/null +++ b/nonebot/adapters/github/event/project_card_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectCardDeleted + +from ._base import Event + + +class ProjectCardDeleted(Event): + + payload: WebhookProjectCardDeleted diff --git a/nonebot/adapters/github/event/project_card_edited.py b/nonebot/adapters/github/event/project_card_edited.py new file mode 100644 index 0000000..8e31206 --- /dev/null +++ b/nonebot/adapters/github/event/project_card_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectCardEdited + +from ._base import Event + + +class ProjectCardEdited(Event): + + payload: WebhookProjectCardEdited diff --git a/nonebot/adapters/github/event/project_card_moved.py b/nonebot/adapters/github/event/project_card_moved.py new file mode 100644 index 0000000..0331137 --- /dev/null +++ b/nonebot/adapters/github/event/project_card_moved.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectCardMoved + +from ._base import Event + + +class ProjectCardMoved(Event): + + payload: WebhookProjectCardMoved diff --git a/nonebot/adapters/github/event/project_closed.py b/nonebot/adapters/github/event/project_closed.py new file mode 100644 index 0000000..0bd4ae2 --- /dev/null +++ b/nonebot/adapters/github/event/project_closed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectClosed + +from ._base import Event + + +class ProjectClosed(Event): + + payload: WebhookProjectClosed diff --git a/nonebot/adapters/github/event/project_column.py b/nonebot/adapters/github/event/project_column.py deleted file mode 100644 index 163b3d9..0000000 --- a/nonebot/adapters/github/event/project_column.py +++ /dev/null @@ -1,28 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookProjectColumnMoved, - WebhookProjectColumnEdited, - WebhookProjectColumnCreated, - WebhookProjectColumnDeleted, -) - -from ._base import Event - - -class ProjectColumnCreated(Event): - - payload: WebhookProjectColumnCreated - - -class ProjectColumnDeleted(Event): - - payload: WebhookProjectColumnDeleted - - -class ProjectColumnEdited(Event): - - payload: WebhookProjectColumnEdited - - -class ProjectColumnMoved(Event): - - payload: WebhookProjectColumnMoved diff --git a/nonebot/adapters/github/event/project_column_created.py b/nonebot/adapters/github/event/project_column_created.py new file mode 100644 index 0000000..f4b9446 --- /dev/null +++ b/nonebot/adapters/github/event/project_column_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectColumnCreated + +from ._base import Event + + +class ProjectColumnCreated(Event): + + payload: WebhookProjectColumnCreated diff --git a/nonebot/adapters/github/event/project_column_deleted.py b/nonebot/adapters/github/event/project_column_deleted.py new file mode 100644 index 0000000..f3f20fc --- /dev/null +++ b/nonebot/adapters/github/event/project_column_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectColumnDeleted + +from ._base import Event + + +class ProjectColumnDeleted(Event): + + payload: WebhookProjectColumnDeleted diff --git a/nonebot/adapters/github/event/project_column_edited.py b/nonebot/adapters/github/event/project_column_edited.py new file mode 100644 index 0000000..0a5672f --- /dev/null +++ b/nonebot/adapters/github/event/project_column_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectColumnEdited + +from ._base import Event + + +class ProjectColumnEdited(Event): + + payload: WebhookProjectColumnEdited diff --git a/nonebot/adapters/github/event/project_column_moved.py b/nonebot/adapters/github/event/project_column_moved.py new file mode 100644 index 0000000..92a97fe --- /dev/null +++ b/nonebot/adapters/github/event/project_column_moved.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectColumnMoved + +from ._base import Event + + +class ProjectColumnMoved(Event): + + payload: WebhookProjectColumnMoved diff --git a/nonebot/adapters/github/event/project_created.py b/nonebot/adapters/github/event/project_created.py new file mode 100644 index 0000000..f2afed2 --- /dev/null +++ b/nonebot/adapters/github/event/project_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectCreated + +from ._base import Event + + +class ProjectCreated(Event): + + payload: WebhookProjectCreated diff --git a/nonebot/adapters/github/event/project_deleted.py b/nonebot/adapters/github/event/project_deleted.py new file mode 100644 index 0000000..fe8361b --- /dev/null +++ b/nonebot/adapters/github/event/project_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectDeleted + +from ._base import Event + + +class ProjectDeleted(Event): + + payload: WebhookProjectDeleted diff --git a/nonebot/adapters/github/event/project_edited.py b/nonebot/adapters/github/event/project_edited.py new file mode 100644 index 0000000..924d268 --- /dev/null +++ b/nonebot/adapters/github/event/project_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectEdited + +from ._base import Event + + +class ProjectEdited(Event): + + payload: WebhookProjectEdited diff --git a/nonebot/adapters/github/event/project_reopened.py b/nonebot/adapters/github/event/project_reopened.py new file mode 100644 index 0000000..d2aea22 --- /dev/null +++ b/nonebot/adapters/github/event/project_reopened.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectReopened + +from ._base import Event + + +class ProjectReopened(Event): + + payload: WebhookProjectReopened diff --git a/nonebot/adapters/github/event/projects_v2.py b/nonebot/adapters/github/event/projects_v2.py deleted file mode 100644 index ef6c63f..0000000 --- a/nonebot/adapters/github/event/projects_v2.py +++ /dev/null @@ -1,34 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookProjectsV2ProjectClosed, - WebhookProjectsV2ProjectEdited, - WebhookProjectsV2ProjectCreated, - WebhookProjectsV2ProjectDeleted, - WebhookProjectsV2ProjectReopened, -) - -from ._base import Event - - -class ProjectsV2ProjectClosed(Event): - - payload: WebhookProjectsV2ProjectClosed - - -class ProjectsV2ProjectCreated(Event): - - payload: WebhookProjectsV2ProjectCreated - - -class ProjectsV2ProjectDeleted(Event): - - payload: WebhookProjectsV2ProjectDeleted - - -class ProjectsV2ProjectEdited(Event): - - payload: WebhookProjectsV2ProjectEdited - - -class ProjectsV2ProjectReopened(Event): - - payload: WebhookProjectsV2ProjectReopened diff --git a/nonebot/adapters/github/event/projects_v2_closed.py b/nonebot/adapters/github/event/projects_v2_closed.py new file mode 100644 index 0000000..10cad2a --- /dev/null +++ b/nonebot/adapters/github/event/projects_v2_closed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectsV2ProjectClosed + +from ._base import Event + + +class ProjectsV2ProjectClosed(Event): + + payload: WebhookProjectsV2ProjectClosed diff --git a/nonebot/adapters/github/event/projects_v2_created.py b/nonebot/adapters/github/event/projects_v2_created.py new file mode 100644 index 0000000..34b54f9 --- /dev/null +++ b/nonebot/adapters/github/event/projects_v2_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectsV2ProjectCreated + +from ._base import Event + + +class ProjectsV2ProjectCreated(Event): + + payload: WebhookProjectsV2ProjectCreated diff --git a/nonebot/adapters/github/event/projects_v2_deleted.py b/nonebot/adapters/github/event/projects_v2_deleted.py new file mode 100644 index 0000000..27e8596 --- /dev/null +++ b/nonebot/adapters/github/event/projects_v2_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectsV2ProjectDeleted + +from ._base import Event + + +class ProjectsV2ProjectDeleted(Event): + + payload: WebhookProjectsV2ProjectDeleted diff --git a/nonebot/adapters/github/event/projects_v2_edited.py b/nonebot/adapters/github/event/projects_v2_edited.py new file mode 100644 index 0000000..48b0727 --- /dev/null +++ b/nonebot/adapters/github/event/projects_v2_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectsV2ProjectEdited + +from ._base import Event + + +class ProjectsV2ProjectEdited(Event): + + payload: WebhookProjectsV2ProjectEdited diff --git a/nonebot/adapters/github/event/projects_v2_item.py b/nonebot/adapters/github/event/projects_v2_item.py deleted file mode 100644 index 23bb36c..0000000 --- a/nonebot/adapters/github/event/projects_v2_item.py +++ /dev/null @@ -1,46 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookProjectsV2ItemEdited, - WebhookProjectsV2ItemCreated, - WebhookProjectsV2ItemDeleted, - WebhookProjectsV2ItemArchived, - WebhookProjectsV2ItemRestored, - WebhookProjectsV2ItemConverted, - WebhookProjectsV2ItemReordered, -) - -from ._base import Event - - -class ProjectsV2ItemArchived(Event): - - payload: WebhookProjectsV2ItemArchived - - -class ProjectsV2ItemConverted(Event): - - payload: WebhookProjectsV2ItemConverted - - -class ProjectsV2ItemCreated(Event): - - payload: WebhookProjectsV2ItemCreated - - -class ProjectsV2ItemDeleted(Event): - - payload: WebhookProjectsV2ItemDeleted - - -class ProjectsV2ItemEdited(Event): - - payload: WebhookProjectsV2ItemEdited - - -class ProjectsV2ItemReordered(Event): - - payload: WebhookProjectsV2ItemReordered - - -class ProjectsV2ItemRestored(Event): - - payload: WebhookProjectsV2ItemRestored diff --git a/nonebot/adapters/github/event/projects_v2_item_archived.py b/nonebot/adapters/github/event/projects_v2_item_archived.py new file mode 100644 index 0000000..8407275 --- /dev/null +++ b/nonebot/adapters/github/event/projects_v2_item_archived.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectsV2ItemArchived + +from ._base import Event + + +class ProjectsV2ItemArchived(Event): + + payload: WebhookProjectsV2ItemArchived diff --git a/nonebot/adapters/github/event/projects_v2_item_converted.py b/nonebot/adapters/github/event/projects_v2_item_converted.py new file mode 100644 index 0000000..d68c59a --- /dev/null +++ b/nonebot/adapters/github/event/projects_v2_item_converted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectsV2ItemConverted + +from ._base import Event + + +class ProjectsV2ItemConverted(Event): + + payload: WebhookProjectsV2ItemConverted diff --git a/nonebot/adapters/github/event/projects_v2_item_created.py b/nonebot/adapters/github/event/projects_v2_item_created.py new file mode 100644 index 0000000..c84ae4e --- /dev/null +++ b/nonebot/adapters/github/event/projects_v2_item_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectsV2ItemCreated + +from ._base import Event + + +class ProjectsV2ItemCreated(Event): + + payload: WebhookProjectsV2ItemCreated diff --git a/nonebot/adapters/github/event/projects_v2_item_deleted.py b/nonebot/adapters/github/event/projects_v2_item_deleted.py new file mode 100644 index 0000000..7782a43 --- /dev/null +++ b/nonebot/adapters/github/event/projects_v2_item_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectsV2ItemDeleted + +from ._base import Event + + +class ProjectsV2ItemDeleted(Event): + + payload: WebhookProjectsV2ItemDeleted diff --git a/nonebot/adapters/github/event/projects_v2_item_edited.py b/nonebot/adapters/github/event/projects_v2_item_edited.py new file mode 100644 index 0000000..649e7bf --- /dev/null +++ b/nonebot/adapters/github/event/projects_v2_item_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectsV2ItemEdited + +from ._base import Event + + +class ProjectsV2ItemEdited(Event): + + payload: WebhookProjectsV2ItemEdited diff --git a/nonebot/adapters/github/event/projects_v2_item_reordered.py b/nonebot/adapters/github/event/projects_v2_item_reordered.py new file mode 100644 index 0000000..dd1c734 --- /dev/null +++ b/nonebot/adapters/github/event/projects_v2_item_reordered.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectsV2ItemReordered + +from ._base import Event + + +class ProjectsV2ItemReordered(Event): + + payload: WebhookProjectsV2ItemReordered diff --git a/nonebot/adapters/github/event/projects_v2_item_restored.py b/nonebot/adapters/github/event/projects_v2_item_restored.py new file mode 100644 index 0000000..826f261 --- /dev/null +++ b/nonebot/adapters/github/event/projects_v2_item_restored.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectsV2ItemRestored + +from ._base import Event + + +class ProjectsV2ItemRestored(Event): + + payload: WebhookProjectsV2ItemRestored diff --git a/nonebot/adapters/github/event/projects_v2_reopened.py b/nonebot/adapters/github/event/projects_v2_reopened.py new file mode 100644 index 0000000..b6ba3f6 --- /dev/null +++ b/nonebot/adapters/github/event/projects_v2_reopened.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookProjectsV2ProjectReopened + +from ._base import Event + + +class ProjectsV2ProjectReopened(Event): + + payload: WebhookProjectsV2ProjectReopened diff --git a/nonebot/adapters/github/event/pull_request.py b/nonebot/adapters/github/event/pull_request.py deleted file mode 100644 index 106a066..0000000 --- a/nonebot/adapters/github/event/pull_request.py +++ /dev/null @@ -1,139 +0,0 @@ -from typing import Union - -from githubkit.versions.latest.models import ( - WebhookPullRequestClosed, - WebhookPullRequestEdited, - WebhookPullRequestLocked, - WebhookPullRequestOpened, - WebhookPullRequestLabeled, - WebhookPullRequestAssigned, - WebhookPullRequestDequeued, - WebhookPullRequestEnqueued, - WebhookPullRequestReopened, - WebhookPullRequestUnlocked, - WebhookPullRequestUnlabeled, - WebhookPullRequestMilestoned, - WebhookPullRequestUnassigned, - WebhookPullRequestSynchronize, - WebhookPullRequestDemilestoned, - WebhookPullRequestReadyForReview, - WebhookPullRequestAutoMergeEnabled, - WebhookPullRequestConvertedToDraft, - WebhookPullRequestAutoMergeDisabled, - WebhookPullRequestReviewRequestedOneof0, - WebhookPullRequestReviewRequestedOneof1, - WebhookPullRequestReviewRequestRemovedOneof0, - WebhookPullRequestReviewRequestRemovedOneof1, -) - -from ._base import Event - - -class PullRequestAssigned(Event): - - payload: WebhookPullRequestAssigned - - -class PullRequestAutoMergeDisabled(Event): - - payload: WebhookPullRequestAutoMergeDisabled - - -class PullRequestAutoMergeEnabled(Event): - - payload: WebhookPullRequestAutoMergeEnabled - - -class PullRequestClosed(Event): - - payload: WebhookPullRequestClosed - - -class PullRequestConvertedToDraft(Event): - - payload: WebhookPullRequestConvertedToDraft - - -class PullRequestDemilestoned(Event): - - payload: WebhookPullRequestDemilestoned - - -class PullRequestDequeued(Event): - - payload: WebhookPullRequestDequeued - - -class PullRequestEdited(Event): - - payload: WebhookPullRequestEdited - - -class PullRequestEnqueued(Event): - - payload: WebhookPullRequestEnqueued - - -class PullRequestLabeled(Event): - - payload: WebhookPullRequestLabeled - - -class PullRequestLocked(Event): - - payload: WebhookPullRequestLocked - - -class PullRequestMilestoned(Event): - - payload: WebhookPullRequestMilestoned - - -class PullRequestOpened(Event): - - payload: WebhookPullRequestOpened - - -class PullRequestReadyForReview(Event): - - payload: WebhookPullRequestReadyForReview - - -class PullRequestReopened(Event): - - payload: WebhookPullRequestReopened - - -class PullRequestReviewRequestRemoved(Event): - - payload: Union[ - WebhookPullRequestReviewRequestRemovedOneof0, - WebhookPullRequestReviewRequestRemovedOneof1, - ] - - -class PullRequestReviewRequested(Event): - - payload: Union[ - WebhookPullRequestReviewRequestedOneof0, WebhookPullRequestReviewRequestedOneof1 - ] - - -class PullRequestSynchronize(Event): - - payload: WebhookPullRequestSynchronize - - -class PullRequestUnassigned(Event): - - payload: WebhookPullRequestUnassigned - - -class PullRequestUnlabeled(Event): - - payload: WebhookPullRequestUnlabeled - - -class PullRequestUnlocked(Event): - - payload: WebhookPullRequestUnlocked diff --git a/nonebot/adapters/github/event/pull_request_assigned.py b/nonebot/adapters/github/event/pull_request_assigned.py new file mode 100644 index 0000000..2a91ece --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_assigned.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestAssigned + +from ._base import Event + + +class PullRequestAssigned(Event): + + payload: WebhookPullRequestAssigned diff --git a/nonebot/adapters/github/event/pull_request_auto_merge_disabled.py b/nonebot/adapters/github/event/pull_request_auto_merge_disabled.py new file mode 100644 index 0000000..4458c4f --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_auto_merge_disabled.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestAutoMergeDisabled + +from ._base import Event + + +class PullRequestAutoMergeDisabled(Event): + + payload: WebhookPullRequestAutoMergeDisabled diff --git a/nonebot/adapters/github/event/pull_request_auto_merge_enabled.py b/nonebot/adapters/github/event/pull_request_auto_merge_enabled.py new file mode 100644 index 0000000..002a10e --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_auto_merge_enabled.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestAutoMergeEnabled + +from ._base import Event + + +class PullRequestAutoMergeEnabled(Event): + + payload: WebhookPullRequestAutoMergeEnabled diff --git a/nonebot/adapters/github/event/pull_request_closed.py b/nonebot/adapters/github/event/pull_request_closed.py new file mode 100644 index 0000000..19160bf --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_closed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestClosed + +from ._base import Event + + +class PullRequestClosed(Event): + + payload: WebhookPullRequestClosed diff --git a/nonebot/adapters/github/event/pull_request_converted_to_draft.py b/nonebot/adapters/github/event/pull_request_converted_to_draft.py new file mode 100644 index 0000000..a67fdfc --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_converted_to_draft.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestConvertedToDraft + +from ._base import Event + + +class PullRequestConvertedToDraft(Event): + + payload: WebhookPullRequestConvertedToDraft diff --git a/nonebot/adapters/github/event/pull_request_demilestoned.py b/nonebot/adapters/github/event/pull_request_demilestoned.py new file mode 100644 index 0000000..5175595 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_demilestoned.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestDemilestoned + +from ._base import Event + + +class PullRequestDemilestoned(Event): + + payload: WebhookPullRequestDemilestoned diff --git a/nonebot/adapters/github/event/pull_request_dequeued.py b/nonebot/adapters/github/event/pull_request_dequeued.py new file mode 100644 index 0000000..59d27d2 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_dequeued.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestDequeued + +from ._base import Event + + +class PullRequestDequeued(Event): + + payload: WebhookPullRequestDequeued diff --git a/nonebot/adapters/github/event/pull_request_edited.py b/nonebot/adapters/github/event/pull_request_edited.py new file mode 100644 index 0000000..dbb50a5 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestEdited + +from ._base import Event + + +class PullRequestEdited(Event): + + payload: WebhookPullRequestEdited diff --git a/nonebot/adapters/github/event/pull_request_enqueued.py b/nonebot/adapters/github/event/pull_request_enqueued.py new file mode 100644 index 0000000..8de6055 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_enqueued.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestEnqueued + +from ._base import Event + + +class PullRequestEnqueued(Event): + + payload: WebhookPullRequestEnqueued diff --git a/nonebot/adapters/github/event/pull_request_labeled.py b/nonebot/adapters/github/event/pull_request_labeled.py new file mode 100644 index 0000000..19f199a --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_labeled.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestLabeled + +from ._base import Event + + +class PullRequestLabeled(Event): + + payload: WebhookPullRequestLabeled diff --git a/nonebot/adapters/github/event/pull_request_locked.py b/nonebot/adapters/github/event/pull_request_locked.py new file mode 100644 index 0000000..3040f72 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_locked.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestLocked + +from ._base import Event + + +class PullRequestLocked(Event): + + payload: WebhookPullRequestLocked diff --git a/nonebot/adapters/github/event/pull_request_milestoned.py b/nonebot/adapters/github/event/pull_request_milestoned.py new file mode 100644 index 0000000..48c7d4e --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_milestoned.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestMilestoned + +from ._base import Event + + +class PullRequestMilestoned(Event): + + payload: WebhookPullRequestMilestoned diff --git a/nonebot/adapters/github/event/pull_request_opened.py b/nonebot/adapters/github/event/pull_request_opened.py new file mode 100644 index 0000000..f59d6f9 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_opened.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestOpened + +from ._base import Event + + +class PullRequestOpened(Event): + + payload: WebhookPullRequestOpened diff --git a/nonebot/adapters/github/event/pull_request_ready_for_review.py b/nonebot/adapters/github/event/pull_request_ready_for_review.py new file mode 100644 index 0000000..f921a6b --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_ready_for_review.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestReadyForReview + +from ._base import Event + + +class PullRequestReadyForReview(Event): + + payload: WebhookPullRequestReadyForReview diff --git a/nonebot/adapters/github/event/pull_request_reopened.py b/nonebot/adapters/github/event/pull_request_reopened.py new file mode 100644 index 0000000..1420e07 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_reopened.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestReopened + +from ._base import Event + + +class PullRequestReopened(Event): + + payload: WebhookPullRequestReopened diff --git a/nonebot/adapters/github/event/pull_request_review.py b/nonebot/adapters/github/event/pull_request_review.py deleted file mode 100644 index 5f76116..0000000 --- a/nonebot/adapters/github/event/pull_request_review.py +++ /dev/null @@ -1,22 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookPullRequestReviewEdited, - WebhookPullRequestReviewDismissed, - WebhookPullRequestReviewSubmitted, -) - -from ._base import Event - - -class PullRequestReviewDismissed(Event): - - payload: WebhookPullRequestReviewDismissed - - -class PullRequestReviewEdited(Event): - - payload: WebhookPullRequestReviewEdited - - -class PullRequestReviewSubmitted(Event): - - payload: WebhookPullRequestReviewSubmitted diff --git a/nonebot/adapters/github/event/pull_request_review_comment.py b/nonebot/adapters/github/event/pull_request_review_comment.py deleted file mode 100644 index b7b9541..0000000 --- a/nonebot/adapters/github/event/pull_request_review_comment.py +++ /dev/null @@ -1,63 +0,0 @@ -from functools import cached_property -from typing_extensions import override - -from githubkit.versions.latest.models import ( - WebhookPullRequestReviewCommentEdited, - WebhookPullRequestReviewCommentCreated, - WebhookPullRequestReviewCommentDeleted, -) - -from ._base import Event -from ..message import Message - - -class PullRequestReviewCommentCreated(Event): - - payload: WebhookPullRequestReviewCommentCreated - - @override - def get_type(self) -> str: - return "message" - - @cached_property - def _message(self): - return Message(self.payload.comment.body) - - @override - def get_message(self): - return self._message - - class Config: - keep_untouched = (cached_property,) - - -class PullRequestReviewCommentDeleted(Event): - - payload: WebhookPullRequestReviewCommentDeleted - - @cached_property - def _message(self): - return Message(self.payload.comment.body) - - @override - def get_message(self): - return self._message - - class Config: - keep_untouched = (cached_property,) - - -class PullRequestReviewCommentEdited(Event): - - payload: WebhookPullRequestReviewCommentEdited - - @cached_property - def _message(self): - return Message(self.payload.comment.body) - - @override - def get_message(self): - return self._message - - class Config: - keep_untouched = (cached_property,) diff --git a/nonebot/adapters/github/event/pull_request_review_comment_created.py b/nonebot/adapters/github/event/pull_request_review_comment_created.py new file mode 100644 index 0000000..cb87fe6 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_review_comment_created.py @@ -0,0 +1,27 @@ +from functools import cached_property +from typing_extensions import override + +from githubkit.versions.latest.models import WebhookPullRequestReviewCommentCreated + +from ._base import Event +from ..message import Message + + +class PullRequestReviewCommentCreated(Event): + + payload: WebhookPullRequestReviewCommentCreated + + @override + def get_type(self) -> str: + return "message" + + @cached_property + def _message(self): + return Message(self.payload.comment.body) + + @override + def get_message(self): + return self._message + + class Config: + keep_untouched = (cached_property,) diff --git a/nonebot/adapters/github/event/pull_request_review_comment_deleted.py b/nonebot/adapters/github/event/pull_request_review_comment_deleted.py new file mode 100644 index 0000000..25192ad --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_review_comment_deleted.py @@ -0,0 +1,23 @@ +from functools import cached_property +from typing_extensions import override + +from githubkit.versions.latest.models import WebhookPullRequestReviewCommentDeleted + +from ._base import Event +from ..message import Message + + +class PullRequestReviewCommentDeleted(Event): + + payload: WebhookPullRequestReviewCommentDeleted + + @cached_property + def _message(self): + return Message(self.payload.comment.body) + + @override + def get_message(self): + return self._message + + class Config: + keep_untouched = (cached_property,) diff --git a/nonebot/adapters/github/event/pull_request_review_comment_edited.py b/nonebot/adapters/github/event/pull_request_review_comment_edited.py new file mode 100644 index 0000000..52b253a --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_review_comment_edited.py @@ -0,0 +1,23 @@ +from functools import cached_property +from typing_extensions import override + +from githubkit.versions.latest.models import WebhookPullRequestReviewCommentEdited + +from ._base import Event +from ..message import Message + + +class PullRequestReviewCommentEdited(Event): + + payload: WebhookPullRequestReviewCommentEdited + + @cached_property + def _message(self): + return Message(self.payload.comment.body) + + @override + def get_message(self): + return self._message + + class Config: + keep_untouched = (cached_property,) diff --git a/nonebot/adapters/github/event/pull_request_review_dismissed.py b/nonebot/adapters/github/event/pull_request_review_dismissed.py new file mode 100644 index 0000000..b673855 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_review_dismissed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestReviewDismissed + +from ._base import Event + + +class PullRequestReviewDismissed(Event): + + payload: WebhookPullRequestReviewDismissed diff --git a/nonebot/adapters/github/event/pull_request_review_edited.py b/nonebot/adapters/github/event/pull_request_review_edited.py new file mode 100644 index 0000000..aff7d68 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_review_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestReviewEdited + +from ._base import Event + + +class PullRequestReviewEdited(Event): + + payload: WebhookPullRequestReviewEdited diff --git a/nonebot/adapters/github/event/pull_request_review_request_removed.py b/nonebot/adapters/github/event/pull_request_review_request_removed.py new file mode 100644 index 0000000..3c803da --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_review_request_removed.py @@ -0,0 +1,16 @@ +from typing import Union + +from githubkit.versions.latest.models import ( + WebhookPullRequestReviewRequestRemovedOneof0, + WebhookPullRequestReviewRequestRemovedOneof1, +) + +from ._base import Event + + +class PullRequestReviewRequestRemoved(Event): + + payload: Union[ + WebhookPullRequestReviewRequestRemovedOneof0, + WebhookPullRequestReviewRequestRemovedOneof1, + ] diff --git a/nonebot/adapters/github/event/pull_request_review_requested.py b/nonebot/adapters/github/event/pull_request_review_requested.py new file mode 100644 index 0000000..1424619 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_review_requested.py @@ -0,0 +1,15 @@ +from typing import Union + +from githubkit.versions.latest.models import ( + WebhookPullRequestReviewRequestedOneof0, + WebhookPullRequestReviewRequestedOneof1, +) + +from ._base import Event + + +class PullRequestReviewRequested(Event): + + payload: Union[ + WebhookPullRequestReviewRequestedOneof0, WebhookPullRequestReviewRequestedOneof1 + ] diff --git a/nonebot/adapters/github/event/pull_request_review_submitted.py b/nonebot/adapters/github/event/pull_request_review_submitted.py new file mode 100644 index 0000000..9557975 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_review_submitted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestReviewSubmitted + +from ._base import Event + + +class PullRequestReviewSubmitted(Event): + + payload: WebhookPullRequestReviewSubmitted diff --git a/nonebot/adapters/github/event/pull_request_review_thread.py b/nonebot/adapters/github/event/pull_request_review_thread.py deleted file mode 100644 index f266c50..0000000 --- a/nonebot/adapters/github/event/pull_request_review_thread.py +++ /dev/null @@ -1,16 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookPullRequestReviewThreadResolved, - WebhookPullRequestReviewThreadUnresolved, -) - -from ._base import Event - - -class PullRequestReviewThreadResolved(Event): - - payload: WebhookPullRequestReviewThreadResolved - - -class PullRequestReviewThreadUnresolved(Event): - - payload: WebhookPullRequestReviewThreadUnresolved diff --git a/nonebot/adapters/github/event/pull_request_review_thread_resolved.py b/nonebot/adapters/github/event/pull_request_review_thread_resolved.py new file mode 100644 index 0000000..8a495a1 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_review_thread_resolved.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestReviewThreadResolved + +from ._base import Event + + +class PullRequestReviewThreadResolved(Event): + + payload: WebhookPullRequestReviewThreadResolved diff --git a/nonebot/adapters/github/event/pull_request_review_thread_unresolved.py b/nonebot/adapters/github/event/pull_request_review_thread_unresolved.py new file mode 100644 index 0000000..730a5d9 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_review_thread_unresolved.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestReviewThreadUnresolved + +from ._base import Event + + +class PullRequestReviewThreadUnresolved(Event): + + payload: WebhookPullRequestReviewThreadUnresolved diff --git a/nonebot/adapters/github/event/pull_request_synchronize.py b/nonebot/adapters/github/event/pull_request_synchronize.py new file mode 100644 index 0000000..a1d2840 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_synchronize.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestSynchronize + +from ._base import Event + + +class PullRequestSynchronize(Event): + + payload: WebhookPullRequestSynchronize diff --git a/nonebot/adapters/github/event/pull_request_unassigned.py b/nonebot/adapters/github/event/pull_request_unassigned.py new file mode 100644 index 0000000..7309756 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_unassigned.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestUnassigned + +from ._base import Event + + +class PullRequestUnassigned(Event): + + payload: WebhookPullRequestUnassigned diff --git a/nonebot/adapters/github/event/pull_request_unlabeled.py b/nonebot/adapters/github/event/pull_request_unlabeled.py new file mode 100644 index 0000000..36fd314 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_unlabeled.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestUnlabeled + +from ._base import Event + + +class PullRequestUnlabeled(Event): + + payload: WebhookPullRequestUnlabeled diff --git a/nonebot/adapters/github/event/pull_request_unlocked.py b/nonebot/adapters/github/event/pull_request_unlocked.py new file mode 100644 index 0000000..4672200 --- /dev/null +++ b/nonebot/adapters/github/event/pull_request_unlocked.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookPullRequestUnlocked + +from ._base import Event + + +class PullRequestUnlocked(Event): + + payload: WebhookPullRequestUnlocked diff --git a/nonebot/adapters/github/event/registry_package.py b/nonebot/adapters/github/event/registry_package.py deleted file mode 100644 index 99439b1..0000000 --- a/nonebot/adapters/github/event/registry_package.py +++ /dev/null @@ -1,16 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookRegistryPackageUpdated, - WebhookRegistryPackagePublished, -) - -from ._base import Event - - -class RegistryPackagePublished(Event): - - payload: WebhookRegistryPackagePublished - - -class RegistryPackageUpdated(Event): - - payload: WebhookRegistryPackageUpdated diff --git a/nonebot/adapters/github/event/registry_package_published.py b/nonebot/adapters/github/event/registry_package_published.py new file mode 100644 index 0000000..04f6b48 --- /dev/null +++ b/nonebot/adapters/github/event/registry_package_published.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRegistryPackagePublished + +from ._base import Event + + +class RegistryPackagePublished(Event): + + payload: WebhookRegistryPackagePublished diff --git a/nonebot/adapters/github/event/registry_package_updated.py b/nonebot/adapters/github/event/registry_package_updated.py new file mode 100644 index 0000000..4f621f5 --- /dev/null +++ b/nonebot/adapters/github/event/registry_package_updated.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRegistryPackageUpdated + +from ._base import Event + + +class RegistryPackageUpdated(Event): + + payload: WebhookRegistryPackageUpdated diff --git a/nonebot/adapters/github/event/release.py b/nonebot/adapters/github/event/release.py deleted file mode 100644 index bf034c1..0000000 --- a/nonebot/adapters/github/event/release.py +++ /dev/null @@ -1,46 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookReleaseEdited, - WebhookReleaseCreated, - WebhookReleaseDeleted, - WebhookReleaseReleased, - WebhookReleasePublished, - WebhookReleasePrereleased, - WebhookReleaseUnpublished, -) - -from ._base import Event - - -class ReleaseCreated(Event): - - payload: WebhookReleaseCreated - - -class ReleaseDeleted(Event): - - payload: WebhookReleaseDeleted - - -class ReleaseEdited(Event): - - payload: WebhookReleaseEdited - - -class ReleasePrereleased(Event): - - payload: WebhookReleasePrereleased - - -class ReleasePublished(Event): - - payload: WebhookReleasePublished - - -class ReleaseReleased(Event): - - payload: WebhookReleaseReleased - - -class ReleaseUnpublished(Event): - - payload: WebhookReleaseUnpublished diff --git a/nonebot/adapters/github/event/release_created.py b/nonebot/adapters/github/event/release_created.py new file mode 100644 index 0000000..f3cdbf5 --- /dev/null +++ b/nonebot/adapters/github/event/release_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookReleaseCreated + +from ._base import Event + + +class ReleaseCreated(Event): + + payload: WebhookReleaseCreated diff --git a/nonebot/adapters/github/event/release_deleted.py b/nonebot/adapters/github/event/release_deleted.py new file mode 100644 index 0000000..0bbc40a --- /dev/null +++ b/nonebot/adapters/github/event/release_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookReleaseDeleted + +from ._base import Event + + +class ReleaseDeleted(Event): + + payload: WebhookReleaseDeleted diff --git a/nonebot/adapters/github/event/release_edited.py b/nonebot/adapters/github/event/release_edited.py new file mode 100644 index 0000000..f17fb0b --- /dev/null +++ b/nonebot/adapters/github/event/release_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookReleaseEdited + +from ._base import Event + + +class ReleaseEdited(Event): + + payload: WebhookReleaseEdited diff --git a/nonebot/adapters/github/event/release_prereleased.py b/nonebot/adapters/github/event/release_prereleased.py new file mode 100644 index 0000000..893f8ab --- /dev/null +++ b/nonebot/adapters/github/event/release_prereleased.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookReleasePrereleased + +from ._base import Event + + +class ReleasePrereleased(Event): + + payload: WebhookReleasePrereleased diff --git a/nonebot/adapters/github/event/release_published.py b/nonebot/adapters/github/event/release_published.py new file mode 100644 index 0000000..16b5701 --- /dev/null +++ b/nonebot/adapters/github/event/release_published.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookReleasePublished + +from ._base import Event + + +class ReleasePublished(Event): + + payload: WebhookReleasePublished diff --git a/nonebot/adapters/github/event/release_released.py b/nonebot/adapters/github/event/release_released.py new file mode 100644 index 0000000..f9b1d00 --- /dev/null +++ b/nonebot/adapters/github/event/release_released.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookReleaseReleased + +from ._base import Event + + +class ReleaseReleased(Event): + + payload: WebhookReleaseReleased diff --git a/nonebot/adapters/github/event/release_unpublished.py b/nonebot/adapters/github/event/release_unpublished.py new file mode 100644 index 0000000..29f9561 --- /dev/null +++ b/nonebot/adapters/github/event/release_unpublished.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookReleaseUnpublished + +from ._base import Event + + +class ReleaseUnpublished(Event): + + payload: WebhookReleaseUnpublished diff --git a/nonebot/adapters/github/event/repository.py b/nonebot/adapters/github/event/repository.py deleted file mode 100644 index 6e7e811..0000000 --- a/nonebot/adapters/github/event/repository.py +++ /dev/null @@ -1,58 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookRepositoryEdited, - WebhookRepositoryCreated, - WebhookRepositoryDeleted, - WebhookRepositoryRenamed, - WebhookRepositoryArchived, - WebhookRepositoryPrivatized, - WebhookRepositoryPublicized, - WebhookRepositoryUnarchived, - WebhookRepositoryTransferred, -) - -from ._base import Event - - -class RepositoryArchived(Event): - - payload: WebhookRepositoryArchived - - -class RepositoryCreated(Event): - - payload: WebhookRepositoryCreated - - -class RepositoryDeleted(Event): - - payload: WebhookRepositoryDeleted - - -class RepositoryEdited(Event): - - payload: WebhookRepositoryEdited - - -class RepositoryPrivatized(Event): - - payload: WebhookRepositoryPrivatized - - -class RepositoryPublicized(Event): - - payload: WebhookRepositoryPublicized - - -class RepositoryRenamed(Event): - - payload: WebhookRepositoryRenamed - - -class RepositoryTransferred(Event): - - payload: WebhookRepositoryTransferred - - -class RepositoryUnarchived(Event): - - payload: WebhookRepositoryUnarchived diff --git a/nonebot/adapters/github/event/repository_advisory.py b/nonebot/adapters/github/event/repository_advisory.py deleted file mode 100644 index 391fcad..0000000 --- a/nonebot/adapters/github/event/repository_advisory.py +++ /dev/null @@ -1,16 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookRepositoryAdvisoryReported, - WebhookRepositoryAdvisoryPublished, -) - -from ._base import Event - - -class RepositoryAdvisoryPublished(Event): - - payload: WebhookRepositoryAdvisoryPublished - - -class RepositoryAdvisoryReported(Event): - - payload: WebhookRepositoryAdvisoryReported diff --git a/nonebot/adapters/github/event/repository_advisory_published.py b/nonebot/adapters/github/event/repository_advisory_published.py new file mode 100644 index 0000000..cd3d590 --- /dev/null +++ b/nonebot/adapters/github/event/repository_advisory_published.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryAdvisoryPublished + +from ._base import Event + + +class RepositoryAdvisoryPublished(Event): + + payload: WebhookRepositoryAdvisoryPublished diff --git a/nonebot/adapters/github/event/repository_advisory_reported.py b/nonebot/adapters/github/event/repository_advisory_reported.py new file mode 100644 index 0000000..0ab1d3a --- /dev/null +++ b/nonebot/adapters/github/event/repository_advisory_reported.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryAdvisoryReported + +from ._base import Event + + +class RepositoryAdvisoryReported(Event): + + payload: WebhookRepositoryAdvisoryReported diff --git a/nonebot/adapters/github/event/repository_archived.py b/nonebot/adapters/github/event/repository_archived.py new file mode 100644 index 0000000..e0d1e69 --- /dev/null +++ b/nonebot/adapters/github/event/repository_archived.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryArchived + +from ._base import Event + + +class RepositoryArchived(Event): + + payload: WebhookRepositoryArchived diff --git a/nonebot/adapters/github/event/repository_created.py b/nonebot/adapters/github/event/repository_created.py new file mode 100644 index 0000000..c1b0afa --- /dev/null +++ b/nonebot/adapters/github/event/repository_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryCreated + +from ._base import Event + + +class RepositoryCreated(Event): + + payload: WebhookRepositoryCreated diff --git a/nonebot/adapters/github/event/repository_deleted.py b/nonebot/adapters/github/event/repository_deleted.py new file mode 100644 index 0000000..5081364 --- /dev/null +++ b/nonebot/adapters/github/event/repository_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryDeleted + +from ._base import Event + + +class RepositoryDeleted(Event): + + payload: WebhookRepositoryDeleted diff --git a/nonebot/adapters/github/event/repository_edited.py b/nonebot/adapters/github/event/repository_edited.py new file mode 100644 index 0000000..e4a1aba --- /dev/null +++ b/nonebot/adapters/github/event/repository_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryEdited + +from ._base import Event + + +class RepositoryEdited(Event): + + payload: WebhookRepositoryEdited diff --git a/nonebot/adapters/github/event/repository_privatized.py b/nonebot/adapters/github/event/repository_privatized.py new file mode 100644 index 0000000..e28d993 --- /dev/null +++ b/nonebot/adapters/github/event/repository_privatized.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryPrivatized + +from ._base import Event + + +class RepositoryPrivatized(Event): + + payload: WebhookRepositoryPrivatized diff --git a/nonebot/adapters/github/event/repository_publicized.py b/nonebot/adapters/github/event/repository_publicized.py new file mode 100644 index 0000000..bcfe6fb --- /dev/null +++ b/nonebot/adapters/github/event/repository_publicized.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryPublicized + +from ._base import Event + + +class RepositoryPublicized(Event): + + payload: WebhookRepositoryPublicized diff --git a/nonebot/adapters/github/event/repository_renamed.py b/nonebot/adapters/github/event/repository_renamed.py new file mode 100644 index 0000000..1880043 --- /dev/null +++ b/nonebot/adapters/github/event/repository_renamed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryRenamed + +from ._base import Event + + +class RepositoryRenamed(Event): + + payload: WebhookRepositoryRenamed diff --git a/nonebot/adapters/github/event/repository_ruleset.py b/nonebot/adapters/github/event/repository_ruleset.py deleted file mode 100644 index 66acd9f..0000000 --- a/nonebot/adapters/github/event/repository_ruleset.py +++ /dev/null @@ -1,22 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookRepositoryRulesetEdited, - WebhookRepositoryRulesetCreated, - WebhookRepositoryRulesetDeleted, -) - -from ._base import Event - - -class RepositoryRulesetCreated(Event): - - payload: WebhookRepositoryRulesetCreated - - -class RepositoryRulesetDeleted(Event): - - payload: WebhookRepositoryRulesetDeleted - - -class RepositoryRulesetEdited(Event): - - payload: WebhookRepositoryRulesetEdited diff --git a/nonebot/adapters/github/event/repository_ruleset_created.py b/nonebot/adapters/github/event/repository_ruleset_created.py new file mode 100644 index 0000000..9a2e039 --- /dev/null +++ b/nonebot/adapters/github/event/repository_ruleset_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryRulesetCreated + +from ._base import Event + + +class RepositoryRulesetCreated(Event): + + payload: WebhookRepositoryRulesetCreated diff --git a/nonebot/adapters/github/event/repository_ruleset_deleted.py b/nonebot/adapters/github/event/repository_ruleset_deleted.py new file mode 100644 index 0000000..4f73ca9 --- /dev/null +++ b/nonebot/adapters/github/event/repository_ruleset_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryRulesetDeleted + +from ._base import Event + + +class RepositoryRulesetDeleted(Event): + + payload: WebhookRepositoryRulesetDeleted diff --git a/nonebot/adapters/github/event/repository_ruleset_edited.py b/nonebot/adapters/github/event/repository_ruleset_edited.py new file mode 100644 index 0000000..c6537b3 --- /dev/null +++ b/nonebot/adapters/github/event/repository_ruleset_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryRulesetEdited + +from ._base import Event + + +class RepositoryRulesetEdited(Event): + + payload: WebhookRepositoryRulesetEdited diff --git a/nonebot/adapters/github/event/repository_transferred.py b/nonebot/adapters/github/event/repository_transferred.py new file mode 100644 index 0000000..24d2e4d --- /dev/null +++ b/nonebot/adapters/github/event/repository_transferred.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryTransferred + +from ._base import Event + + +class RepositoryTransferred(Event): + + payload: WebhookRepositoryTransferred diff --git a/nonebot/adapters/github/event/repository_unarchived.py b/nonebot/adapters/github/event/repository_unarchived.py new file mode 100644 index 0000000..6dba884 --- /dev/null +++ b/nonebot/adapters/github/event/repository_unarchived.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryUnarchived + +from ._base import Event + + +class RepositoryUnarchived(Event): + + payload: WebhookRepositoryUnarchived diff --git a/nonebot/adapters/github/event/repository_vulnerability_alert.py b/nonebot/adapters/github/event/repository_vulnerability_alert.py deleted file mode 100644 index 1795ddb..0000000 --- a/nonebot/adapters/github/event/repository_vulnerability_alert.py +++ /dev/null @@ -1,28 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookRepositoryVulnerabilityAlertCreate, - WebhookRepositoryVulnerabilityAlertReopen, - WebhookRepositoryVulnerabilityAlertDismiss, - WebhookRepositoryVulnerabilityAlertResolve, -) - -from ._base import Event - - -class RepositoryVulnerabilityAlertCreate(Event): - - payload: WebhookRepositoryVulnerabilityAlertCreate - - -class RepositoryVulnerabilityAlertDismiss(Event): - - payload: WebhookRepositoryVulnerabilityAlertDismiss - - -class RepositoryVulnerabilityAlertReopen(Event): - - payload: WebhookRepositoryVulnerabilityAlertReopen - - -class RepositoryVulnerabilityAlertResolve(Event): - - payload: WebhookRepositoryVulnerabilityAlertResolve diff --git a/nonebot/adapters/github/event/repository_vulnerability_alert_create.py b/nonebot/adapters/github/event/repository_vulnerability_alert_create.py new file mode 100644 index 0000000..ef22b44 --- /dev/null +++ b/nonebot/adapters/github/event/repository_vulnerability_alert_create.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryVulnerabilityAlertCreate + +from ._base import Event + + +class RepositoryVulnerabilityAlertCreate(Event): + + payload: WebhookRepositoryVulnerabilityAlertCreate diff --git a/nonebot/adapters/github/event/repository_vulnerability_alert_dismiss.py b/nonebot/adapters/github/event/repository_vulnerability_alert_dismiss.py new file mode 100644 index 0000000..47df582 --- /dev/null +++ b/nonebot/adapters/github/event/repository_vulnerability_alert_dismiss.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryVulnerabilityAlertDismiss + +from ._base import Event + + +class RepositoryVulnerabilityAlertDismiss(Event): + + payload: WebhookRepositoryVulnerabilityAlertDismiss diff --git a/nonebot/adapters/github/event/repository_vulnerability_alert_reopen.py b/nonebot/adapters/github/event/repository_vulnerability_alert_reopen.py new file mode 100644 index 0000000..f4c471a --- /dev/null +++ b/nonebot/adapters/github/event/repository_vulnerability_alert_reopen.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryVulnerabilityAlertReopen + +from ._base import Event + + +class RepositoryVulnerabilityAlertReopen(Event): + + payload: WebhookRepositoryVulnerabilityAlertReopen diff --git a/nonebot/adapters/github/event/repository_vulnerability_alert_resolve.py b/nonebot/adapters/github/event/repository_vulnerability_alert_resolve.py new file mode 100644 index 0000000..04454e7 --- /dev/null +++ b/nonebot/adapters/github/event/repository_vulnerability_alert_resolve.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookRepositoryVulnerabilityAlertResolve + +from ._base import Event + + +class RepositoryVulnerabilityAlertResolve(Event): + + payload: WebhookRepositoryVulnerabilityAlertResolve diff --git a/nonebot/adapters/github/event/secret_scanning_alert.py b/nonebot/adapters/github/event/secret_scanning_alert.py deleted file mode 100644 index 7fba3c8..0000000 --- a/nonebot/adapters/github/event/secret_scanning_alert.py +++ /dev/null @@ -1,28 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookSecretScanningAlertCreated, - WebhookSecretScanningAlertRevoked, - WebhookSecretScanningAlertReopened, - WebhookSecretScanningAlertResolved, -) - -from ._base import Event - - -class SecretScanningAlertCreated(Event): - - payload: WebhookSecretScanningAlertCreated - - -class SecretScanningAlertReopened(Event): - - payload: WebhookSecretScanningAlertReopened - - -class SecretScanningAlertResolved(Event): - - payload: WebhookSecretScanningAlertResolved - - -class SecretScanningAlertRevoked(Event): - - payload: WebhookSecretScanningAlertRevoked diff --git a/nonebot/adapters/github/event/secret_scanning_alert_created.py b/nonebot/adapters/github/event/secret_scanning_alert_created.py new file mode 100644 index 0000000..7b98cca --- /dev/null +++ b/nonebot/adapters/github/event/secret_scanning_alert_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookSecretScanningAlertCreated + +from ._base import Event + + +class SecretScanningAlertCreated(Event): + + payload: WebhookSecretScanningAlertCreated diff --git a/nonebot/adapters/github/event/secret_scanning_alert_reopened.py b/nonebot/adapters/github/event/secret_scanning_alert_reopened.py new file mode 100644 index 0000000..fb4756d --- /dev/null +++ b/nonebot/adapters/github/event/secret_scanning_alert_reopened.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookSecretScanningAlertReopened + +from ._base import Event + + +class SecretScanningAlertReopened(Event): + + payload: WebhookSecretScanningAlertReopened diff --git a/nonebot/adapters/github/event/secret_scanning_alert_resolved.py b/nonebot/adapters/github/event/secret_scanning_alert_resolved.py new file mode 100644 index 0000000..708e834 --- /dev/null +++ b/nonebot/adapters/github/event/secret_scanning_alert_resolved.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookSecretScanningAlertResolved + +from ._base import Event + + +class SecretScanningAlertResolved(Event): + + payload: WebhookSecretScanningAlertResolved diff --git a/nonebot/adapters/github/event/secret_scanning_alert_revoked.py b/nonebot/adapters/github/event/secret_scanning_alert_revoked.py new file mode 100644 index 0000000..7eda589 --- /dev/null +++ b/nonebot/adapters/github/event/secret_scanning_alert_revoked.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookSecretScanningAlertRevoked + +from ._base import Event + + +class SecretScanningAlertRevoked(Event): + + payload: WebhookSecretScanningAlertRevoked diff --git a/nonebot/adapters/github/event/security_advisory.py b/nonebot/adapters/github/event/security_advisory.py deleted file mode 100644 index 0d695b8..0000000 --- a/nonebot/adapters/github/event/security_advisory.py +++ /dev/null @@ -1,22 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookSecurityAdvisoryUpdated, - WebhookSecurityAdvisoryPublished, - WebhookSecurityAdvisoryWithdrawn, -) - -from ._base import Event - - -class SecurityAdvisoryPublished(Event): - - payload: WebhookSecurityAdvisoryPublished - - -class SecurityAdvisoryUpdated(Event): - - payload: WebhookSecurityAdvisoryUpdated - - -class SecurityAdvisoryWithdrawn(Event): - - payload: WebhookSecurityAdvisoryWithdrawn diff --git a/nonebot/adapters/github/event/security_advisory_published.py b/nonebot/adapters/github/event/security_advisory_published.py new file mode 100644 index 0000000..35e7842 --- /dev/null +++ b/nonebot/adapters/github/event/security_advisory_published.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookSecurityAdvisoryPublished + +from ._base import Event + + +class SecurityAdvisoryPublished(Event): + + payload: WebhookSecurityAdvisoryPublished diff --git a/nonebot/adapters/github/event/security_advisory_updated.py b/nonebot/adapters/github/event/security_advisory_updated.py new file mode 100644 index 0000000..81c4c5d --- /dev/null +++ b/nonebot/adapters/github/event/security_advisory_updated.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookSecurityAdvisoryUpdated + +from ._base import Event + + +class SecurityAdvisoryUpdated(Event): + + payload: WebhookSecurityAdvisoryUpdated diff --git a/nonebot/adapters/github/event/security_advisory_withdrawn.py b/nonebot/adapters/github/event/security_advisory_withdrawn.py new file mode 100644 index 0000000..4a37551 --- /dev/null +++ b/nonebot/adapters/github/event/security_advisory_withdrawn.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookSecurityAdvisoryWithdrawn + +from ._base import Event + + +class SecurityAdvisoryWithdrawn(Event): + + payload: WebhookSecurityAdvisoryWithdrawn diff --git a/nonebot/adapters/github/event/sponsorship.py b/nonebot/adapters/github/event/sponsorship.py deleted file mode 100644 index b1f3587..0000000 --- a/nonebot/adapters/github/event/sponsorship.py +++ /dev/null @@ -1,40 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookSponsorshipEdited, - WebhookSponsorshipCreated, - WebhookSponsorshipCancelled, - WebhookSponsorshipTierChanged, - WebhookSponsorshipPendingTierChange, - WebhookSponsorshipPendingCancellation, -) - -from ._base import Event - - -class SponsorshipCancelled(Event): - - payload: WebhookSponsorshipCancelled - - -class SponsorshipCreated(Event): - - payload: WebhookSponsorshipCreated - - -class SponsorshipEdited(Event): - - payload: WebhookSponsorshipEdited - - -class SponsorshipPendingCancellation(Event): - - payload: WebhookSponsorshipPendingCancellation - - -class SponsorshipPendingTierChange(Event): - - payload: WebhookSponsorshipPendingTierChange - - -class SponsorshipTierChanged(Event): - - payload: WebhookSponsorshipTierChanged diff --git a/nonebot/adapters/github/event/sponsorship_cancelled.py b/nonebot/adapters/github/event/sponsorship_cancelled.py new file mode 100644 index 0000000..f865468 --- /dev/null +++ b/nonebot/adapters/github/event/sponsorship_cancelled.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookSponsorshipCancelled + +from ._base import Event + + +class SponsorshipCancelled(Event): + + payload: WebhookSponsorshipCancelled diff --git a/nonebot/adapters/github/event/sponsorship_created.py b/nonebot/adapters/github/event/sponsorship_created.py new file mode 100644 index 0000000..2c301ee --- /dev/null +++ b/nonebot/adapters/github/event/sponsorship_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookSponsorshipCreated + +from ._base import Event + + +class SponsorshipCreated(Event): + + payload: WebhookSponsorshipCreated diff --git a/nonebot/adapters/github/event/sponsorship_edited.py b/nonebot/adapters/github/event/sponsorship_edited.py new file mode 100644 index 0000000..55c19b7 --- /dev/null +++ b/nonebot/adapters/github/event/sponsorship_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookSponsorshipEdited + +from ._base import Event + + +class SponsorshipEdited(Event): + + payload: WebhookSponsorshipEdited diff --git a/nonebot/adapters/github/event/sponsorship_pending_cancellation.py b/nonebot/adapters/github/event/sponsorship_pending_cancellation.py new file mode 100644 index 0000000..7925020 --- /dev/null +++ b/nonebot/adapters/github/event/sponsorship_pending_cancellation.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookSponsorshipPendingCancellation + +from ._base import Event + + +class SponsorshipPendingCancellation(Event): + + payload: WebhookSponsorshipPendingCancellation diff --git a/nonebot/adapters/github/event/sponsorship_pending_tier_change.py b/nonebot/adapters/github/event/sponsorship_pending_tier_change.py new file mode 100644 index 0000000..32a8e9d --- /dev/null +++ b/nonebot/adapters/github/event/sponsorship_pending_tier_change.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookSponsorshipPendingTierChange + +from ._base import Event + + +class SponsorshipPendingTierChange(Event): + + payload: WebhookSponsorshipPendingTierChange diff --git a/nonebot/adapters/github/event/sponsorship_tier_changed.py b/nonebot/adapters/github/event/sponsorship_tier_changed.py new file mode 100644 index 0000000..4a39ece --- /dev/null +++ b/nonebot/adapters/github/event/sponsorship_tier_changed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookSponsorshipTierChanged + +from ._base import Event + + +class SponsorshipTierChanged(Event): + + payload: WebhookSponsorshipTierChanged diff --git a/nonebot/adapters/github/event/star.py b/nonebot/adapters/github/event/star.py deleted file mode 100644 index 18e3d52..0000000 --- a/nonebot/adapters/github/event/star.py +++ /dev/null @@ -1,13 +0,0 @@ -from githubkit.versions.latest.models import WebhookStarCreated, WebhookStarDeleted - -from ._base import Event - - -class StarCreated(Event): - - payload: WebhookStarCreated - - -class StarDeleted(Event): - - payload: WebhookStarDeleted diff --git a/nonebot/adapters/github/event/star_created.py b/nonebot/adapters/github/event/star_created.py new file mode 100644 index 0000000..1aa6460 --- /dev/null +++ b/nonebot/adapters/github/event/star_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookStarCreated + +from ._base import Event + + +class StarCreated(Event): + + payload: WebhookStarCreated diff --git a/nonebot/adapters/github/event/star_deleted.py b/nonebot/adapters/github/event/star_deleted.py new file mode 100644 index 0000000..bfc296e --- /dev/null +++ b/nonebot/adapters/github/event/star_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookStarDeleted + +from ._base import Event + + +class StarDeleted(Event): + + payload: WebhookStarDeleted diff --git a/nonebot/adapters/github/event/team.py b/nonebot/adapters/github/event/team.py deleted file mode 100644 index 61d1cd8..0000000 --- a/nonebot/adapters/github/event/team.py +++ /dev/null @@ -1,34 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookTeamEdited, - WebhookTeamCreated, - WebhookTeamDeleted, - WebhookTeamAddedToRepository, - WebhookTeamRemovedFromRepository, -) - -from ._base import Event - - -class TeamAddedToRepository(Event): - - payload: WebhookTeamAddedToRepository - - -class TeamCreated(Event): - - payload: WebhookTeamCreated - - -class TeamDeleted(Event): - - payload: WebhookTeamDeleted - - -class TeamEdited(Event): - - payload: WebhookTeamEdited - - -class TeamRemovedFromRepository(Event): - - payload: WebhookTeamRemovedFromRepository diff --git a/nonebot/adapters/github/event/team_added_to_repository.py b/nonebot/adapters/github/event/team_added_to_repository.py new file mode 100644 index 0000000..4f9332f --- /dev/null +++ b/nonebot/adapters/github/event/team_added_to_repository.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookTeamAddedToRepository + +from ._base import Event + + +class TeamAddedToRepository(Event): + + payload: WebhookTeamAddedToRepository diff --git a/nonebot/adapters/github/event/team_created.py b/nonebot/adapters/github/event/team_created.py new file mode 100644 index 0000000..d48c7f7 --- /dev/null +++ b/nonebot/adapters/github/event/team_created.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookTeamCreated + +from ._base import Event + + +class TeamCreated(Event): + + payload: WebhookTeamCreated diff --git a/nonebot/adapters/github/event/team_deleted.py b/nonebot/adapters/github/event/team_deleted.py new file mode 100644 index 0000000..0270d5f --- /dev/null +++ b/nonebot/adapters/github/event/team_deleted.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookTeamDeleted + +from ._base import Event + + +class TeamDeleted(Event): + + payload: WebhookTeamDeleted diff --git a/nonebot/adapters/github/event/team_edited.py b/nonebot/adapters/github/event/team_edited.py new file mode 100644 index 0000000..85506fa --- /dev/null +++ b/nonebot/adapters/github/event/team_edited.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookTeamEdited + +from ._base import Event + + +class TeamEdited(Event): + + payload: WebhookTeamEdited diff --git a/nonebot/adapters/github/event/team_removed_from_repository.py b/nonebot/adapters/github/event/team_removed_from_repository.py new file mode 100644 index 0000000..c72a23e --- /dev/null +++ b/nonebot/adapters/github/event/team_removed_from_repository.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookTeamRemovedFromRepository + +from ._base import Event + + +class TeamRemovedFromRepository(Event): + + payload: WebhookTeamRemovedFromRepository diff --git a/nonebot/adapters/github/event/workflow_job.py b/nonebot/adapters/github/event/workflow_job.py deleted file mode 100644 index 06522d9..0000000 --- a/nonebot/adapters/github/event/workflow_job.py +++ /dev/null @@ -1,28 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookWorkflowJobQueued, - WebhookWorkflowJobWaiting, - WebhookWorkflowJobCompleted, - WebhookWorkflowJobInProgress, -) - -from ._base import Event - - -class WorkflowJobCompleted(Event): - - payload: WebhookWorkflowJobCompleted - - -class WorkflowJobInProgress(Event): - - payload: WebhookWorkflowJobInProgress - - -class WorkflowJobQueued(Event): - - payload: WebhookWorkflowJobQueued - - -class WorkflowJobWaiting(Event): - - payload: WebhookWorkflowJobWaiting diff --git a/nonebot/adapters/github/event/workflow_job_completed.py b/nonebot/adapters/github/event/workflow_job_completed.py new file mode 100644 index 0000000..7494a49 --- /dev/null +++ b/nonebot/adapters/github/event/workflow_job_completed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookWorkflowJobCompleted + +from ._base import Event + + +class WorkflowJobCompleted(Event): + + payload: WebhookWorkflowJobCompleted diff --git a/nonebot/adapters/github/event/workflow_job_in_progress.py b/nonebot/adapters/github/event/workflow_job_in_progress.py new file mode 100644 index 0000000..57d6bc6 --- /dev/null +++ b/nonebot/adapters/github/event/workflow_job_in_progress.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookWorkflowJobInProgress + +from ._base import Event + + +class WorkflowJobInProgress(Event): + + payload: WebhookWorkflowJobInProgress diff --git a/nonebot/adapters/github/event/workflow_job_queued.py b/nonebot/adapters/github/event/workflow_job_queued.py new file mode 100644 index 0000000..0accbcf --- /dev/null +++ b/nonebot/adapters/github/event/workflow_job_queued.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookWorkflowJobQueued + +from ._base import Event + + +class WorkflowJobQueued(Event): + + payload: WebhookWorkflowJobQueued diff --git a/nonebot/adapters/github/event/workflow_job_waiting.py b/nonebot/adapters/github/event/workflow_job_waiting.py new file mode 100644 index 0000000..bf65dd7 --- /dev/null +++ b/nonebot/adapters/github/event/workflow_job_waiting.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookWorkflowJobWaiting + +from ._base import Event + + +class WorkflowJobWaiting(Event): + + payload: WebhookWorkflowJobWaiting diff --git a/nonebot/adapters/github/event/workflow_run.py b/nonebot/adapters/github/event/workflow_run.py deleted file mode 100644 index 028b6ba..0000000 --- a/nonebot/adapters/github/event/workflow_run.py +++ /dev/null @@ -1,22 +0,0 @@ -from githubkit.versions.latest.models import ( - WebhookWorkflowRunCompleted, - WebhookWorkflowRunRequested, - WebhookWorkflowRunInProgress, -) - -from ._base import Event - - -class WorkflowRunCompleted(Event): - - payload: WebhookWorkflowRunCompleted - - -class WorkflowRunInProgress(Event): - - payload: WebhookWorkflowRunInProgress - - -class WorkflowRunRequested(Event): - - payload: WebhookWorkflowRunRequested diff --git a/nonebot/adapters/github/event/workflow_run_completed.py b/nonebot/adapters/github/event/workflow_run_completed.py new file mode 100644 index 0000000..e136130 --- /dev/null +++ b/nonebot/adapters/github/event/workflow_run_completed.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookWorkflowRunCompleted + +from ._base import Event + + +class WorkflowRunCompleted(Event): + + payload: WebhookWorkflowRunCompleted diff --git a/nonebot/adapters/github/event/workflow_run_in_progress.py b/nonebot/adapters/github/event/workflow_run_in_progress.py new file mode 100644 index 0000000..0d7e812 --- /dev/null +++ b/nonebot/adapters/github/event/workflow_run_in_progress.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookWorkflowRunInProgress + +from ._base import Event + + +class WorkflowRunInProgress(Event): + + payload: WebhookWorkflowRunInProgress diff --git a/nonebot/adapters/github/event/workflow_run_requested.py b/nonebot/adapters/github/event/workflow_run_requested.py new file mode 100644 index 0000000..f58c81f --- /dev/null +++ b/nonebot/adapters/github/event/workflow_run_requested.py @@ -0,0 +1,8 @@ +from githubkit.versions.latest.models import WebhookWorkflowRunRequested + +from ._base import Event + + +class WorkflowRunRequested(Event): + + payload: WebhookWorkflowRunRequested