Skip to content

Commit b286de7

Browse files
authored
Merge pull request #8 from Shadow-Games-inc/Dev
Dev
2 parents cd2651a + 06cec25 commit b286de7

9,053 files changed

Lines changed: 657405 additions & 229 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODEOWNERS

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Auto-generated by the tools/mkowners/mkowners.py tool
2+
# Uses OWNERS files in different modules throughout the
3+
# repository as the source of truth for module ownership.
4+
/**/OWNERS @markdroth @nicolasnoble @a11r @ctiller
5+
/bazel/** @nicolasnoble @jtattermusch @veblush @gnossen @ctiller
6+
/cmake/** @jtattermusch @nicolasnoble @apolcyn
7+
/src/core/ext/filters/client_channel/** @markdroth
8+
/src/core/ext/xds/** @markdroth
9+
/tools/dockerfile/** @jtattermusch @apolcyn @nicolasnoble

.github/labeler.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
lang/core:
2+
- src/core/**
3+
- include/grpc/**
4+
- test/core/**
5+
- tools/codegen/core/**
6+
7+
lang/c++:
8+
- src/cpp/**
9+
- include/grpc++/**
10+
- include/grpcpp/**
11+
- test/cpp/**
12+
13+
area/infra:
14+
- .github/**
15+

.github/lock.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
daysUntilLock: 90
2+
lockComment: false

.github/mergeable.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
mergeable:
2+
pull_requests:
3+
label:
4+
and:
5+
- must_exclude:
6+
regex: '^disposition/DO NOT MERGE'
7+
message: 'Pull request marked not mergeable'
8+
- or:
9+
- and:
10+
- must_include:
11+
regex: '^release notes: yes'
12+
message: 'Please add the label (release notes: yes)'
13+
- must_include:
14+
regex: '^lang\/'
15+
message: 'Please add a language label (lang/...)'
16+
- must_include:
17+
regex: '^release notes: no'
18+
message: 'Please add the label (release notes: no)'

.github/stale.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Configuration for probot-stale - https://github.com/probot/stale
2+
3+
# Number of days of inactivity before an Issue or Pull Request becomes stale
4+
daysUntilStale: 90
5+
6+
# Number of days of inactivity before an Issue or Pull Request with the stale label is closed.
7+
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
8+
daysUntilClose: 7
9+
10+
# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled)
11+
onlyLabels: []
12+
13+
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
14+
exemptLabels:
15+
- "disposition/never stale"
16+
- "kind/bug"
17+
18+
# Set to true to ignore issues in a project (defaults to false)
19+
exemptProjects: false
20+
21+
# Set to true to ignore issues in a milestone (defaults to false)
22+
exemptMilestones: false
23+
24+
# Set to true to ignore issues with an assignee (defaults to false)
25+
exemptAssignees: false
26+
27+
# Label to use when marking as stale
28+
staleLabel: "disposition/stale"
29+
30+
# Comment to post when marking as stale. Set to `false` to disable
31+
markComment: >
32+
This issue/PR has been automatically marked as stale because it has not had any update (including
33+
commits, comments, labels, milestones, etc) for 30 days. It will be closed automatically if no
34+
further update occurs in 7 day. Thank you for your contributions!
35+
36+
# Comment to post when removing the stale label.
37+
# unmarkComment: >
38+
# Your comment here.
39+
40+
# Comment to post when closing a stale Issue or Pull Request.
41+
# closeComment: >
42+
# Your comment here.
43+
44+
# Limit the number of actions per hour, from 1-30. Default is 30
45+
limitPerRun: 30
46+
47+
# Limit to only `issues` or `pulls`
48+
# only: issues
49+
50+
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls':
51+
# pulls:
52+
# daysUntilStale: 30
53+
# markComment: >
54+
# This pull request has been automatically marked as stale because it has not had
55+
# recent activity. It will be closed if no further activity occurs. Thank you
56+
# for your contributions.
57+
58+
# issues:
59+
# exemptLabels:
60+
# - confirmed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Happy Pancakes
2+
on:
3+
pull_request:
4+
types: [opened, edited, labeled, unlabeled, synchronize, ready_for_review, auto_merge_enabled, auto_merge_disabled]
5+
jobs:
6+
check_status:
7+
name: Check Required Status or force-merge label
8+
runs-on: ubuntu-latest
9+
steps:
10+
# Cancel current runs if they're still running
11+
# (saves processing on fast pushes)
12+
- name: Cancel Previous Runs
13+
uses: styfle/cancel-workflow-action@0.9.1
14+
with:
15+
access_token: ${{ github.token }}
16+
# Wait until our required statuses are ready or failed
17+
# Unless force-merge is present, and then just be good.
18+
- name: Check Status
19+
uses: actions/github-script@v4
20+
with:
21+
script: |
22+
function sleep(ms) {
23+
return new Promise(resolve => setTimeout(resolve, ms));
24+
}
25+
let pull = await github.pulls.get({
26+
owner: "grpc",
27+
repo: "grpc",
28+
pull_number: ${{ github.event.pull_request.number }}
29+
});
30+
for (var i = 0; i < pull.data.labels.length; i++) {
31+
let label = pull.data.labels[i];
32+
if (label.name == "force-merge") {
33+
console.log("Saw force-merge label");
34+
return;
35+
}
36+
}
37+
while (true) {
38+
var need = new Set();
39+
need.add("Bazel Basic build for C/C++");
40+
need.add("Portability Tests Linux [Build Only] (internal CI)");
41+
for (var page=1;; page++) {
42+
console.log("***** page " + page);
43+
let statuses = await github.repos.listCommitStatusesForRef({
44+
owner: "grpc",
45+
repo: "grpc",
46+
ref: "${{ github.event.pull_request.head.sha }}",
47+
per_page: 100,
48+
page: page
49+
});
50+
for (var i = 0; i < statuses.data.length; i++) {
51+
let status = statuses.data[i];
52+
console.log(status.context, status.state, need);
53+
if (need.has(status.context)) {
54+
if (status.state == "success") {
55+
need.delete(status.context);
56+
} else if (status.state == "pending") {
57+
// do nothing
58+
} else {
59+
core.setFailed("Required status failed: " + status.context);
60+
return;
61+
}
62+
}
63+
}
64+
if (statuses.data.length < 100) {
65+
break;
66+
}
67+
}
68+
if (need.size == 0) {
69+
return;
70+
}
71+
// Sleep 15 minutes between polls
72+
await sleep(15 * 60 * 1000);
73+
}
74+

AUTHORS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Dropbox, Inc.
2+
Google Inc.
3+
Skyscanner Ltd.
4+
WeWork Companies Inc.

0 commit comments

Comments
 (0)