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