Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #8423

Closed
Open
Created Dec 03, 2014 by Administrator@rootOwner

Project Push Email Notification contains wrong "View it on GitLab" Link target

Created by: 4cc8783b

Summary

The link that is generated and presented in a "Repository push email notification" message is not correct. It refers to the first and last commit of the pushed commits but should refer to the parent of the first and to the last commit to have the compare view that correlates to the data in the email body.

Steps to reproduce

  1. Watch a project for pushes (Project settings -> Services -> Emails on push)
  2. make a few commits (i.e. resulting in Hashes A, B, C) on that project and push these commits
  3. Click on the link in the resulting "3 new commits pushed to repository" email

Expected behavior

The commits in the mentioned email (A, B, C) together with the changes (diff in the email) should be presented in the "Compare" View in GitLab when following the link.

Observed behavior

There is one (the first) commit missing in the GitLab view. One can only see commit B and C and the changes introduced by B and C. The URL to the compare view includes the first and last commit: "/compare/A...C"

Relevant logs and/or screenshots

None

Output of checks

Not relevant

Possible fixes

Change the linked URL to "/compare/A^...C" to present the desired information including commit A and the changes introduced by commit A. In other words: change it like mentioned to have the same information displayed as in the email that was sent.

Assignee
Assign to
Time tracking