Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 0 additions & 52 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,55 +202,3 @@ style:

test:
- head-branch: ["^.*/test/.*", "test"]

# ==============================================================================
# RELEASE PLEASE LABELS
# ==============================================================================
# Automatically label release PRs created by release-please.
# Branch pattern: release-please--<component>--<path>

release:
- head-branch: ["^release-please--.*"]

# Component-specific release labels
release/dotprompt:
- head-branch: ["^release-please--dotprompt.*"]

release/dotpromptz:
- head-branch: ["^release-please--dotpromptz--.*"]

release/dotpromptz-handlebars:
- head-branch: ["^release-please--dotpromptz-handlebars--.*"]

release/dotprompt-go:
- head-branch: ["^release-please--dotprompt-go.*"]

release/dotprompt-rs:
- head-branch: ["^release-please--dotprompt-rs.*"]

release/dotprompt-java:
- head-branch: ["^release-please--dotprompt-java.*"]

release/vscode:
- head-branch: ["^release-please--dotprompt-vscode.*"]

release/vim:
- head-branch: ["^release-please--dotprompt-vim.*"]

release/emacs:
- head-branch: ["^release-please--dotprompt-emacs.*"]

release/jetbrains:
- head-branch: ["^release-please--dotprompt-jetbrains.*"]

release/monaco:
- head-branch: ["^release-please--dotprompt-monaco.*"]

release/codemirror:
- head-branch: ["^release-please--dotprompt-codemirror.*"]

release/treesitter:
- head-branch: ["^release-please--tree-sitter-dotprompt.*"]

release/promptly:
- head-branch: ["^release-please--promptly.*"]
31 changes: 1 addition & 30 deletions .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ on:
branches: [ main ]

permissions:
contents: write
pull-requests: write
contents: read

jobs:
build_and_test:
Expand All @@ -39,9 +38,6 @@ jobs:
steps:
- name: Checkout Code
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
ref: ${{ startsWith(github.head_ref, 'release-please--') && github.head_ref || '' }}
token: ${{ startsWith(github.head_ref, 'release-please--') && secrets.RELEASE_PLEASE_TOKEN || github.token }}

# Bazel needs a JDK. Setup Java from matrix.
- name: Setup Java JDK ${{ matrix.java-version }}
Expand All @@ -63,35 +59,10 @@ jobs:
repository-cache: true
cache-save: true

- name: Check if this is a release-please PR
id: check-release-please
run: |
if [[ "${GITHUB_HEAD_REF}" == release-please--* ]]; then
echo "is_release_please=true" >> $GITHUB_OUTPUT
else
echo "is_release_please=false" >> $GITHUB_OUTPUT
fi

- name: Pin Java dependencies
run: bazelisk run @maven//:pin

- name: Commit maven_install.json updates for release-please PR
if: steps.check-release-please.outputs.is_release_please == 'true' && matrix.java-version == 17
run: |
# Use CLA-covered maintainer identity from MAINTAINERS.yaml
git config user.name "$(yq '.ci.commit_author.name' MAINTAINERS.yaml)"
git config user.email "$(yq '.ci.commit_author.email' MAINTAINERS.yaml)"
if ! git diff --quiet maven_install.json; then
git add maven_install.json
git commit -m "chore: update maven_install.json"
git push
echo "maven_install.json updated and pushed"
else
echo "No maven_install.json changes needed"
fi

- name: Check for changes in maven_install.json
if: steps.check-release-please.outputs.is_release_please != 'true'
id: git-check
run: |
if [[ -n "$(git status --porcelain maven_install.json)" ]]; then
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ jobs:
outputs:
any_changed: ${{ steps.changed-files.outputs.any_changed }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
files: |
dart/**
Expand All @@ -48,10 +48,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Setup Dart
uses: dart-lang/setup-dart@v1
uses: dart-lang/setup-dart@2286a0c042b44434fe26d292bbce8d34f7ec662b # v1.8.2
with:
sdk: stable

Expand All @@ -70,10 +70,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Setup Dart
uses: dart-lang/setup-dart@v1
uses: dart-lang/setup-dart@2286a0c042b44434fe26d292bbce8d34f7ec662b # v1.8.2
with:
sdk: stable

Expand All @@ -97,10 +97,10 @@ jobs:
sdk: [stable, beta]
steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Setup Dart
uses: dart-lang/setup-dart@v1
uses: dart-lang/setup-dart@2286a0c042b44434fe26d292bbce8d34f7ec662b # v1.8.2
with:
sdk: ${{ matrix.sdk }}

Expand All @@ -126,10 +126,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Setup Java (required for ANTLR)
uses: actions/setup-java@v4
uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3 # v4.9.1
with:
distribution: "temurin"
java-version: "17"
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,15 @@ on:
# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
- name: Install, build, and upload your site
uses: withastro/action@v3
uses: withastro/action@56781b97402ce0487b7e61ce2cb960c0e2cc5289 # v3.0.2
with:
path: third_party/docsite
node-version: 22
Expand All @@ -48,10 +46,13 @@ jobs:
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5
17 changes: 10 additions & 7 deletions .github/workflows/engdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

name: Eng Documentation Checks

permissions:
contents: read

on:
pull_request:
branches: [ main ]
Expand All @@ -26,12 +29,12 @@ jobs:
outputs:
any_changed: ${{ steps.changed-files.outputs.any_changed }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
files: |
docs/**
Expand All @@ -53,30 +56,30 @@ jobs:
fail-fast: false

steps:
- uses: actions/checkout@v6
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential libffi-dev cmake curl ripgrep

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
uses: dtolnay/rust-toolchain@39008827e6b4319a349e9a42dfc90579dd25f1ca # stable
with:
components: rustfmt, clippy
env:
RUSTUP_MAX_RETRIES: 3

- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.9
uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9

- name: Set up Go
uses: actions/setup-go@v6
uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0
with:
go-version: stable

- name: Install uv and setup Python version
uses: astral-sh/setup-uv@v5
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2
with:
enable-cache: true
python-version: ${{ matrix.python-version }}
Expand Down
35 changes: 18 additions & 17 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ jobs:
outputs:
any_changed: ${{ steps.changed-files.outputs.any_changed }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6
with:
files: |
bazel/rules_flutter/**
Expand All @@ -54,10 +54,10 @@ jobs:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.18.0
uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}-${{ matrix.os }}
Expand All @@ -78,7 +78,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Install buildifier
run: |
Expand Down Expand Up @@ -107,28 +107,25 @@ jobs:
os: [ubuntu-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Setup Flutter
uses: subosito/flutter-action@v2
uses: subosito/flutter-action@1a449444c387b1966244ae4d4f8c696479add0b2 # v2.23.0
with:
flutter-version: '3.27.0'
channel: 'stable'
cache: true

- name: Setup Dart
uses: dart-lang/setup-dart@v1
uses: dart-lang/setup-dart@2286a0c042b44434fe26d292bbce8d34f7ec662b # v1.8.2
with:
sdk: stable

- name: Install protoc
uses: arduino/setup-protoc@v3
uses: arduino/setup-protoc@c65c819552d16ad3c9b72d9dfd5ba5237b9c906b # v3.0.0
with:
version: '28.x'

- name: Install protoc-gen-dart
run: dart pub global activate protoc_plugin

- name: Setup gRPC example
working-directory: bazel/rules_flutter/examples/grpc_app
run: |
Expand All @@ -139,11 +136,15 @@ jobs:
# Add platform support
flutter create --platforms=web,linux . 2>/dev/null || true

# Generate proto files
# Generate proto files. The client is pinned to protobuf 4.x (Flutter 3.27 /
# Dart 3.6) and the server to protobuf 6.0.x (see the pubspec.lock files), so
# each gets code from the matching protoc_plugin release instead of sharing one.
mkdir -p lib/generated server/lib/generated
export PATH="$HOME/.pub-cache/bin:$PATH"
dart pub global activate protoc_plugin 22.4.0
protoc --dart_out=grpc:lib/generated -Iproto proto/helloworld.proto
cp lib/generated/*.dart server/lib/generated/
dart pub global activate protoc_plugin 25.0.0
protoc --dart_out=grpc:server/lib/generated -Iproto proto/helloworld.proto

- name: Analyze Flutter client
working-directory: bazel/rules_flutter/examples/grpc_app
Expand Down Expand Up @@ -181,7 +182,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Validate Envoy config syntax
working-directory: bazel/rules_flutter/examples/grpc_app/proxy
Expand Down Expand Up @@ -239,10 +240,10 @@ jobs:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Setup Bazel
uses: bazel-contrib/setup-bazel@0.18.0
uses: bazel-contrib/setup-bazel@083175551ceeceebc757ebee2127fde78840ca77 # 0.18.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}-windows
Expand Down
Loading
Loading