Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from go-gitea:main #57

Merged
merged 24 commits into from
Aug 3, 2024
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d109923
Make GetRepositoryByName more safer (#31712)
lunny Jul 29, 2024
e0a408e
Add permission check when creating PR (#31033)
yp05327 Jul 29, 2024
7b38863
Fix loadRepository error when access user dashboard (#31719)
yp05327 Jul 29, 2024
bf5ae79
Fix API endpoint for registration-token (#31722)
wolfogre Jul 29, 2024
d39bce7
fix(api): owner ID should be zero when created repo secret (#31715)
appleboy Jul 29, 2024
81fa471
Set owner id to zero when GetRegistrationToken for repo (#31725)
wolfogre Jul 29, 2024
f989f46
Move `registerActionsCleanup` to `initActionsTasks` (#31721)
wolfogre Jul 30, 2024
0a11bce
Fix Null Pointer error for CommitStatusesHideActionsURL (#31731)
yp05327 Jul 30, 2024
75d0b61
Fix the display of project type for deleted projects (#31732)
yp05327 Jul 30, 2024
666c2b2
[skip ci] Updated translations via Crowdin
GiteaBot Jul 31, 2024
9ac57c9
Improve names of cron jobs for Actions (#31736)
wolfogre Jul 31, 2024
09b56fc
Distinguish LFS object errors to ignore missing objects during migrat…
wolfogre Jul 31, 2024
7674eaf
[skip ci] Updated translations via Crowdin
GiteaBot Aug 1, 2024
9e31b22
Exclude protected branches from recently pushed (#31748)
wolfogre Aug 1, 2024
a33e74d
Clarify Actions resources ownership (#31724)
wolfogre Aug 1, 2024
333c9ed
Add permission description for API to add repo collaborator (#31744)
wolfogre Aug 1, 2024
21a73ae
Use UTC as default timezone when schedule Actions cron tasks (#31742)
wolfogre Aug 1, 2024
d128352
bump vue-bar-graph (#31705)
techknowlogick Aug 1, 2024
e367835
Fix createElementFromAttrs bug (#31751)
wxiaoguang Aug 1, 2024
687c118
Clear up old Actions logs (#31735)
wolfogre Aug 2, 2024
0e3d8f8
Remove unused code from models/repos/release.go (#31756)
kemzeb Aug 2, 2024
237b981
Upgrade bleve to 2.4.2 (#31762)
lunny Aug 2, 2024
13439f1
Update JS dependencies (#31766)
silverwind Aug 2, 2024
2a1ed0c
[skip ci] Updated translations via Crowdin
GiteaBot Aug 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Null Pointer error for CommitStatusesHideActionsURL (go-gitea#31731)
yp05327 authored Jul 30, 2024
commit 0a11bce87f07233d5f02554b8f3b4a2aabd37769
4 changes: 4 additions & 0 deletions models/git/commit_status.go
Original file line number Diff line number Diff line change
@@ -541,6 +541,10 @@ func ConvertFromGitCommit(ctx context.Context, commits []*git.Commit, repo *repo
func CommitStatusesHideActionsURL(ctx context.Context, statuses []*CommitStatus) {
idToRepos := make(map[int64]*repo_model.Repository)
for _, status := range statuses {
if status == nil {
continue
}

if status.Repo == nil {
status.Repo = idToRepos[status.RepoID]
}