diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 18:40:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-20 18:40:28 +0300 |
commit | b595cb0c1dec83de5bdee18284abe86614bed33b (patch) | |
tree | 8c3d4540f193c5ff98019352f554e921b3a41a72 /app/services/repositories | |
parent | 2f9104a328fc8a4bddeaa4627b595166d24671d0 (diff) |
Add latest changes from gitlab-org/gitlab@15-2-stable-eev15.2.0-rc42
Diffstat (limited to 'app/services/repositories')
-rw-r--r-- | app/services/repositories/changelog_service.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/services/repositories/changelog_service.rb b/app/services/repositories/changelog_service.rb index 7a78b323453..447d4d979a6 100644 --- a/app/services/repositories/changelog_service.rb +++ b/app/services/repositories/changelog_service.rb @@ -41,6 +41,9 @@ module Repositories # The `trailer` argument is the Git trailer to use for determining what # commits to include in the changelog. # + # The `config_file` arguments specifies the path to the configuration file as + # stored in the project's Git repository. + # # The `file` arguments specifies the name/path of the file to commit the # changes to. If the file doesn't exist, it's created automatically. # @@ -57,6 +60,7 @@ module Repositories to: branch, date: DateTime.now, trailer: DEFAULT_TRAILER, + config_file: Gitlab::Changelog::Config::DEFAULT_FILE_PATH, file: DEFAULT_FILE, message: "Add changelog for version #{version}" ) @@ -68,13 +72,14 @@ module Repositories @date = date @branch = branch @trailer = trailer + @config_file = config_file @file = file @message = message end # rubocop: enable Metrics/ParameterLists def execute(commit_to_changelog: true) - config = Gitlab::Changelog::Config.from_git(@project, @user) + config = Gitlab::Changelog::Config.from_git(@project, @user, @config_file) from = start_of_commit_range(config) # For every entry we want to only include the merge request that |