Skip to content

Activity

Import from pyfj or pyfj.models as Activity.

Activity

act_user

act_user: User | None = None

act_user_id

act_user_id: int | None = None

comment

comment: Comment | None = None

comment_id

comment_id: int | None = None

content

content: str | None = None

created

created: datetime | None = None

id

id: int | None = None

is_private

is_private: bool | None = None

op_type

op_type: ActivityOpType | None = Field(default=None, description='the type of action')

ref_name

ref_name: str | None = None

repo

repo: Repository | None = None

repo_id

repo_id: int | None = None

user_id

user_id: int | None = None

ActivityOpType

the type of action

APPROVE_PULL_REQUEST

APPROVE_PULL_REQUEST = 'approve_pull_request'

AUTO_MERGE_PULL_REQUEST

AUTO_MERGE_PULL_REQUEST = 'auto_merge_pull_request'

CLOSE_ISSUE

CLOSE_ISSUE = 'close_issue'

CLOSE_PULL_REQUEST

CLOSE_PULL_REQUEST = 'close_pull_request'

COMMENT_ISSUE

COMMENT_ISSUE = 'comment_issue'

COMMENT_PULL

COMMENT_PULL = 'comment_pull'

COMMIT_REPO

COMMIT_REPO = 'commit_repo'

CREATE_ISSUE

CREATE_ISSUE = 'create_issue'

CREATE_PULL_REQUEST

CREATE_PULL_REQUEST = 'create_pull_request'

CREATE_REPO

CREATE_REPO = 'create_repo'

DELETE_BRANCH

DELETE_BRANCH = 'delete_branch'

DELETE_TAG

DELETE_TAG = 'delete_tag'

MERGE_PULL_REQUEST

MERGE_PULL_REQUEST = 'merge_pull_request'

MIRROR_SYNC_CREATE

MIRROR_SYNC_CREATE = 'mirror_sync_create'

MIRROR_SYNC_DELETE

MIRROR_SYNC_DELETE = 'mirror_sync_delete'

MIRROR_SYNC_PUSH

MIRROR_SYNC_PUSH = 'mirror_sync_push'

PUBLISH_RELEASE

PUBLISH_RELEASE = 'publish_release'

PULL_REQUEST_READY_FOR_REVIEW

PULL_REQUEST_READY_FOR_REVIEW = 'pull_request_ready_for_review'

PULL_REVIEW_DISMISSED

PULL_REVIEW_DISMISSED = 'pull_review_dismissed'

PUSH_TAG

PUSH_TAG = 'push_tag'

REJECT_PULL_REQUEST

REJECT_PULL_REQUEST = 'reject_pull_request'

RENAME_REPO

RENAME_REPO = 'rename_repo'

REOPEN_ISSUE

REOPEN_ISSUE = 'reopen_issue'

REOPEN_PULL_REQUEST

REOPEN_PULL_REQUEST = 'reopen_pull_request'

STAR_REPO

STAR_REPO = 'star_repo'

TRANSFER_REPO

TRANSFER_REPO = 'transfer_repo'

WATCH_REPO

WATCH_REPO = 'watch_repo'

Used by

Namespace Operations
orgs.activities feeds
repos.activities feeds
teams.activities feeds
users.activities feeds