You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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.
Autodiscovery now finds nested Gitea and Forgejo workflow files while GitHub discovery stays unchanged. No merge-blocking risk was identified.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
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
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
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.
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updatecli skips
.forgejo/workflows/e2e/github.ymlbecause it only matches files directly insideworkflows.The crawler now finds workflows in subdirectories of
.gitea/workflowsand.forgejo/workflowswhenrootdiris 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/autodiscoveryAdditional Information
Checklist
Summary by CodeRabbit