~james/core

core/api/org_tangled/gitpushEvent.go -rw-r--r-- 1.6 KiB
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 14 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.

package org_tangled

// schema: org.tangled.git.pushEvent

import (
	"github.com/bluesky-social/indigo/lex/util"
)

const (
	GitPushEventNSID = "org.tangled.git.pushEvent"
)

// GitPushEvent is a "main" in the org.tangled.git.pushEvent schema.
//
// Represents git-push operation to target repository.
type GitPushEvent struct {
	Edits []*GitPushEvent_RefEdit `json:"edits" cborgen:"edits"`
	// options: Git push options.
	Options []string `json:"options,omitempty" cborgen:"options,omitempty"`
	// pusher: The account that performed this push.
	Pusher string `json:"pusher" cborgen:"pusher"`
	// repo: The repo this event comes from.
	Repo string `json:"repo" cborgen:"repo"`
	// seq: The stream sequence number of this message.
	Seq int64 `json:"seq" cborgen:"seq"`
	// sig: Signature over the DAG-CBOR of this message with the seq and sig keys absent (repo/pusher DID, edits, time, options), by the repo's atproto signing key. seq is excluded so a relay can reassign it without invalidating the signature.
	Sig util.LexBytes `json:"sig,omitempty" cborgen:"sig,omitempty"`
	// time: Timestamp of when this message was originally broadcast.
	Time string `json:"time" cborgen:"time"`
}

// GitPushEvent_RefEdit is a "refEdit" in the org.tangled.git.pushEvent schema.
//
// A git ref edit.
type GitPushEvent_RefEdit struct {
	// name: Full git reference name, ie refs/heads/main.
	Name string `json:"name" cborgen:"name"`
	// new: Full hex object id the ref now points at.
	New *string `json:"new" cborgen:"new"`
	// old: Full hex object id the ref pointed at before.
	Old *string `json:"old" cborgen:"old"`
}