ci: 🚀 track-downloads schedules auto-merge when checks are required #201

Merged
goern merged 0 commits from refs/pull/201/head into main 2026-06-02 15:48:15 +00:00
goern commented 2026-06-02 15:45:32 +00:00 (Migrated from codeberg.org)

What

Follow-up to #198. A live workflow_dispatch (run #249) exposed a bug: goern/main requires Tekton status checks, so the workflow's immediate merge curl returns HTTP 405 while checks are pending → curl -fsS fails the job and leaves an orphaned bot PR open (this is what happened to #199).

Fix

Merge step now:

  1. tries an immediate merge (fast path on instances with no required checks), and
  2. falls back to Forgejo's scheduled auto-merge (merge_when_checks_succeed) so the snapshot PR lands unattended once checks pass and the job exits 0.

Verification

This rework was validated live — the equivalent scheduled-merge call cleared #198 and #199 once their Tekton checks went green.

## What Follow-up to #198. A live `workflow_dispatch` (run #249) exposed a bug: `goern/main` requires Tekton status checks, so the workflow's **immediate** merge `curl` returns **HTTP 405** while checks are pending → `curl -fsS` fails the job and leaves an orphaned bot PR open (this is what happened to #199). ## Fix Merge step now: 1. tries an immediate merge (fast path on instances with no required checks), and 2. falls back to Forgejo's **scheduled auto-merge** (`merge_when_checks_succeed`) so the snapshot PR lands unattended once checks pass and the job exits 0. ## Verification This rework was validated live — the equivalent scheduled-merge call cleared #198 and #199 once their Tekton checks went green.
op1st-gitops commented 2026-06-02 15:46:18 +00:00 (Migrated from codeberg.org)

op1st Pipelines as Code/forgejo-mcp-code-scans-ctzfr is running.

Starting Pipelinerun forgejo-mcp-code-scans-ctzfr in namespace op1st-pipelines

You can monitor the execution using the op1st Pipelines as Code PipelineRun viewer or through the command line by
using the tkn CLI with the following command:

tkn pr logs -n op1st-pipelines forgejo-mcp-code-scans-ctzfr -f

op1st Pipelines as Code/forgejo-mcp-code-scans-ctzfr is running. Starting Pipelinerun <b>[forgejo-mcp-code-scans-ctzfr](https://console-openshift-console.apps.nostromo.erdgeschoss.b4mad.emea.operate-first.cloud/k8s/ns/op1st-pipelines/tekton.dev~v1~PipelineRun/forgejo-mcp-code-scans-ctzfr)</b> in namespace <b>op1st-pipelines</b> You can monitor the execution using the [op1st Pipelines as Code](https://console-openshift-console.apps.nostromo.erdgeschoss.b4mad.emea.operate-first.cloud/k8s/ns/op1st-pipelines/tekton.dev~v1~PipelineRun/forgejo-mcp-code-scans-ctzfr) PipelineRun viewer or through the command line by using the [tkn](https://tekton.dev/docs/cli/#installation) CLI with the following command: <code>tkn pr logs -n op1st-pipelines forgejo-mcp-code-scans-ctzfr -f</code>
op1st-gitops commented 2026-06-02 15:46:18 +00:00 (Migrated from codeberg.org)

op1st Pipelines as Code/forgejo-mcp-on-pull-request-nlhrz is running.

Starting Pipelinerun forgejo-mcp-on-pull-request-nlhrz in namespace op1st-pipelines

You can monitor the execution using the op1st Pipelines as Code PipelineRun viewer or through the command line by
using the tkn CLI with the following command:

tkn pr logs -n op1st-pipelines forgejo-mcp-on-pull-request-nlhrz -f

op1st Pipelines as Code/forgejo-mcp-on-pull-request-nlhrz is running. Starting Pipelinerun <b>[forgejo-mcp-on-pull-request-nlhrz](https://console-openshift-console.apps.nostromo.erdgeschoss.b4mad.emea.operate-first.cloud/k8s/ns/op1st-pipelines/tekton.dev~v1~PipelineRun/forgejo-mcp-on-pull-request-nlhrz)</b> in namespace <b>op1st-pipelines</b> You can monitor the execution using the [op1st Pipelines as Code](https://console-openshift-console.apps.nostromo.erdgeschoss.b4mad.emea.operate-first.cloud/k8s/ns/op1st-pipelines/tekton.dev~v1~PipelineRun/forgejo-mcp-on-pull-request-nlhrz) PipelineRun viewer or through the command line by using the [tkn](https://tekton.dev/docs/cli/#installation) CLI with the following command: <code>tkn pr logs -n op1st-pipelines forgejo-mcp-on-pull-request-nlhrz -f</code>
op1st-gitops commented 2026-06-02 15:46:42 +00:00 (Migrated from codeberg.org)

op1st Pipelines as Code/forgejo-mcp-code-scans-ctzfr has successfully validated your commit.


Task Statuses:

StatusDurationName
Succeeded 13 seconds

fetch-source

Succeeded 15 seconds

gitleaks-version

Succeeded 11 seconds

gitleaks

op1st Pipelines as Code/forgejo-mcp-code-scans-ctzfr has <b>successfully</b> validated your commit. <ul> <li><b>Namespace</b>: <a href="https://detailurl.setting.custom-console-url-namespace.is.not.configured">op1st-pipelines</a></li> <li><b>PipelineRun:</b> <a href="https://console-openshift-console.apps.nostromo.erdgeschoss.b4mad.emea.operate-first.cloud/k8s/ns/op1st-pipelines/tekton.dev~v1~PipelineRun/forgejo-mcp-code-scans-ctzfr">forgejo-mcp-code-scans-ctzfr</a></li> </ul> <hr> <h4>Task Statuses:</h4> <table> <tr><th>Status</th><th>Duration</th><th>Name</th></tr> <tr> <td>Succeeded</td> <td>13 seconds</td><td> [fetch-source](https://console-openshift-console.apps.nostromo.erdgeschoss.b4mad.emea.operate-first.cloud/k8s/ns/op1st-pipelines/tekton.dev~v1~PipelineRun/forgejo-mcp-code-scans-ctzfr/logs/fetch-source) </td></tr> <tr> <td>Succeeded</td> <td>15 seconds</td><td> [gitleaks-version](https://console-openshift-console.apps.nostromo.erdgeschoss.b4mad.emea.operate-first.cloud/k8s/ns/op1st-pipelines/tekton.dev~v1~PipelineRun/forgejo-mcp-code-scans-ctzfr/logs/gitleaks-version) </td></tr> <tr> <td>Succeeded</td> <td>11 seconds</td><td> [gitleaks](https://console-openshift-console.apps.nostromo.erdgeschoss.b4mad.emea.operate-first.cloud/k8s/ns/op1st-pipelines/tekton.dev~v1~PipelineRun/forgejo-mcp-code-scans-ctzfr/logs/gitleaks) </td></tr> </table>
op1st-gitops commented 2026-06-02 15:48:10 +00:00 (Migrated from codeberg.org)

op1st Pipelines as Code/forgejo-mcp-on-pull-request-nlhrz has successfully validated your commit.


Task Statuses:

StatusDurationName
Succeeded 12 seconds

fetch-source

Succeeded 1 minute

build-and-test

Succeeded 15 seconds

commit-title-check

op1st Pipelines as Code/forgejo-mcp-on-pull-request-nlhrz has <b>successfully</b> validated your commit. <ul> <li><b>Namespace</b>: <a href="https://detailurl.setting.custom-console-url-namespace.is.not.configured">op1st-pipelines</a></li> <li><b>PipelineRun:</b> <a href="https://console-openshift-console.apps.nostromo.erdgeschoss.b4mad.emea.operate-first.cloud/k8s/ns/op1st-pipelines/tekton.dev~v1~PipelineRun/forgejo-mcp-on-pull-request-nlhrz">forgejo-mcp-on-pull-request-nlhrz</a></li> </ul> <hr> <h4>Task Statuses:</h4> <table> <tr><th>Status</th><th>Duration</th><th>Name</th></tr> <tr> <td>Succeeded</td> <td>12 seconds</td><td> [fetch-source](https://console-openshift-console.apps.nostromo.erdgeschoss.b4mad.emea.operate-first.cloud/k8s/ns/op1st-pipelines/tekton.dev~v1~PipelineRun/forgejo-mcp-on-pull-request-nlhrz/logs/fetch-source) </td></tr> <tr> <td>Succeeded</td> <td>1 minute</td><td> [build-and-test](https://console-openshift-console.apps.nostromo.erdgeschoss.b4mad.emea.operate-first.cloud/k8s/ns/op1st-pipelines/tekton.dev~v1~PipelineRun/forgejo-mcp-on-pull-request-nlhrz/logs/build-and-test) </td></tr> <tr> <td>Succeeded</td> <td>15 seconds</td><td> [commit-title-check](https://console-openshift-console.apps.nostromo.erdgeschoss.b4mad.emea.operate-first.cloud/k8s/ns/op1st-pipelines/tekton.dev~v1~PipelineRun/forgejo-mcp-on-pull-request-nlhrz/logs/commit-title-check) </td></tr> </table>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
agentic-forges/forgejo-mcp!201
No description provided.