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
  • Merge requests
  • !6831

Merged
Created Apr 21, 2014 by Administrator@rootOwner

Provide better email subject lines from email on push service

  • Overview 13
  • Commits 1
  • Changes 3

Created by: pkill

Feature: Better email subject lines from email on push service

Feature request: http://feedback.gitlab.com/forums/176466-general/suggestions/5767809-add-commit-message-to-email-on-push-subject

If one commit is pushed, display the commit message in the subject line. Otherwise display the number of commits pushed to the repository.

Tests

I performed my tests using the Gitlab Cookbook described here https://gitlab.com/gitlab-org/cookbook-gitlab/blob/master/doc/development.md

Feature test

I activated Email-on-push service for one of the projects with git@localhost as the recipient. I edited the configuration for the development environment to perform deliveries and use sendmail.

Then I installed mail-utils so I can check email. I pushed a single commit, 2 commits, and 6 commits as three separate trials. In all cases, the subject line was as I expected without introducing any regressions. I verified by checking mail with the mail command on the shell and by looking at the emails rendered in the DEBUG logs.

RSpec and Spinach tests

I modified two existing unit tests to account for enhanced subject lines. All tests passing.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: github/fork/pkill/better-email-on-push-subject