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
…-ignore` filter (#23920)
Remove the misbehaving function and call
Repository.GetFilesChangedBetween instead.
Fixes#23919
---
~~_TODO_ test this~~ `Repository.getFilesChanged` seems to be only used
by Gitea Actions, but a similar function already exists
**Update** I tested this change and the issue is gone.
…-ignore` filter (go-gitea#23920)
Remove the misbehaving function and call
Repository.GetFilesChangedBetween instead.
Fixesgo-gitea#23919
---
~~_TODO_ test this~~ `Repository.getFilesChanged` seems to be only used
by Gitea Actions, but a similar function already exists
**Update** I tested this change and the issue is gone.
…-ignore` filter (#23920) (#23969)
Backport #23920 by @ChristopherHX
Remove the misbehaving function and call
Repository.GetFilesChangedBetween instead.
Fixes#23919
---
~~_TODO_ test this~~ `Repository.getFilesChanged` seems to be only used
by Gitea Actions, but a similar function already exists
**Update** I tested this change and the issue is gone.
Co-authored-by: ChristopherHX <[email protected]>
Description
I wondered why this Gitea Actions workflow is triggered while changing the workflow file
Enable Gitea Actions and add the following file
Add .github/workflows/main.yml
I expect that the workflow doesn't trigger unless I add a file without .yml extension
Workaround exclude the empty filepath
I tracked the bug down to this function:
gitea/modules/git/repo_commit.go
Line 190 in c775053
Callstack
gitea/modules/actions/workflows.go
Line 211 in d149093
gitea/modules/git/commit.go
Lines 293 to 295 in 6b0df6d
Based on comment in another very similar function (without this bug)
gitea/modules/git/repo_compare.go
Line 290 in 6b0df6d
the empty filepath should be removed by the function before returning the path.
Furthermore it looks like these functions are duplicated, one bugfree and the other not.
Gitea Version
1.19.0+53-gdff3ce089
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
2.17.1
Operating System
Linux
How are you running Gitea?
I just downloaded https://dl.gitea.com/gitea/1.19/gitea-1.19-linux-arm64.xz and enabled actions for testing purposes.
Database
SQLite
The text was updated successfully, but these errors were encountered: