Skip to content

Commit 4deb609

Browse files
committed
0 parents  commit 4deb609

File tree

12 files changed

+1108
-0
lines changed

12 files changed

+1108
-0
lines changed

.asf.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
github:
2+
enabled_merge_buttons:
3+
squash: true
4+
merge: false
5+
rebase: true
6+
labels:
7+
- flink
8+
- redis
9+
- connector
10+
- datastream
11+
- table
12+
- sql
13+
collaborators:
14+
- flinkbot
15+
notifications:
16+
17+
18+
pullrequests: [email protected]
19+
20+
jira_options: link label

.github/boring-cyborg.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
################################################################################
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
################################################################################
18+
19+
labelPRBasedOnFilePath:
20+
component=BuildSystem:
21+
- .github/**/*
22+
- tools/maven/*
23+
24+
component=Documentation:
25+
- docs/**/*
26+
27+
component=Connectors/Elasticsearch:
28+
- flink-connector-elasticsearch*/**/*
29+
- flink-sql-connector-elasticsearch*/**/*
30+
31+
###### IssueLink Adder #################################################################################################
32+
# Insert Issue (Jira/Github etc) link in PR description based on the Issue ID in PR title.
33+
insertIssueLinkInPrDescription:
34+
# specify the placeholder for the issue link that should be present in the description
35+
descriptionIssuePlaceholderRegexp: "^Issue link: (.*)$"
36+
matchers:
37+
# you can have several matches - for different types of issues
38+
# only the first matching entry is replaced
39+
jiraIssueMatch:
40+
# specify the regexp of issue id that you can find in the title of the PR
41+
# the match groups can be used to build the issue id (${1}, ${2}, etc.).
42+
titleIssueIdRegexp: \[(FLINK-[0-9]+)\]
43+
# the issue link to be added. ${1}, ${2} ... are replaced with the match groups from the
44+
# title match (remember to use quotes)
45+
descriptionIssueLink: "[${1}](https://issues.apache.org/jira/browse/${1}/)"
46+
docOnlyIssueMatch:
47+
titleIssueIdRegexp: \[hotfix\]
48+
descriptionIssueLink: "`Documentation only change, no JIRA issue`"
49+
50+
###### Title Validator #################################################################################################
51+
# Verifies if commit/PR titles match the regexp specified
52+
verifyTitles:
53+
# Regular expression that should be matched by titles of commits or PR
54+
titleRegexp: ^\[FLINK-[0-9]+\].*$|^\[FLINK-XXXXX\].*$|^\[hotfix].*$
55+
# If set to true, it will always check the PR title (as opposed to the individual commits).
56+
alwaysUsePrTitle: false
57+
# If set to true, it will only check the commit in case there is a single commit.
58+
# In case of multiple commits it will check PR title.
59+
# This reflects the standard behaviour of Github that for `Squash & Merge` GitHub
60+
# uses the PR title rather than commit messages for the squashed commit ¯\_(ツ)_/¯
61+
# For single-commit PRs it takes the squashed commit message from the commit as expected.
62+
#
63+
# If set to false it will check all commit messages. This is useful when you do not squash commits at merge.
64+
validateEitherPrOrSingleCommitTitle: true
65+
# The title the GitHub status should appear from.
66+
statusTitle: "Title Validator"
67+
# A custom message to be displayed when the title passes validation.
68+
successMessage: "Validation successful!"
69+
# A custom message to be displayed when the title fails validation.
70+
# Allows insertion of ${type} (commit/PR), ${title} (the title validated) and ${regex} (the titleRegexp above).
71+
failureMessage: "Wrong ${type} title: ${title}"
72+
73+
# Various Flags to control behaviour of the "Labeler"
74+
labelerFlags:
75+
# If this flag is changed to 'false', labels would only be added when the PR is first created
76+
# and not when existing PR is updated.
77+
# The default is 'true' which means the labels would be added when PR is updated even if they
78+
# were removed by the user
79+
labelOnPRUpdates: true
80+
81+
# Comment to be posted to welcome users when they open their first PR
82+
firstPRWelcomeComment: >
83+
Thanks for opening this pull request! Please check out our contributing guidelines. (https://flink.apache.org/contributing/how-to-contribute.html)
84+
85+
# Comment to be posted to congratulate user on their first merged PR
86+
firstPRMergeComment: >
87+
Awesome work, congrats on your first merged pull request!

.github/workflows/ci.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
################################################################################
2+
# Licensed to the Apache Software Foundation (ASF) under one
3+
# or more contributor license agreements. See the NOTICE file
4+
# distributed with this work for additional information
5+
# regarding copyright ownership. The ASF licenses this file
6+
# to you under the Apache License, Version 2.0 (the
7+
# "License"); you may not use this file except in compliance
8+
# with the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
################################################################################
18+
19+
name: Build flink-connector-elasticsearch
20+
on: [push, pull_request]
21+
jobs:
22+
compile_and_test:
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
jdk: [8, 11]
27+
env:
28+
MVN_CONNECTION_OPTIONS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
29+
steps:
30+
- run: echo "Running CI pipeline for JDK version ${{ matrix.jdk }}"
31+
32+
- name: Check out repository code
33+
uses: actions/checkout@v2
34+
35+
- name: Set JDK
36+
uses: actions/setup-java@v2
37+
with:
38+
java-version: ${{ matrix.jdk }}
39+
distribution: 'temurin'
40+
cache: 'maven'
41+
42+
- name: Set Maven 3.8.5
43+
uses: stCarolas/[email protected]
44+
with:
45+
maven-version: 3.8.5
46+
47+
- name: Compile and test flink-connector-elasticsearch
48+
run: mvn clean install -Dscala-2.12 -Dflink.convergence.phase=install -Pcheck-convergence -U -B ${{ env.MVN_CONNECTION_OPTIONS }}

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.eslintcache
2+
.cache
3+
scalastyle-output.xml
4+
.classpath
5+
.idea/*
6+
!.idea/vcs.xml
7+
.metadata
8+
.settings
9+
.project
10+
.version.properties
11+
filter.properties
12+
logs.zip
13+
.mvn/wrapper/*.jar
14+
target
15+
tmp
16+
*.class
17+
*.iml
18+
*.swp
19+
*.jar
20+
*.zip
21+
*.log
22+
*.pyc
23+
.DS_Store
24+
build-target
25+
atlassian-ide-plugin.xml
26+
out/
27+
/docs/api
28+
/docs/.bundle
29+
/docs/.rubydeps
30+
/docs/ruby2/.bundle
31+
/docs/ruby2/.rubydeps
32+
/docs/.jekyll-metadata
33+
*.ipr
34+
*.iws
35+
tools/flink
36+
tools/flink-*
37+
tools/releasing/release
38+
tools/japicmp-output

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)