-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Add activity feeds API #23494
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
Merged
Merged
Add activity feeds API #23494
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
9ecd197
add user activity feed api
Zettat123 162efae
fix date format
Zettat123 8da6120
fmt
Zettat123 722f410
fix typo
Zettat123 91aad69
add ListTeamActivityFeeds
Zettat123 244fd0e
update swagger
Zettat123 3c43443
add ListRepoActivityFeeds
Zettat123 70a6348
add OpType string
Zettat123 4e518f3
add ListOrgActivityFeeds
Zettat123 2eb0930
fix org membership check
Zettat123 2af7403
add 404 response
Zettat123 7be455d
update swagger
Zettat123 b47877c
add user activity feed api
Zettat123 17e80fb
fix date format
Zettat123 58c3029
fmt
Zettat123 bc546ed
fix typo
Zettat123 6887682
add ListTeamActivityFeeds
Zettat123 4d530cf
update swagger
Zettat123 0939e1c
add ListRepoActivityFeeds
Zettat123 5b0ce95
add OpType string
Zettat123 6a7c7dc
add ListOrgActivityFeeds
Zettat123 7f9ea9d
fix org membership check
Zettat123 5744f6d
add 404 response
Zettat123 3a5ece5
update swagger
Zettat123 52d96b8
Merge branch 'feat/activity-feed-api' of github.com:Zettat123/gitea i…
Zettat123 7693df8
use lower case action name
Zettat123 c086ffb
improve routers
Zettat123 130b3ea
remove empty line
Zettat123 9939acb
add separator
Zettat123 b824e7c
Merge branch 'main' into feat/activity-feed-api
lunny File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2023 The Gitea Authors. All rights reserved. | ||
// SPDX-License-Identifier: MIT | ||
|
||
package structs | ||
|
||
import "time" | ||
|
||
type Activity struct { | ||
ID int64 `json:"id"` | ||
UserID int64 `json:"user_id"` // Receiver user | ||
OpType string `json:"op_type"` | ||
ActUserID int64 `json:"act_user_id"` | ||
ActUser *User `json:"act_user"` | ||
RepoID int64 `json:"repo_id"` | ||
Repo *Repository `json:"repo"` | ||
CommentID int64 `json:"comment_id"` | ||
Comment *Comment `json:"comment"` | ||
RefName string `json:"ref_name"` | ||
IsPrivate bool `json:"is_private"` | ||
Content string `json:"content"` | ||
Created time.Time `json:"created"` | ||
} |
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright 2023 The Gitea Authors. All rights reserved. | ||
// SPDX-License-Identifier: MIT | ||
|
||
package swagger | ||
|
||
import ( | ||
api "code.gitea.io/gitea/modules/structs" | ||
) | ||
|
||
// ActivityFeedsList | ||
// swagger:response ActivityFeedsList | ||
type swaggerActivityFeedsList struct { | ||
// in:body | ||
Body []api.Activity `json:"body"` | ||
} |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.