Repository navigation
Expand file tree
/
Copy path.asf.yaml
More file actions
235 lines (227 loc) · 8.99 KB
/
Copy path.asf.yaml
File metadata and controls
235 lines (227 loc) · 8.99 KB
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# `.asf.yaml` is a branch-specific YAML configuration file for Git repositories to control features
# such as notifications, GitHub settings, etc.
# See its documentation for details: https://github.com/apache/infrastructure-asfyaml
---
#
# Additional non-standard features
#
meta:
environments:
- github_rulesets
github:
description: "Apache Airflow - A platform to programmatically author, schedule, and monitor workflows"
homepage: https://airflow.apache.org/
# Social media preview image is not supported by GitHub API/asf.yaml, need to be uploaded
# manually in GitHub repository --> Settings --> click "Edit" in "Social preview"
# See also:
# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/customizing-your-repositorys-social-media-preview
# social_media_preview: docs/apache-airflow/img/logos/github_repository_social_image.png
labels:
# Note that GitHub only supports <=20 labels/topics per repo! Pipeline will fail if you add more.
- airflow
- apache
- apache-airflow
- automation
- dag
- data-engineering
- data-integration
- data-orchestrator
- data-pipelines
- data-science
- elt
- etl
- machine-learning
- mlops
- orchestration
- python
- scheduler
- workflow
- workflow-engine
- workflow-orchestration
features:
# Enable issues management
issues: true
# Enable projects for project management boards
projects: true
# Enable wiki for documentation
wiki: false
# Enable discussions
discussions: true
enabled_merge_buttons:
squash: true
merge: false
rebase: false
pull_requests:
# Auto-merge waits for the required "CI passed" check enforced by the "Require CI on main" and
# "Require CI on release branches" rulesets. Without a required check it would merge as soon as
# the PR is approved, before CI finishes. The setting is repository-wide, so every branch that
# PRs target needs one of those rulesets.
allow_auto_merge: true
# enable updating head branches of pull requests
allow_update_branch: true
# auto-delete head branches after being merged
del_branch_on_merge: true
# cap how many PRs a user without write access may have open at once
# (committers and other users with write access are not affected)
creation_cap:
enabled: true
max_open_pull_requests: 5
# Exempt from the cap. This list replaces GitHub's bypass list on every sync, so users added
# by hand in the repository settings are removed. Fork CI pilot participants are exempt
# because their CI runs in their own forks; keep them in sync with [pilot] in
# .github/fork-ci-gate.toml.
bypass_users:
- aaron-y-chen
- Andrushika
- Dev-iL
- justinpakzad
- meel-ayush
- Prab-27
- raphaelauv
- SameerMesiah97
- sreecharan-desu
- stephen-bracken
- yuseok89
# Branch protection lives in the "Branch protection" ruleset below. Keep this key set to `~`:
# asfyaml then removes any legacy protection rule it finds. Legacy protection on `main` made
# every asfyaml run fail on GitHub 502s from `branches/main/protection`, which aborted the
# settings that come after it, such as the creation cap bypass list.
protected_branches: ~
# The two CI rulesets use the raw Rulesets API payload, because the convenience syntax can only name
# teams as bypass actors and GitHub refuses secret teams such as `airflow-committers`. Instead the
# Write repository role (actor_id 4) bypasses them: on this repository only committers hold it,
# granted by ASF Infra from the `airflow` LDAP group, so it needs no update when committers change.
# Committers can still merge a PR whose CI is red for an unrelated reason, by bypassing the rule.
#
# The required checks are not pinned to the GitHub Actions app: asfyaml passes raw values to the
# API as strings except for a fixed set of keys, and a string `integration_id` is rejected.
rulesets:
- name: "Require CI on main"
target: branch
enforcement: active
conditions:
ref_name:
include:
- "refs/heads/main"
exclude: []
bypass_actors:
- actor_id: 4
actor_type: RepositoryRole
bypass_mode: always
rules:
- type: deletion
- type: non_fast_forward
- type: required_status_checks
parameters:
strict_required_status_checks_policy: false
required_status_checks:
- context: "CI passed"
# Reported by the fork CI monitor once the head commit has a CI run, in the
# contributor's fork for a gated pull request or in apache/airflow otherwise; until
# then GitHub lists it on the pull request as expected and waiting.
- context: "CI run started"
# The branches `ci-amd.yml` runs pull request CI for, apart from `main`. A release branch gets
# the "CI passed" job only when it is backported there; until then its PRs need a committer to
# bypass the rule. "CI run started" comes from the fork CI monitor on `main`, for every base.
- name: "Require CI on release branches"
target: branch
enforcement: active
conditions:
ref_name:
include:
- "refs/heads/v*-test"
- "refs/heads/v*-stable"
- "refs/heads/providers-*/v*"
- "refs/heads/chart/v*-test"
- "refs/heads/chart/v*-stable"
- "refs/heads/airflow-ctl/v*-test"
- "refs/heads/airflow-ctl/v*-stable"
exclude: []
bypass_actors:
- actor_id: 4
actor_type: RepositoryRole
bypass_mode: always
rules:
- type: deletion
- type: non_fast_forward
- type: required_status_checks
parameters:
strict_required_status_checks_policy: false
required_status_checks:
- context: "CI passed"
# Reported by the fork CI monitor once the head commit has a CI run, in the
# contributor's fork for a gated pull request or in apache/airflow otherwise; until
# then GitHub lists it on the pull request as expected and waiting.
- context: "CI run started"
# Release tags of the language SDKs. The TypeScript npm release workflow and the
# `ts-sdk-npm-release` environment trust `ts-sdk/*` tags, and the Go module proxy caches a
# `go-sdk/*` tag's commit forever, so a release tag must not be moved or deleted. RC tags are
# covered too: they are kept for traceability after a failed vote. Committers can bypass it to
# repair a bad tag, the same as the CI rulesets above.
- name: "Protect language SDK release tags"
target: tag
enforcement: active
conditions:
ref_name:
include:
- "refs/tags/java-sdk/*"
- "refs/tags/go-sdk/*"
- "refs/tags/ts-sdk/*"
exclude: []
bypass_actors:
- actor_id: 4
actor_type: RepositoryRole
bypass_mode: always
rules:
- type: deletion
- type: update
- name: "Branch protection"
type: branch
branches:
includes:
- "~DEFAULT_BRANCH"
- "v*-stable"
- "providers-fab/v*"
- "airflow-ctl/v*-stable"
- "chart/v*-stable"
required_pull_request_reviews:
required_approving_review_count: 1
required_linear_history: true
required_conversation_resolution: true
required_signatures: false
collaborators:
# Max 10 collaborators allowed
# https://github.com/apache/infrastructure-asfyaml/blob/main/README.md#assigning-the-github-triage-role-to-external-collaborators
# Procedure for adding new member is listed in
# https://github.com/apache/airflow/blob/main/ISSUE_TRIAGE_PROCESS.rst#L97
- aritra24
- omkar-foss
- nathadfield
- sunank200
- cmarteepants
- karenbraganz
- gyli
- jroachgolf84
- Dev-iL
- kacpermuda
notifications:
commits: commits@airflow.apache.org
issues: commits@airflow.apache.org
pullrequests: commits@airflow.apache.org
discussions: commits@airflow.apache.org