🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

fix(github/action): discover nested Gitea/Forgejo workflows - #11510

Merged
olblak merged 2 commits into
updatecli:mainfrom
ldbs:fix/nested-forgejo-workflows
Nov 26, 2026
Merged

olblak merged 2 commits into
updatecli:mainfrom
ldbs:fix/nested-forgejo-workflows

Conversation

@ldbs

@ldbs ldbs commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Updatecli skips .forgejo/workflows/e2e/github.yml because it only matches files directly inside workflows.

The crawler now finds workflows in subdirectories of .gitea/workflows and .forgejo/workflows when rootdir is unset or relative to the checkout. It still skips subdirectories of .github/workflows.

Test

To test this pull request, you can run the following commands:

go test -short -race ./pkg/plugins/autodiscovery/githubaction ./pkg/core/pipeline/autodiscovery

Additional Information

Checklist

  • I have updated the documentation via pull request in website repository.
  • I have tested this pull request manually with a custom Updatecli build and it works as expected.

Summary by CodeRabbit

  • New Features
    • Workflow discovery now includes files in nested directories under Gitea and Forgejo workflow folders, subject to the configured search root. GitHub workflow discovery remains limited to files directly inside its workflow folder.
  • Documentation
    • Clarified that filename patterns are matched against workflow filenames and described the directory search behavior for GitHub, Gitea, and Forgejo.

Signed-off-by: Louis Dubois <louis@ldbs.net>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c5206a56-a24d-42c0-8bac-3485ce908eb5
Commits

Reviewing files that changed from the base of the PR and between 53ec417 and 54c43bf.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

Workflow autodiscovery now includes eligible nested Gitea and Forgejo workflow files. GitHub workflow discovery remains limited to files directly inside a workflows directory. The documentation and tests describe and check these search rules.

Changes: Workflow Discovery

Layer / File(s) Summary
Nested workflow search
pkg/plugins/autodiscovery/githubaction/main.go, pkg/plugins/autodiscovery/githubaction/utils.go, pkg/plugins/autodiscovery/githubaction/utils_test.go
The search logic includes local regular files nested under Gitea and Forgejo workflow directories, but not nested GitHub files. Documentation clarifies the search rules. Tests check discovery with empty and nested root directories.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: olblak

Merge Risk: Minimal · previous review 53ec4

Autodiscovery now finds nested Gitea and Forgejo workflow files while GitHub discovery stays unchanged. No merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: nested Gitea and Forgejo workflow files are now discovered. The change in utils.go adds nested discovery under .gitea/workflows and .forgejo/workflows, and the tests c…
Description check Passed The description states the problem (.forgejo/workflows/e2e/github.yml is skipped), the behavior change (nested discovery under .gitea/workflows and .forgejo/workflows when rootdir is unset or relative…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: nested Gitea and Forgejo workflow files are now discovered. The change in utils.go adds nested discovery under .gitea/workflows and .forgejo/workflows, and the tests cover it. The title uses the conventional fix(scope) form and is specific, so it passes.

Full details: Description check

Explanation

The description states the problem (.forgejo/workflows/e2e/github.yml is skipped), the behavior change (nested discovery under .gitea/workflows and .forgejo/workflows when rootdir is unset or relative, with .github/workflows subdirectories still excluded), a test command, and a checked manual-testing box. It omits the 'Fix #XXX' issue reference from the template and the Tradeoff and Potential improvement sections. The documentation checkbox is unchecked, which is acceptable because it is conditional. Those gaps are non-critical, so the description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 18914149-0aa8-480a-aaa2-fb7e44722c83
Commits

Reviewing files that changed from the base of the PR and between 1e3484b and 53ec417.

Files selected for processing: 3

  • pkg/plugins/autodiscovery/githubaction/main.go
  • pkg/plugins/autodiscovery/githubaction/utils.go
  • pkg/plugins/autodiscovery/githubaction/utils_test.go

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@olblak olblak added the bug Something isn't working label Nov 26, 2026
@olblak
olblak enabled auto-merge (squash) November 26, 2026 19:32
@olblak
olblak merged commit 5e4c716 into updatecli:main Nov 26, 2026
8 checks passed
@ldbs
ldbs deleted the fix/nested-forgejo-workflows branch November 26, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants