mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-19 10:12:54 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
8372dad929 | |||
edd180a8f5 |
@ -1,5 +1,10 @@
|
||||
# Changelog
|
||||
|
||||
## [v0.4.1](https://gitea.com/gitea/tea/releases/tag/v0.4.1) - 2020-09-13
|
||||
|
||||
* BUGFIXES
|
||||
* Notification don't relay on a repo (#159)
|
||||
|
||||
## [v0.4.0](https://gitea.com/gitea/tea/pulls?q=&type=all&state=closed&milestone=1264) - 2020-07-18
|
||||
|
||||
* FEATURES
|
||||
|
@ -197,6 +197,9 @@ func curGitRepoPath(path string) (*Login, string, error) {
|
||||
} else {
|
||||
repo, err = git.RepoFromPath(path)
|
||||
}
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
gitConfig, err := repo.Config()
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
|
@ -46,9 +46,6 @@ var CmdNotifications = cli.Command{
|
||||
}
|
||||
|
||||
func runNotifications(ctx *cli.Context) error {
|
||||
login, owner, repo := initCommand()
|
||||
|
||||
client := login.Client()
|
||||
var news []*gitea.NotificationThread
|
||||
var err error
|
||||
|
||||
@ -58,11 +55,13 @@ func runNotifications(ctx *cli.Context) error {
|
||||
}
|
||||
|
||||
if ctx.Bool("all") {
|
||||
news, err = client.ListNotifications(gitea.ListNotificationOptions{
|
||||
login := initCommandLoginOnly()
|
||||
news, err = login.Client().ListNotifications(gitea.ListNotificationOptions{
|
||||
ListOptions: listOpts,
|
||||
})
|
||||
} else {
|
||||
news, err = client.ListRepoNotifications(owner, repo, gitea.ListNotificationOptions{
|
||||
login, owner, repo := initCommand()
|
||||
news, err = login.Client().ListRepoNotifications(owner, repo, gitea.ListNotificationOptions{
|
||||
ListOptions: listOpts,
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user