Skip to content

Commit d62f325

Browse files
openshift-pipelines-botpramodbindal
authored andcommitted
[bot:next] update konflux configuration
1 parent e59c490 commit d62f325

10 files changed

+42
-20
lines changed

.github/workflows/auto-merge-upstream.yaml

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,53 @@
11
# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
2-
name: auto-merge-upstream-pac-downstream
2+
name: auto-merge-upstream
33

44
on:
55
workflow_dispatch: {}
6-
schedule:
7-
- cron: "*/30 * * * *" # At every 30 minutes
86

97
jobs:
10-
auto-approve:
8+
auto-approve-and-merge:
119
runs-on: ubuntu-latest
1210
permissions:
1311
pull-requests: write
1412
steps:
1513
- name: Checkout the current repo
16-
uses: actions/checkout@v4
17-
- name: auto-merge-upstream-pac-downstream
14+
uses: actions/checkout@v5
15+
- name: List PRs
16+
id: list-prs
1817
run: |
18+
echo "Listing PRs"
1919
gh auth status
2020
git config user.name openshift-pipelines-bot
2121
git config user.email pipelines-extcomm@redhat.com
2222
# Approve and merge pull-request with no reviews
23-
for p in $(gh pr list --search "head:actions/update/sources-pac-downstream" --json "number" | jq ".[].number"); do
23+
24+
pr_list=$(gh pr list \
25+
--state open \
26+
--label upstream \
27+
--json number,title,statusCheckRollup \
28+
--jq ' .[]| select((.statusCheckRollup // [])| all(.conclusion == "SUCCESS" or .conclusion == "SKIPPED"))| "\(.number)"')
29+
30+
echo "pr_list=$pr_list" >> "$GITHUB_OUTPUT"
31+
env:
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: add LGTM Label
35+
run: |
36+
# Approve and merge pull-request with no reviews
37+
for p in $pr_list; do
38+
echo "Adding lgtm label to PR $p"
39+
gh pr edit $p --add-label "lgtm" || true
40+
done
41+
env:
42+
pr_list: ${{ steps.list-prs.outputs.pr_list }}
43+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
- name: Merging PRs
45+
run: |
46+
# Approve and merge pull-request with no reviews
47+
for p in $pr_list; do
48+
echo "Merging PR $p"
2449
gh pr merge --rebase --delete-branch --auto $p
2550
done
2651
env:
52+
pr_list: ${{ steps.list-prs.outputs.pr_list }}
2753
GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }}
28-

.github/workflows/update-sources.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
# Generated for Konflux Application openshift-pipelines-core by openshift-pipelines/hack. DO NOT EDIT
2-
name: update-sources-pac-downstream
2+
name: update-sources
33
on:
44
workflow_dispatch: {}
5-
schedule:
6-
- cron: "0 1 * * *" # At 1:00 everyday
75

86
jobs:
9-
107
update-sources:
118
runs-on: ubuntu-latest
129
permissions:

.tekton/pac-downstream-next-cli-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: PipelineRun
44
metadata:
55
annotations:
66
pipelinesascode.tekton.dev/cancel-in-progress: "true" # Cancel in-progress pipelines
7-
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/main/.tekton/docker-build-ta.yaml"
7+
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/next/.tekton/docker-build-ta.yaml"
88
build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/pac-downstream.git?rev={{revision}}
99
build.appstudio.redhat.com/commit_sha: '{{revision}}'
1010
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'

.tekton/pac-downstream-next-cli-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: PipelineRun
44
metadata:
55
annotations:
66
pipelinesascode.tekton.dev/cancel-in-progress: "true" # Cancel in-progress pipelines
7-
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/main/.tekton/docker-build-ta.yaml"
7+
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/next/.tekton/docker-build-ta.yaml"
88
build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/pac-downstream.git?rev={{revision}}
99
build.appstudio.redhat.com/commit_sha: '{{revision}}'
1010
build.appstudio.redhat.com/target_branch: '{{target_branch}}'

.tekton/pac-downstream-next-controller-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: PipelineRun
44
metadata:
55
annotations:
66
pipelinesascode.tekton.dev/cancel-in-progress: "true" # Cancel in-progress pipelines
7-
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/main/.tekton/docker-build-ta.yaml"
7+
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/next/.tekton/docker-build-ta.yaml"
88
build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/pac-downstream.git?rev={{revision}}
99
build.appstudio.redhat.com/commit_sha: '{{revision}}'
1010
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'

.tekton/pac-downstream-next-controller-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: PipelineRun
44
metadata:
55
annotations:
66
pipelinesascode.tekton.dev/cancel-in-progress: "true" # Cancel in-progress pipelines
7-
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/main/.tekton/docker-build-ta.yaml"
7+
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/next/.tekton/docker-build-ta.yaml"
88
build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/pac-downstream.git?rev={{revision}}
99
build.appstudio.redhat.com/commit_sha: '{{revision}}'
1010
build.appstudio.redhat.com/target_branch: '{{target_branch}}'

.tekton/pac-downstream-next-watcher-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: PipelineRun
44
metadata:
55
annotations:
66
pipelinesascode.tekton.dev/cancel-in-progress: "true" # Cancel in-progress pipelines
7-
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/main/.tekton/docker-build-ta.yaml"
7+
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/next/.tekton/docker-build-ta.yaml"
88
build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/pac-downstream.git?rev={{revision}}
99
build.appstudio.redhat.com/commit_sha: '{{revision}}'
1010
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'

.tekton/pac-downstream-next-watcher-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: PipelineRun
44
metadata:
55
annotations:
66
pipelinesascode.tekton.dev/cancel-in-progress: "true" # Cancel in-progress pipelines
7-
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/main/.tekton/docker-build-ta.yaml"
7+
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/next/.tekton/docker-build-ta.yaml"
88
build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/pac-downstream.git?rev={{revision}}
99
build.appstudio.redhat.com/commit_sha: '{{revision}}'
1010
build.appstudio.redhat.com/target_branch: '{{target_branch}}'

.tekton/pac-downstream-next-webhook-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: PipelineRun
44
metadata:
55
annotations:
66
pipelinesascode.tekton.dev/cancel-in-progress: "true" # Cancel in-progress pipelines
7-
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/main/.tekton/docker-build-ta.yaml"
7+
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/next/.tekton/docker-build-ta.yaml"
88
build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/pac-downstream.git?rev={{revision}}
99
build.appstudio.redhat.com/commit_sha: '{{revision}}'
1010
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}'

.tekton/pac-downstream-next-webhook-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: PipelineRun
44
metadata:
55
annotations:
66
pipelinesascode.tekton.dev/cancel-in-progress: "true" # Cancel in-progress pipelines
7-
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/main/.tekton/docker-build-ta.yaml"
7+
pipelinesascode.tekton.dev/pipeline: "https://raw.githubusercontent.com/openshift-pipelines/operator/refs/heads/next/.tekton/docker-build-ta.yaml"
88
build.appstudio.openshift.io/repo: https://github.com/openshift-pipelines/pac-downstream.git?rev={{revision}}
99
build.appstudio.redhat.com/commit_sha: '{{revision}}'
1010
build.appstudio.redhat.com/target_branch: '{{target_branch}}'

0 commit comments

Comments
 (0)