Skip to content

Fix sender of issue notifications#2

Merged
lunny merged 1 commit into
go-gitea:developfrom
strk:proper-from-on-issue-mail
Nov 3, 2016
Merged

Fix sender of issue notifications#2
lunny merged 1 commit into
go-gitea:developfrom
strk:proper-from-on-issue-mail

Conversation

@strk

@strk strk commented Nov 2, 2016

Copy link
Copy Markdown
Member

It is the FROM field in mailer configuration that needs be used,
not the USER field, which is for authentication.

Migrated from gogs/gogs#3616

@tboerger

tboerger commented Nov 2, 2016

Copy link
Copy Markdown
Member

LGTM, but needs to be rebased.

@tboerger tboerger added this to the 1.0.0 milestone Nov 2, 2016
@strk strk force-pushed the proper-from-on-issue-mail branch 2 times, most recently from fb4a8e6 to 20c1740 Compare November 2, 2016 19:25
@strk

strk commented Nov 2, 2016

Copy link
Copy Markdown
Member Author

Sorry, I'm confused, should this target develop or master branch ?

@bkcsoft

bkcsoft commented Nov 2, 2016

Copy link
Copy Markdown
Contributor

according to consensus in Gitter, it should go into master 🙂

@joubertredrat

Copy link
Copy Markdown
Contributor

@bkcsoft 😱 is possible to change target or only with new PR?

@bkcsoft

bkcsoft commented Nov 2, 2016

Copy link
Copy Markdown
Contributor

The others that has been merged targeted develop, so leave it at that :)

It is the FROM field in mailer configuration that needs be used,
not the USER field, which is for authentication.

Closes gogs#3615
@strk strk force-pushed the proper-from-on-issue-mail branch from 20c1740 to af03d00 Compare November 2, 2016 20:01
Comment thread .gopmfile
github.com/satori/go.uuid = commit:0aa62d5
github.com/sergi/go-diff = commit:ec7fdbb
github.com/strk/go-libravatar = commit:5eed7bf
strk.kbt.io/projects/go/libravatar = commit:5eed7bf

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to this pr

@strk strk changed the base branch from master to develop November 2, 2016 20:10
@strk

strk commented Nov 2, 2016

Copy link
Copy Markdown
Member Author

It was a bogus base (master) -- now based on develop branch, should be fine.

@tboerger

tboerger commented Nov 2, 2016

Copy link
Copy Markdown
Member

LGTM

@andreynering

Copy link
Copy Markdown
Contributor

Please reopen this against master

@lunny

lunny commented Nov 3, 2016

Copy link
Copy Markdown
Member

LGTM

@lunny lunny merged commit d8de2be into go-gitea:develop Nov 3, 2016
@strk strk deleted the proper-from-on-issue-mail branch November 3, 2016 16:04
@tboerger tboerger added the lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. label Nov 29, 2016
aqtrans referenced this pull request in aqtrans/gitea Nov 20, 2019
CloneAddr was being used as OriginalURL.
Now passing OriginalURL through from the form and saving it.
6543 referenced this pull request in 6543-forks/gitea Feb 8, 2020
* 6543 suggestions

* fix
6543 referenced this pull request in 6543-forks/gitea Apr 10, 2020
lunny added a commit that referenced this pull request Apr 19, 2020
* First stab at a Gitlab migrations interface.

* Modify JS to show migration for Gitlab

* Properly strip out #gitlab tag from repo name

* Working Gitlab migrations!
Still need to figure out how to hide tokens/etc from showing up in opts.CloneAddr

* Try #2 at trying to hide credentials.
CloneAddr was being used as OriginalURL.
Now passing OriginalURL through from the form and saving it.

* Add go-gitlab dependency

* Vendor go-gitlab

* Use gitlab.BasicAuthClient
Correct CloneURL.
This should be functioning!
Previous commits fixed "Migrated from"
from including the migration credentials.

* Replaced repoPath with repoID globally.
RepoID is grabbed in NewGitlabDownloader

* Logging touchup

* Properly set private repo status.
Properly set milestone deadline time.
Consistently use Gitlab username for 'Name'.

* Add go-gitlab vendor cache

* Fix PR migrations:
- Count of issues is kept to set a non-conflicting PR.ID
- Bool is used to tell whether to fetch Issue or PR comments

* Ensure merged PRs are closed and set with the proper time

* Remove copyright and some commented code

* Rip out '#gitlab' based self-hosted Gitlab support

* Hide given credentials for migrated repos.

CloneAddr was being saved as OriginalURL.

Now passing OriginalURL through from the form and
saving it in it's place

* Use asset.URL directly, no point in parsing.
Opened PRs should fall through to false.

* Fix importing Milestones.
Allow importing using Personal Tokens or anonymous access.

* Fix Gitlab Milestone migration if DueDate isn't set

* Empty Milestone due dates properly return nil, not zero time

* Add GITLAB_READ_TOKEN to drone unit-test step

* Add working gitlab_test.go.
A Personal Access Token, given in env variable GITLAB_READ_TOKEN
is required to run the test.

* Fix linting issues

* Add modified JS files

* Remove pre-build JS files

* Only merged PRs are marged as merged/closed

* Test topics

* Skip test if gitlab is inaccessible

* Grab personal token from username, not password.
Matches Github migration implementation

* Add SetContext() to GitlabDownloader.

* Checking Updated field in Issues.

* Actually fetch Issue Updated time from Gitlab

* Add Gitlab migration GetReviews() stub

* Fix Patch and Clone URLs

* check Updated too

* fix mod

* make vendor with go1.14

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
@somera somera mentioned this pull request Jun 18, 2020
7 tasks
ydelafollye pushed a commit to ydelafollye/gitea that referenced this pull request Jul 31, 2020
* First stab at a Gitlab migrations interface.

* Modify JS to show migration for Gitlab

* Properly strip out #gitlab tag from repo name

* Working Gitlab migrations!
Still need to figure out how to hide tokens/etc from showing up in opts.CloneAddr

* Try go-gitea#2 at trying to hide credentials.
CloneAddr was being used as OriginalURL.
Now passing OriginalURL through from the form and saving it.

* Add go-gitlab dependency

* Vendor go-gitlab

* Use gitlab.BasicAuthClient
Correct CloneURL.
This should be functioning!
Previous commits fixed "Migrated from"
from including the migration credentials.

* Replaced repoPath with repoID globally.
RepoID is grabbed in NewGitlabDownloader

* Logging touchup

* Properly set private repo status.
Properly set milestone deadline time.
Consistently use Gitlab username for 'Name'.

* Add go-gitlab vendor cache

* Fix PR migrations:
- Count of issues is kept to set a non-conflicting PR.ID
- Bool is used to tell whether to fetch Issue or PR comments

* Ensure merged PRs are closed and set with the proper time

* Remove copyright and some commented code

* Rip out '#gitlab' based self-hosted Gitlab support

* Hide given credentials for migrated repos.

CloneAddr was being saved as OriginalURL.

Now passing OriginalURL through from the form and
saving it in it's place

* Use asset.URL directly, no point in parsing.
Opened PRs should fall through to false.

* Fix importing Milestones.
Allow importing using Personal Tokens or anonymous access.

* Fix Gitlab Milestone migration if DueDate isn't set

* Empty Milestone due dates properly return nil, not zero time

* Add GITLAB_READ_TOKEN to drone unit-test step

* Add working gitlab_test.go.
A Personal Access Token, given in env variable GITLAB_READ_TOKEN
is required to run the test.

* Fix linting issues

* Add modified JS files

* Remove pre-build JS files

* Only merged PRs are marged as merged/closed

* Test topics

* Skip test if gitlab is inaccessible

* Grab personal token from username, not password.
Matches Github migration implementation

* Add SetContext() to GitlabDownloader.

* Checking Updated field in Issues.

* Actually fetch Issue Updated time from Gitlab

* Add Gitlab migration GetReviews() stub

* Fix Patch and Clone URLs

* check Updated too

* fix mod

* make vendor with go1.14

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
silverwind referenced this pull request in silverwind/gitea Aug 26, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants