From 09bfabed7641629e07cee83a6dded92a6b5e401b Mon Sep 17 00:00:00 2001 From: openshift-pipelines-bot Date: Thu, 22 Jan 2026 07:07:50 +0000 Subject: [PATCH] [bot:release-v1.22.x] update konflux configuration --- .github/workflows/auto-merge-upstream.yaml | 52 ++++++++++++++ .github/workflows/update-sources.yaml | 72 +++++++++++++++++++ ...-service-1-22-controller-pull-request.yaml | 55 ++++++++++++++ .../syncer-service-1-22-controller-push.yaml | 50 +++++++++++++ 4 files changed, 229 insertions(+) create mode 100644 .github/workflows/auto-merge-upstream.yaml create mode 100644 .github/workflows/update-sources.yaml create mode 100644 .tekton/syncer-service-1-22-controller-pull-request.yaml create mode 100644 .tekton/syncer-service-1-22-controller-push.yaml diff --git a/.github/workflows/auto-merge-upstream.yaml b/.github/workflows/auto-merge-upstream.yaml new file mode 100644 index 00000000..50d4375d --- /dev/null +++ b/.github/workflows/auto-merge-upstream.yaml @@ -0,0 +1,52 @@ +# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT +name: auto-merge-upstream-openshift-pipelines/syncer-service + +on: + workflow_dispatch: {} + +jobs: + auto-approve-and-merge: + runs-on: ubuntu-latest + permissions: + pull-requests: write + steps: + - id: Checkout the current repo + uses: actions/checkout@v5 + - id: list-prs + run: | + echo "Listing PRs" + gh auth status + git config user.name openshift-pipelines-bot + git config user.email pipelines-extcomm@redhat.com + # Approve and merge pull-request with no reviews + + pr_list=$(gh pr list \ + --state open \ + --label upstream \ + --json number,title,statusCheckRollup \ + --jq ' .[]| select((.statusCheckRollup // [])| all(.conclusion == "SUCCESS" or .conclusion == "SKIPPED"))| "\(.number)"') + + echo "pr_list=$pr_list" >> "$GITHUB_OUTPUT" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - id: add LGTM Label + run: | + # Approve and merge pull-request with no reviews + for p in $pr_list; do + echo "Adding lgtm label to PR $p" + gh pr edit $p --add-label "lgtm" || true + done + env: + pr_list: ${{ steps.list-prs.outputs.pr_list }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - id: Merging PRs + run: | + # Approve and merge pull-request with no reviews + for p in $pr_list; do + echo "Merging PR $p" + gh pr merge --rebase --delete-branch --auto $p + done + env: + pr_list: ${{ steps.list-prs.outputs.pr_list }} + GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }} diff --git a/.github/workflows/update-sources.yaml b/.github/workflows/update-sources.yaml new file mode 100644 index 00000000..7e858d47 --- /dev/null +++ b/.github/workflows/update-sources.yaml @@ -0,0 +1,72 @@ +# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT +name: update-sources-openshift-pipelines/syncer-service +on: + workflow_dispatch: {} + +jobs: + + update-sources: + runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write + steps: + - name: Checkout the current repo + uses: actions/checkout@v4 + with: + ref: release-v1.22.x + + - name: Clone openshift-pipelines/syncer-service + run: | + rm -fR upstream + git clone https://github.com/openshift-pipelines/syncer-service upstream + pushd upstream + git checkout -B release-v0.1.x origin/release-v0.1.x + popd + - name: Commit new changes + run: | + + set -x + + git config user.name openshift-pipelines-bot + git config user.email pipelines-extcomm@redhat.com + git checkout -b actions/update/sources-release-v1.22.x + touch head + pushd upstream + OLD_COMMIT=$(cat ../head) + NEW_COMMIT=$(git rev-parse HEAD) + echo Previous commit: ${OLD_COMMIT} + git show --stat ${OLD_COMMIT} + echo New commit: ${NEW_COMMIT} + git show --stat ${NEW_COMMIT} + git diff --stat ${NEW_COMMIT}..${OLD_COMMIT} > /tmp/diff.txt + git rev-parse HEAD > ../head + popd + rm -rf upstream/.git + git add -f upstream head .konflux + + if [[ -z $(git status --porcelain --untracked-files=no) ]]; then + echo "No change, exiting" + exit 0 + fi + + git commit -F- <