Skip to content
Snippets Groups Projects
Commit 27aa59f5 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(bazel): better PR change description

parent 4df7e32c
No related branches found
No related tags found
No related merge requests found
......@@ -955,11 +955,9 @@ const options = [
default: {
rollbackPrs: false,
fileMatch: ['(^|/)WORKSPACE$'],
major: {
prBodyDefinitions: {
Change:
'{{#if currentDigest}}digest -> `{{{newVersion}}}`{{else}}`{{{currentValue}}}` -> `{{{newValue}}}`{{/if}}',
},
prBodyDefinitions: {
Change:
'{{#if currentDigestShort}}`{{{currentDigestShort}}}` -> {{#if isDigest}}`{{{newDigestShort}}}`{{else}}`{{{newVersion}}}`{{/if}}{{else}}`{{{currentValue}}}` -> `{{{newValue}}}`{{/if}}',
},
},
mergeable: true,
......
......@@ -104,6 +104,7 @@ function extractPackageFile(content) {
if (commit) {
dep.currentValue = 'v0.0.0';
dep.currentDigest = commit;
dep.currentDigestShort = commit.substr(0, 7);
dep.digestOneAndOnly = true;
}
deps.push(dep);
......
......@@ -17,6 +17,7 @@ Array [
},
Object {
"currentDigest": "dec09d789f3dba190787f8b4454c7d3c936fed9e",
"currentDigestShort": "dec09d7",
"currentValue": "v0.0.0",
"def": "go_repository(
name = \\"com_github_google_uuid\\",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment