Repository navigation
fix(skills): trim tina4-architect description under the 1024-char limit #196
Workflow file for this run
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 Code Infinity | |
| # SPDX-License-Identifier: MPL-2.0 | |
| # This Source Code Form is subject to the terms of the Mozilla Public | |
| # License, v. 2.0. If a copy of the MPL was not distributed with this | |
| # file, You can obtain one at https://mozilla.org/MPL/2.0/. | |
| name: CLA | |
| # A first-time contributor agrees to the Tina4 Contributor Licence Agreement by | |
| # commenting on the pull request: | |
| # I have read the Tina4 Contributor Licence Agreement and I agree to it. | |
| # After commenting, re-run this check. The agreement is a draft pending legal | |
| # review (ADR-0075), so this check is informational and not yet required. | |
| # Shell and the preinstalled gh CLI only; no third-party action. | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| agreement: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Author has agreed to the CLA | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| REPO: ${{ github.repository }} | |
| PR: ${{ github.event.pull_request.number }} | |
| AUTHOR: ${{ github.event.pull_request.user.login }} | |
| run: | | |
| case "$AUTHOR" in | |
| tina4stack|andrevanzuydam|*'[bot]') echo "$AUTHOR is covered without a comment"; exit 0 ;; | |
| esac | |
| phrase="I have read the Tina4 Contributor Licence Agreement and I agree to it." | |
| if gh api "repos/$REPO/issues/$PR/comments" --paginate \ | |
| --jq ".[] | select(.user.login == \"$AUTHOR\") | .body" | grep -qF "$phrase"; then | |
| echo "$AUTHOR has agreed to the CLA on this pull request" | |
| else | |
| echo "::error::$AUTHOR has not agreed to the CLA yet. Comment on this pull request: $phrase - then re-run this check." | |
| exit 1 | |
| fi |