Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-02-08Create directly_addressed Todos when mentioned in beginning of a lineErshad Kunnakkadan
2017-01-25Use `:empty_project` where possible throughout spec/libRobert Speicher
2016-11-09Merge branch 'issue_23548_dev' into 'master'Douwe Maan
disable markdown in comments when referencing disabled features fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/23548 This MR prevents the following references when tool is disabled: - issues - snippets - commits - when repo is disabled - commit range - when repo is disabled - milestones This MR does not prevent references to repository files, since they are just markdown links and don't leak information. See merge request !2011 Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-06-16Remove JiraIssue model and replace references with ExternalIssueIlan Shamir
2016-03-19Update reference unfolder according to recent ability changesGrzegorz Bizon
Commit 43d8bdb4f048cbeb5675ed9120cb1aeb415b9586 introduced additional checks for permissions to read issue in references extractor.
2016-03-19Merge branch 'master' into feature/issue-moveGrzegorz Bizon
* master: (121 commits) Dedupe labels in labels selector in Dashboard pages Refactor colors and lists Add a safeguard in MergeRequest#compute_diverged_commits_count Fix an issue when the target branch of a MR had been deleted Add avatar to issue and MR pages header Cleanup somce css colors Re-group scss variables Refactor `Todo#target` Fixes issue with filter label missing on labels & milestones Rename `Todo#to_reference` to `Todo#target_reference` Fixed failing tests Updated controller with before_action Fixed other issues based on feedback Fixes issue on dashboard issues Full labels data in JSON Fixed issue with labels dropdown getting wrong labels Update CHANGELOG Use `Note#for_project_snippet?` to skip notes on project snippet Use `Commit#short_id` instead of `Commit.truncate_sha` Reuse `for_commit?` on conditional validations Update schema info comment on todo related files ... Conflicts: app/models/issue.rb db/schema.rb spec/models/issue_spec.rb
2016-03-19Improvements in issue move feaure (refactoring)Grzegorz Bizon
According to endbosses' suggestions.
2016-03-18Restrict access to references for confidential issuesDouglas Barbosa Alexandre
2016-03-17Move reference unfolder for GFM to separate classGrzegorz Bizon
2015-12-18Backport JIRA serviceDrew Blessing
2015-12-09Tag lib specsDouwe Maan
2015-10-13Allow ReferenceExtractor to efficiently load references from multiple texts ↵Douwe Maan
at once
2015-10-07Always allow references to the current projectDouwe Maan
2015-10-07Refactor reference gathering to use a dedicated filterDouwe Maan
2015-08-11Revert "Merge branch 'revert-satellites' into 'master' "Dmitriy Zaporozhets
This reverts commit 5daf44b7c86e0e2641a902b1da8b01d91fa3dbfa, reversing changes made to 2f706fbd231cabe7a76a5d17ac44285aaaf8592c.
2015-08-11Revert "Merge branch 'drop-satellites'"Dmitriy Zaporozhets
This reverts commit 957e849f41d96fa9778fcdd06792d2f0274b29ab, reversing changes made to 6b9dbe9f5a175a8162abf296367f561bab3eea1a. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-08-04Improve tests to use real branches in merge requestsDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-06-02Ignore references in blockquotes.Douwe Maan
2015-06-02Actually ignore references in code blocks etc.Douwe Maan
2015-05-26Make use of to_reference in more specsRobert Speicher
2015-04-25Add CommitRange directly to results HashRobert Speicher
2015-04-25Refactor ReferenceExtractor to use pipeline filtersRobert Speicher
2015-04-24Use project.commit convenience method.Douwe Maan
2015-04-20Add spec for ReferenceExtractor#labelsRobert Speicher
2015-04-20Fix ReferenceExtractor specRobert Speicher
2015-04-03Update tests.Douwe Maan
2015-04-02Fix errors.Douwe Maan
2015-03-23Merge branch 'disable-ref-generation-in-code-blocks' into 'master'Dmitriy Zaporozhets
Disable reference generation in preformatted/code blocks ### Summary If a user adds text in code or preformatted text via Markdown or HTML that contains `#XXX`, the system adds a note that issue `XXX` was mentioned. This is particularly annoying because we often list gdb backtrace dumps into our issues, and many issues get mentioned as a result. For example: ``` (gdb) bt #0 0x00000000004004c4 in second () at main.cc:6 #1 0x00000000004004d2 in first () at main.cc:11 #2 0x00000000004004dd in main () at main.cc:17 (gdb) ``` ### Steps to reproduce 1. In an issue, write the above text using Markdown or HTML tags (e.g. `<code>`, `<pre>`). 2. Observe that [issue 1](https://gitlab.com/gitlab-org/gitlab-ce/issues/1) and [issue 2](https://gitlab.com/gitlab-org/gitlab-ce/issues/2) have a note that says they were mentioned. ### Expected behavior Everything enclosed in the code blocks should be ignored as references. ### Observed behavior Issues get referenced unnecessarily. ### Fix I've made `reference_extractor.rb` strip out HTML and Markdown blocks before processing. I considered running the raw text through the entire Markdown processor, but this seems overkill and perhaps could lead to some unintended side effects. See merge request !365
2015-03-20Disable reference creation for comments surrounded by code/preformatted blocksStan Hu
2015-03-19Fix cross references when usernames, milestones, or project names contain ↵Stan Hu
underscores. Remove emphasis from system notes to avoid Markdown conflicts in names.
2015-03-07Automatically link commit ranges to compare page.Douwe Maan
2015-02-12Updated rspec to rspec 3.x syntaxJeroen van Baarsen
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
2015-01-27Remove unused feature steps.Marin Jankovski
2014-10-03Track projects in ReferenceExtractorVinnie Okada
Store both the project and identifier of extracted references. This prevents `ReferenceExtractor` from returning objects in the wrong project for cross-project references.
2014-05-13Add support for Jira ticket mentions in format JIRA-123.Marin Jankovski
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Conflicts: CHANGELOG-EE
2014-01-22Make changes to testsDmitriy Zaporozhets
* project_with_code -> project * project -> ermpty_project Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2013-08-26Link issues from comments and automatically close themash wilson
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.