Repository navigation
feat(c-abi): expose procedure / function metadata as JDBC-canonical results #426
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright (c) 2026 Databricks, Inc. | |
| # | |
| # Licensed 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. | |
| # Verbatim port of the dco-check workflow used across the other | |
| # databricks/databricks-sql-* repos. Enforces `git commit -s` sign-off | |
| # on every commit in a PR — CLAUDE.md mandates this convention. | |
| name: DCO Check | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| jobs: | |
| dco-check: | |
| runs-on: | |
| group: databricks-protected-runner-group | |
| labels: linux-ubuntu-latest | |
| name: Check DCO Sign-off | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check DCO Sign-off | |
| env: | |
| BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
| HEAD_SHA: ${{ github.event.pull_request.head.sha }} | |
| run: | | |
| #!/bin/bash | |
| set -e | |
| echo "Checking commits from $BASE_SHA to $HEAD_SHA" | |
| COMMITS=$(git rev-list --no-merges "$BASE_SHA..$HEAD_SHA") | |
| if [ -z "$COMMITS" ]; then | |
| echo "No commits found in this PR" | |
| exit 0 | |
| fi | |
| FAILED_COMMITS=() | |
| for commit in $COMMITS; do | |
| echo "Checking commit: $commit" | |
| COMMIT_MSG=$(git log --format=%B -n 1 "$commit") | |
| if echo "$COMMIT_MSG" | grep -q "^Signed-off-by: "; then | |
| echo " Commit $commit has DCO sign-off" | |
| else | |
| echo " Commit $commit is missing DCO sign-off" | |
| FAILED_COMMITS+=("$commit") | |
| fi | |
| done | |
| if [ ${#FAILED_COMMITS[@]} -ne 0 ]; then | |
| echo "" | |
| echo "DCO Check Failed!" | |
| echo "The following commits are missing the required 'Signed-off-by' line:" | |
| for commit in "${FAILED_COMMITS[@]}"; do | |
| echo " - $commit: $(git log --format=%s -n 1 "$commit")" | |
| done | |
| echo "" | |
| echo "To fix this, you need to sign off your commits. You can:" | |
| echo "1. Add sign-off to new commits: git commit -s -m 'Your commit message'" | |
| echo "2. Amend existing commits: git commit --amend --signoff" | |
| echo "3. For multiple commits, use: git rebase --signoff HEAD~N (where N is the number of commits)" | |
| echo "" | |
| echo "The sign-off should be in the format:" | |
| echo "Signed-off-by: Your Name <your.email@example.com>" | |
| echo "" | |
| echo "For more details, see CONTRIBUTING.md" | |
| exit 1 | |
| else | |
| echo "" | |
| echo "All commits have proper DCO sign-off!" | |
| fi |