-
-
Notifications
You must be signed in to change notification settings - Fork 18
189 lines (170 loc) · 4.76 KB
/
docker-image.yml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
name: Docker Image CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
ommands_restrictions:
update:
conditions:
- or:
- sender = bearycool11
- sender-permission >= writer
rebase:
conditions:
- or:
- sender = bearycool11
- sender-permission >= writer
squash:
conditions:
- or:
- sender = bearycool11
- sender-permission >= writer
backport:
conditions:
- sender-permission >= writer
unqueue:
conditions:
- or:
- sender = bearycool11
- sender-permission >= writer
pull_request_rules:
- name: Ensure PRs are up-to-date before merging
description: Automatically rebase PRs when they are out-of-date with the base branch.
conditions:
- "#commits-behind >= 1"
- or:
- sender = bearycool11
- sender-permission >= writer
actions:
rebase:
- name: Assign Reviews to Senior Engineering Team
description: Assign PRs to senior engineering team members for approval.
conditions:
- -open
- "#approved-reviews-by = 1"
- "#changes-requested-reviews-by = 1"
- review-requested != @senior-engineering
actions:
request_reviews:
teams:
- senior-engineering
- name: Assign Reviews to IBC Engineers
description: Assign PRs to the IBC team for technical and protocol analysis.
conditions:
- label = protocol-review
- -closed
- "#approved-reviews-by = 1"
actions:
request_reviews:
teams:
- ibc-team
- name: Assign Marketing Reviews
description: Assign marketing-related PRs to the Marketing and MarComms teams.
conditions:
- label = marketing
- -closed
- "#approved-reviews-by = 1"
actions:
request_reviews:
teams:
- marketing
- marcomms
- name: Request Community Review
description: Ensure community team reviews specific documentation PRs.
conditions:
- label = community-review
- -closed
- "#approved-reviews-by = 1"
actions:
request_reviews:
teams:
- community-team
- name: Automatic Merge
description: Merge PRs when all conditions are met, including label `automerge`.
conditions:
- label = automerge
- or:
- sender = bearycool11
- sender-permission >= writer
actions:
merge:
- name: Toggle Merge Queue Label
description: Add or remove `merge-queued` label when a PR is queued.
conditions:
- queue-position > 0
- or:
- sender = bearycool11
- sender-permission >= writer
actions:
label:
toggle:
- merge-queued
- name: Include Dr. Aditya and Dr. J.K. Edwards for Key Engineering Reviews
description: Notify and request approvals from Dr. Aditya Sri Pal and Dr. J.K. Edwards for high-priority PRs.
conditions:
- label = high-priority
- -closed
- "#approved-reviews-by = 0"
actions:
request_reviews:
users:
- DrAdityaSriPal
- DrJKEdwards
- name: Senior Advisor Involvement for Protocol Evolution
description: Ensure Dr. Fei Fei Li, Dr. Andrew Ng, and Dr. Elon Musk are involved in significant changes.
conditions:
- label = protocol-evolution
- -closed
- "#approved-reviews-by = 0"
actions:
request_reviews:
users:
- DrFeiFeiLi
- DrAndrewNg
- ElonMusk
- Amy X Zhang
- name: Ensure CEO Review for Final Merges
description: Request Sam Altman's approval for final merges with critical tags.
conditions:
- label = final-merge
- -closed
- "#approved-reviews-by = 0"
actions:
request_reviews:
users:
- SamAltman
- name: Operations Team Engagement
description: Notify operations team for budget-related changes.
conditions:
- label = operations
- -closed
actions:
request_reviews:
teams:
- operations
- name: OpenAI Team Review for AI Protocols
description: Assign OpenAI team for changes tagged with `ai-protocol`.
conditions:
- label = ai-protocol
- -closed
actions:
request_reviews:
teams:
- openai-team
- name: Interchain.io Review for Inter-Protocol Adjustments
description: Assign Interchain.io team for changes requiring inter-protocol review.
conditions:
- label = inter-protocol
- -closed
actions:
request_reviews:
teams:
- interchain-team