-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check only for changes mentioned in the commit message
Only check the gemfile.lock for changes that have been mentioned in the commit message. This is because we want to ignore sub-dependencies. https://trello.com/c/c2KqD9Fu/3328-review-effectiveness-of-version-1-of-the-govuk-dependabot-merger
- Loading branch information
1 parent
901d0c5
commit 7085f4d
Showing
2 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,25 @@ | |
RSpec.describe PullRequest do | ||
before { set_up_mock_token } | ||
|
||
def fake_commit | ||
<<~TEXT | ||
Bump govuk_publishing_components from 35.7.0 to 35.8.0 | ||
Bumps [govuk_publishing_components](https://github.com/alphagov/govuk_publishing_components) from 35.7.0 to 35.8.0. | ||
- [Changelog](https://github.com/alphagov/govuk_publishing_components/blob/main/CHANGELOG.md) | ||
- [Commits](alphagov/[email protected]) | ||
--- | ||
updated-dependencies: | ||
- dependency-name: govuk_publishing_components | ||
dependency-type: direct:production | ||
update-type: version-update:semver-minor | ||
... | ||
Signed-off-by: dependabot[bot] <[email protected]> | ||
TEXT | ||
end | ||
|
||
let(:repo_name) { "foo" } | ||
let(:sha) { "ee241dea8da11aff8e575941c138a7f34ddb1a51" } | ||
let(:pull_request_api_response) do | ||
|
@@ -40,6 +59,7 @@ | |
author: { | ||
name: "dependabot[bot]", | ||
}, | ||
message: fake_commit, | ||
}, | ||
author: { | ||
login: "dependabot[bot]", | ||
|
@@ -318,6 +338,7 @@ def create_mock_dependency_manager | |
dependency_manager = double("DependencyManager") | ||
api_response = "foo" | ||
pull_request = PullRequest.new(api_response, dependency_manager) | ||
allow(pull_request).to receive(:commit_message).and_return(fake_commit) | ||
allow(pull_request).to receive(:gemfile_lock_changes).and_return( | ||
<<~GEMFILE_LOCK_DIFF, | ||
govuk_personalisation (0.13.0) | ||
|