OSDN Git Service

Link issues from comments and automatically close them
authorash wilson <smashwilson@gmail.com>
Thu, 30 May 2013 23:16:49 +0000 (23:16 +0000)
committerAsh Wilson <smashwilson@gmail.com>
Sun, 25 Aug 2013 22:58:41 +0000 (18:58 -0400)
commitc8a115c0e3a9c8242c2a422572d47a49e0cb2874
tree5a36c3e0f364fdfb710e01090fc81b9676ea53c4
parent2b36dee64485062c69779217d4a202e5ca1b67bd
Link issues from comments and automatically close them

Any mention of Issues, MergeRequests, or Commits via GitLab-flavored markdown
references in descriptions, titles, or attached Notes creates a back-reference
Note that links to the original referencer. Furthermore, pushing commits with
commit messages that match a (configurable) regexp to a project's default
branch will close any issues mentioned by GFM in the matched closing phrase.
If accepting a merge request would close any Issues in this way, a banner is
appended to the merge request's main panel to indicate this.
32 files changed:
CHANGELOG
app/controllers/projects/merge_requests_controller.rb
app/models/commit.rb
app/models/concerns/mentionable.rb
app/models/issue.rb
app/models/merge_request.rb
app/models/note.rb
app/models/repository.rb
app/observers/activity_observer.rb
app/observers/base_observer.rb
app/observers/issue_observer.rb
app/observers/merge_request_observer.rb
app/observers/note_observer.rb
app/services/git_push_service.rb
app/views/projects/merge_requests/show/_mr_box.html.haml
config/gitlab.yml.example
config/initializers/1_settings.rb
db/migrate/20130528184641_add_system_to_notes.rb [new file with mode: 0644]
db/schema.rb
lib/gitlab/reference_extractor.rb [new file with mode: 0644]
spec/lib/gitlab/reference_extractor_spec.rb [new file with mode: 0644]
spec/models/commit_spec.rb
spec/models/issue_spec.rb
spec/models/merge_request_spec.rb
spec/models/note_spec.rb
spec/observers/activity_observer_spec.rb
spec/observers/issue_observer_spec.rb
spec/observers/merge_request_observer_spec.rb
spec/observers/note_observer_spec.rb
spec/services/git_push_service_spec.rb
spec/support/login_helpers.rb
spec/support/mentionable_shared_examples.rb [new file with mode: 0644]