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
37 changes: 19 additions & 18 deletions .github/workflows/reverse-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ name: Reverse Sync

env:
TARGET_REPO: alaudadevops/tektoncd-operator
IGNORE_PATHS: .github/,README.md
SYNCED_PATHS: docs/ theme/ .yarn/ doom.config.yml yarn.lock tsconfig.json package.json sites.yaml

on:
pull_request:
types: [closed]
branches:
- main
- release-*
paths:
- '*'
- '!README.md'


jobs:
Expand Down Expand Up @@ -77,13 +76,17 @@ jobs:
echo "base_commit=$base_commit" >> $GITHUB_OUTPUT

# Get list of changed files in the PR
git diff --name-only $base_commit $merge_commit > ../changed_files.txt
ignore_pattern=$(echo "$IGNORE_PATHS" | sed 's/,/|/g' | sed 's|/$||g')
echo "🙈 Ignored paths: $ignore_pattern"

git diff --name-only $base_commit $merge_commit | grep -v -E "^($ignore_pattern)" > ../changed_files.txt

echo "📋 Changed files in PR:"
cat ../changed_files.txt

IFS=',' read -ra PATHS <<< "$SYNCED_PATHS"
# Check if any documentation files were changed
if grep -E "(^docs/|^README\.md$)" ../changed_files.txt; then
if [ -s ../changed_files.txt ]; then
echo "has_doc_changes=true" >> $GITHUB_OUTPUT
echo "✅ Documentation changes detected"
else
Expand Down Expand Up @@ -117,7 +120,9 @@ jobs:
base_commit="${{ steps.get_changes.outputs.base_commit }}"

# Create a patch with only the documentation changes
git format-patch $base_commit..$merge_commit --stdout -- docs/ README.md > ../changes.patch
ignore_pattern=$(echo "$IGNORE_PATHS" | sed 's/,/|/g' | sed 's|/$||g')
echo "📑 Will only sync these paths: $SYNCED_PATHS"
git format-patch $base_commit..$merge_commit --stdout -- $SYNCED_PATHS > ../changes.patch

cd ../target-docs

Expand All @@ -129,12 +134,10 @@ jobs:

# Fallback: manual copy of changed files
while IFS= read -r file; do
if [[ "$file" == docs/* ]] || [[ "$file" == "README.md" ]]; then
if [ -f "../devops-pipelines-docs/$file" ]; then
mkdir -p "$(dirname "$file")"
cp "../devops-pipelines-docs/$file" "$file"
echo "✅ Copied: $file"
fi
if [ -f "../devops-pipelines-docs/$file" ]; then
mkdir -p "$(dirname "$file")"
cp "../devops-pipelines-docs/$file" "$file"
echo "✅ Copied: $file"
fi
done < ../changed_files.txt
}
Expand All @@ -143,12 +146,10 @@ jobs:

# Manual copy approach
while IFS= read -r file; do
if [[ "$file" == docs/* ]] || [[ "$file" == "README.md" ]]; then
if [ -f "../devops-pipelines-docs/$file" ]; then
mkdir -p "$(dirname "$file")"
cp "../devops-pipelines-docs/$file" "$file"
echo "✅ Copied: $file"
fi
if [ -f "../devops-pipelines-docs/$file" ]; then
mkdir -p "$(dirname "$file")"
cp "../devops-pipelines-docs/$file" "$file"
echo "✅ Copied: $file"
fi
done < ../changed_files.txt
fi
Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/advanced_apis/results/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ weight: 20
i18n:
title:
en: Results
sourceSHA: 309f1a9373dac81cd438b1b4b9eea0fdcc06aec0b3d35614336d2c0e67b877cd
title: Results
---

Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/advanced_apis/results/intro.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Introduction to API Usage
weight: 30
sourceSHA: 87fe4929856a049f4a3d5b47a831d80bab84aeb9fe95d0e19ea17beb45e979c1
---

# Introduction to API Usage
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 100
sourceSHA: a598b5a8669b9cdb2e2506db8b45ca5e86695d21379b9b4fe38dc1b761dbc3a8
---

# Results List
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 200
sourceSHA: b9d2eaf608563763f21317b409eb1f4a876fb92fe1339a223cd5788ecb681a49
---

# Results Details
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 400
sourceSHA: ee8963e55cef330bd194bf9494040e9577b6cba601438da14947fc007822eb67
---

# Result logs List
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 300
sourceSHA: da1c16d39fd92f75e46aaa6298dd383507ab0f1931f81a700a6140c12e918afc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Verify consistency/uniqueness of all newly-added sourceSHA values

This SHA looks fine syntactically, but because dozens of files just received a sourceSHA it’s easy to accidentally paste the same hash twice or introduce a typo.
Suggest running a quick check across the repo to detect duplicates or malformed hashes.

The expected output should be empty; any line printed indicates a duplicate that should be fixed.


🏁 Script executed:

#!/bin/bash
# 1. List every `sourceSHA` we now have.
rg --no-heading --line-number '^sourceSHA:' docs | sort > /tmp/all_sha.txt

# 2. Show any duplicates (lines appearing more than once).
cut -d':' -f3 /tmp/all_sha.txt | sort | uniq -d

Length of output: 115


Update the duplicate-sourceSHA check script

The current script’s cut -d':' -f3 extracts the literal sourceSHA token (hence the “duplicate”), not the SHA value. Adjust it to pull the actual hash. For example:

#!/bin/bash
# Extract only the SHA values, then look for repeats
rg --no-heading '^sourceSHA:' docs \
  | awk -F': ' '{print $2}' \
  | sort \
  | uniq -d

Or using ripgrep’s PCRE support:

#!/bin/bash
rg -oP 'sourceSHA:\s*\K[0-9a-f]+' docs \
  | sort \
  | uniq -d

Any output indicates a duplicate SHA that should be corrected.

🤖 Prompt for AI Agents
In
docs/en/apis/advanced_apis/results/results_v1alpha2_parents_results_uuid_records.mdx
at line 3, the duplicate-`sourceSHA` check script incorrectly extracts the
literal token "sourceSHA" instead of the actual SHA value. Fix this by modifying
the script to extract the SHA hash after the colon, for example, using awk with
field separator ': ' to print the second field or using ripgrep with a regex
that captures only the SHA hash. This ensures the script correctly identifies
duplicate SHA values.

---

# Result records List
Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ weight: 900
i18n:
title:
en: API Reference
sourceSHA: c830eb7d28f21bd7eee185b5ad4d4d101e063a8fa1dab01815d5f2b8d33fc35f
title: API Reference
---

Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/intro.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 10
sourceSHA: 4e36b8b0000885c9764d32a18d6e52e1ccd26781a242711e70d3aad203ecad18
---

# Introduction
Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/kubernetes_apis/index.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
sourceSHA: 92f748f3892a616e69d1c7ec8f3eae4b2befbea40527458501e4e5a56e16a52e
title: Kubernetes APIs
weight: 20
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 180
sourceSHA: de5d8c3bec08fee92dc0d94a25f493ae21300a005b8ce31ea0d68a0633fc9301
---

# OpenShift Pipelines as Code \[operator.tekton.dev/v1alpha1]
Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/kubernetes_apis/operator/tektonchains.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 140
sourceSHA: 31284947bd4b422b2ad1ca1b0c72b1052ff093a3e10dcb44f7f46571bf249c87
---

# TektonChain [operator.tekton.dev/v1alpha1]
Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/kubernetes_apis/operator/tektonconfig.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 110
sourceSHA: 334045b882c578b582dddddfcb7a62a471291377c515c64182483d0915498ef8
---

# TektonConfig [operator.tekton.dev/v1alpha1]
Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/kubernetes_apis/operator/tektonhubs.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 150
sourceSHA: c60d262285f7038edbcc1da26b9ebcfaaf3ae19c16c4646b95d36b796b5c6dcc
---

# TektonHub [operator.tekton.dev/v1alpha1]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 110
sourceSHA: fcfe8425a7d54aec659b18d5944e94993269c4657c682412334216232f679475
---

# TektonInstallerSet [operator.tekton.dev/v1alpha1]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 170
sourceSHA: 086067de6da10b33d52917c92df0b358eb7749638555cb34435b2cb8fe601a18
---

# TektonInstallerSet [operator.tekton.dev/v1alpha1]
Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/kubernetes_apis/operator/tektonpipelines.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 120
sourceSHA: d64da8ecb8f3bd3a12df10b491af1dfca0c0190f0dea0f8e3bfd9296e5a0f742
---

# TektonPipeline [operator.tekton.dev/v1alpha1]
Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/kubernetes_apis/operator/tektonresults.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 160
sourceSHA: 5ba913e5ea306392d1815b7c6b244f466c87171c0a63feb25ff36c8ff42e7636
---

# TektonResult [operator.tekton.dev/v1alpha1]
Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/kubernetes_apis/operator/tektontriggers.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 130
sourceSHA: d43739dfcdf60af7b7725ad2689c0a3c99edc001e00afd7477d7725e3e5bfb28
---

# TektonTrigger [operator.tekton.dev/v1alpha1]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 110
sourceSHA: cb56559a5db99722832c6fe2418b634f07a96ebf9e0210182b3a5fd7ee1afe6a
---

# ClusterInterceptor [triggers.tekton.dev/v1alpha1]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 100
sourceSHA: 79af4e90fab165687ef79a25c332295c8ee10a8eb20971c15320cec10bd00d30
---

# ClusterTriggerBinding [triggers.tekton.dev/v1beta1]
Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/kubernetes_apis/triggers/eventlistener.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 30
sourceSHA: fef4fe40c508978d994e33a72a894cbc55a51ddeea8d8edbf8c101a918eccca4
---

# EventListener [triggers.tekton.dev/v1beta1]
Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/kubernetes_apis/triggers/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ weight: 30
i18n:
title:
en: Triggers
sourceSHA: 92f748f3892a616e69d1c7ec8f3eae4b2befbea40527458501e4e5a56e16a52e
title: Triggers
---

Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/kubernetes_apis/triggers/interceptor.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 70
sourceSHA: 33f190e458d23fcfeea927fa32926bba930cfb83b325da0a6cd5865b8bd1e617
---

# Interceptor [triggers.tekton.dev/v1alpha1]
Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/kubernetes_apis/triggers/triggerbinding.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 50
sourceSHA: 7b3d0b6748995cdc2a0e41352f7852b6893842022e96c2b06cb7abe28eb2a08b
---

# TriggerBinding [triggers.tekton.dev/v1beta1]
Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/kubernetes_apis/triggers/triggers.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 10
sourceSHA: 1927d435627bf7b5f05fecb3818e1ceece9b4cb3fb45d21ce813ae7417de2c68
---

# Trigger [triggers.tekton.dev/v1beta1]
Expand Down
1 change: 1 addition & 0 deletions docs/en/apis/kubernetes_apis/triggers/triggertemplate.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 20
sourceSHA: fa279ee082cca28eb719f1d89f6a0dc9417fb220fbd62519f6dac9af4911deba
---

# TriggerTemplate [triggers.tekton.dev/v1beta1]
Expand Down
1 change: 1 addition & 0 deletions docs/en/configure/customize_options.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Adjusting Optional Configuration Items of Subcomponents
weight: 10
sourceSHA: e8dc68e13b6a5eae97587db9ce12a604d239694ca4fe0d9d821af5791c22db01
---

# Adjusting Optional Configuration Items of Subcomponents
Expand Down
1 change: 1 addition & 0 deletions docs/en/configure/customize_tekton_pipeline.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Configuring Resource Quotas for Pipeline Components
weight: 20
sourceSHA: 244ed8262157e281525632c51199cb09fbcb12cbc4beda33d3a21740c497329c
---

# Configuring Resource Quotas for Pipeline Components
Expand Down
1 change: 1 addition & 0 deletions docs/en/configure/pruner_resources.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Regular Cleanup of TaskRun and PipelineRun Resources
weight: 50
sourceSHA: 313ba737795bfb999dc2a2966d96c050aeb829bb8ec33ec574de730a4082f125
---

# Regular Cleanup of TaskRun and PipelineRun Resources
Expand Down
5 changes: 3 additions & 2 deletions docs/en/development/component-quickstart/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
created: '2025-01-07'
sourceSHA: 1f19cac3ea0607ba2d121d6734b84d2150fab490db2b9e53af98021051a20f97
---

# Component Quick Start
Expand Down Expand Up @@ -235,7 +236,7 @@ metadata:
# - https://pipelinesascode.com/docs/guide/matchingevents/#matching-a-pipelinerun-to-specific-path-changes
# - https://en.wikipedia.org/wiki/Glob_%28programming%29
# - https://pipelinesascode.com/docs/guide/cli/#test-globbing-pattern
# TL;DR:
# TL;DR:
# - `.tekton` matches all file changes in the `.tekton` directory.
# - `.tekton/**` matches all file changes within the `.tekton` directory.
# - `.tekton/.*` does not match all file changes within the `.tekton` directory.
Expand Down Expand Up @@ -331,7 +332,7 @@ spec:
echo "update_image_version.sh values.yaml ${IMAGE}"
update_image_version.sh values.yaml ${IMAGE}

# **Important** Update the component's version number
# **Important** Update the component's version number
# It will be based on the calculated last changed commit sha, used as the version suffix.

# Get the current version and remove the -.* suffix
Expand Down
1 change: 1 addition & 0 deletions docs/en/development/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
created: '2025-01-07'
weight: 1000
sourceSHA: 75c34d0d72e02898d2113ea25e4d650c5813026359d0fbe191f5f0a4003ea1d0
---

# Development
Expand Down
1 change: 1 addition & 0 deletions docs/en/development/update-frontend/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
created: '2025-01-10'
sourceSHA: 423aae74086ccd5e58bf95963dba1872dde2b1e215377c15812fd75e0246284b
---

# Update Frontend Images
Expand Down
1 change: 1 addition & 0 deletions docs/en/how_to/deploy_global.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
title: Deploying tekton-pipelines in a global cluster through TektonConfig
weight: 12
sourceSHA: 287827cef494ef625663ba58b166f501370529a167b85b165f8716055bb7a512
---

# Deploying tekton-pipelines in a global cluster through TektonConfig
Expand Down
1 change: 1 addition & 0 deletions docs/en/how_to/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ weight: 400
i18n:
title:
en: How To
sourceSHA: d837f194b6c9f8058518d18eb2bc43fbf785f18020d6237122f502585f653538
title: How To
---

Expand Down
1 change: 1 addition & 0 deletions docs/en/hub/architecture.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 20
sourceSHA: 508a17e48c8a204f0dd687d8a3619719bf5e75b2514145e72e1b0d5f72faf021
---

# Architecture
Expand Down
1 change: 1 addition & 0 deletions docs/en/hub/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 650
sourceSHA: c7c51f67d66813d5092b61a9b655e83480cf3a5a6278c11a9d958bb41b4a1c51
---

# Hub
Expand Down
1 change: 1 addition & 0 deletions docs/en/index.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
sourceSHA: 98fa82cb94165bc3a005c9bc616756185acea329bf9d9a47317557939b1c5e39
weight: 10
---

Expand Down
1 change: 1 addition & 0 deletions docs/en/overview/features.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 20
sourceSHA: fd953fbcfccf537583abc76490cce5d4a69e3e8985c33f0f7788e0d7f22a3600
i18n:
additionalPrompts: Do not translate project names and keep them as is like Tekton Pipelines, Tekton Triggers, Tekton Chains, Tekton Hub, Pipeline-as-Code, Tekton Results
---
Expand Down
1 change: 1 addition & 0 deletions docs/en/overview/index.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 100
sourceSHA: bc41c3854a0b20a2af73129062603452edf9a9bcb8314eced8b5b24b368a4d1d
---

# Overview
Expand Down
1 change: 1 addition & 0 deletions docs/en/overview/intro.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 10
sourceSHA: 0a2d43dba1d3bda12069a5a85bdc2d0d713f9cb6596d59acd67ffdd5c9c4f370
i18n:
additionalPrompts: Do not translate project names and keep them as is like Tekton Pipelines, Tekton Triggers, Tekton Chains, Tekton Hub, Pipeline-as-Code, Tekton Results
---
Expand Down
1 change: 1 addition & 0 deletions docs/en/results/architecture.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
weight: 20
sourceSHA: 40155ea232f165caffcdc31f86a0887747f31547bafc5855f32831053776695d
---

# Architecture
Expand Down
Loading
Loading