Skip to content

Commit 5fdeca7

Browse files
author
openshift-pipelines-bot
committed
Update automerge workflow for nudges and add index catalogs
1 parent f96e7c7 commit 5fdeca7

File tree

17 files changed

+57942
-49
lines changed

17 files changed

+57942
-49
lines changed
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
# Generated for Release main by openshift-pipelines/hack. DO NOT EDIT.
12
name: auto-approve-konflux-nudges
23

34
on:
45
workflow_dispatch: {}
56
schedule:
6-
- cron: "*/30 * * * *" # At every 30 minutes
7+
- cron: "0,30 * * * *" # At every 30 minutes
78

89
jobs:
910
auto-approve:
@@ -14,18 +15,15 @@ jobs:
1415
steps:
1516
- name: Checkout the current repo
1617
uses: actions/checkout@v4
17-
- name: auto-approve
18+
- name: auto-merge-update-references
1819
run: |
1920
gh auth status
2021
git config user.name openshift-pipelines-bot
2122
git config user.email [email protected]
2223
# Approve and merge pull-request with no reviews
23-
for p in $(gh pr list --search "author:app/red-hat-konflux chore(deps) .*" --json "title,labels,number" | jq ".[] | select((.labels | length) == 0) | .number"); do
24-
gh pr review $p --approve --body "/lgtm"
25-
done
26-
# LGTM pull requests that might have one review but no more lgtm
27-
for p in $(gh pr list --search "author:app/red-hat-konflux chore(deps) .*" --json "title,labels,number" | jq ".[] | select((.labels | length) == 1) | .number"); do
28-
gh pr review $p --approve --body "/lgtm"
24+
for p in $(gh pr list --search "label:konflux-nudge" --json "number" | jq ".[].number"); do
25+
gh pr review --approve --body "/lgtm" $p
26+
gh pr merge --rebase --delete-branch --auto $p
2927
done
3028
env:
31-
GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }}
29+
GH_TOKEN: ${{ secrets.OPENSHIFT_PIPELINES_ROBOT }}

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

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM registry.redhat.io/openshift4/ose-operator-registry-rhel9:v4.17
2+
3+
ENTRYPOINT ["/bin/opm"]
4+
CMD ["serve", "/configs", "--cache-dir=/tmp/cache"]
5+
6+
COPY .konflux/olm-catalog/index/v4.17/catalog/ /configs
7+
RUN ["/bin/opm", "serve", "/configs", "--cache-dir=/tmp/cache", "--cache-only"]
8+
9+
# Core bundle labels.
10+
11+
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
12+
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
13+
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
14+
LABEL operators.operatorframework.io.bundle.package.v1=openshift-pipelines-operator-rh
15+
LABEL operators.operatorframework.io.bundle.channel.default.v1="pipelines-main"
16+
LABEL operators.operatorframework.io.bundle.channels.v1="pipelines-main"
17+
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.37.0
18+
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
19+
LABEL operators.operatorframework.io.index.configs.v1=/configs

.konflux/olm-catalog/index/v4.12/catalog-template.json

Lines changed: 248 additions & 0 deletions
Large diffs are not rendered by default.

.konflux/olm-catalog/index/v4.12/catalog/openshift-pipelines-operator-rh/catalog.json

Lines changed: 11320 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM registry.redhat.io/openshift4/ose-operator-registry-rhel9:v4.17
2+
3+
ENTRYPOINT ["/bin/opm"]
4+
CMD ["serve", "/configs", "--cache-dir=/tmp/cache"]
5+
6+
COPY .konflux/olm-catalog/index/v4.17/catalog/ /configs
7+
RUN ["/bin/opm", "serve", "/configs", "--cache-dir=/tmp/cache", "--cache-only"]
8+
9+
# Core bundle labels.
10+
11+
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
12+
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
13+
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
14+
LABEL operators.operatorframework.io.bundle.package.v1=openshift-pipelines-operator-rh
15+
LABEL operators.operatorframework.io.bundle.channel.default.v1="pipelines-main"
16+
LABEL operators.operatorframework.io.bundle.channels.v1="pipelines-main"
17+
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.37.0
18+
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
19+
LABEL operators.operatorframework.io.index.configs.v1=/configs

0 commit comments

Comments
 (0)