Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(code-suggester)!: move to code-suggester for PR management #536

Merged
merged 4 commits into from
Sep 4, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,296 changes: 101 additions & 3,195 deletions __snapshots__/java-bom.js

Large diffs are not rendered by default.

1,800 changes: 92 additions & 1,708 deletions __snapshots__/java-yoshi.js

Large diffs are not rendered by default.

219 changes: 62 additions & 157 deletions __snapshots__/node.js
Original file line number Diff line number Diff line change
@@ -1,176 +1,81 @@
exports['papckage-lock-json-node-with'] = `
{
"name": "node-test-repo",
"version": "0.123.5",
"lockfileVersion": 1,
"requires": true,
"dependencies": {}
}

`

exports['CHANGELOG-node-message-with-package-lock'] = `
chore: created CHANGELOG.md [ci skip]
`

exports['CHANGELOG-node-with-package-lock'] = `
# Changelog

### [0.123.5](https://www.github.com/googleapis/node-test-repo/compare/v0.123.4...v0.123.5)


### Bug Fixes

* **deps:** update dependency com.google.cloud:google-cloud-spanner to v1.50.0 ([1f9663c](https://www.github.com/googleapis/node-test-repo/commit/1f9663cf08ab1cf3b68d95dee4dc99b7c4aac373))
* **deps:** update dependency com.google.cloud:google-cloud-storage to v1.120.0 ([fcd1c89](https://www.github.com/googleapis/node-test-repo/commit/fcd1c890dc1526f4d62ceedad561f498195c8939))

`

exports['package-json-node-message-with-package-lock'] = `
chore: updated package.json
`

exports['package-json-node-with-package-lock'] = `
{
"name": "node-test-repo",
"version": "0.123.5",
"repository": {
"url": "git@github.com:samples/node-test-repo.git"
}
}

`

exports['package-lock-json-node-message'] = `
chore: updated package-lock.json [ci skip]
`

exports['PR body-node-with-package-lock'] = `
:robot: I have created a release \\*beep\\* \\*boop\\*
---
### [0.123.5](https://www.github.com/googleapis/node-test-repo/compare/v0.123.4...v0.123.5)


### Bug Fixes

* **deps:** update dependency com.google.cloud:google-cloud-spanner to v1.50.0 ([1f9663c](https://www.github.com/googleapis/node-test-repo/commit/1f9663cf08ab1cf3b68d95dee4dc99b7c4aac373))
* **deps:** update dependency com.google.cloud:google-cloud-storage to v1.120.0 ([fcd1c89](https://www.github.com/googleapis/node-test-repo/commit/fcd1c890dc1526f4d62ceedad561f498195c8939))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
`

exports['labels-node-with-package-lock'] = {
exports['labels-node-'] = {
'labels': [
'autorelease: pending'
]
}

exports['CHANGELOG-node-message-'] = `
chore: created CHANGELOG.md [ci skip]
`

exports['CHANGELOG-node-'] = `
# Changelog

### [0.123.5](https://www.github.com/googleapis/node-test-repo/compare/v0.123.4...v0.123.5)


### Bug Fixes

* **deps:** update dependency com.google.cloud:google-cloud-spanner to v1.50.0 ([1f9663c](https://www.github.com/googleapis/node-test-repo/commit/1f9663cf08ab1cf3b68d95dee4dc99b7c4aac373))
* **deps:** update dependency com.google.cloud:google-cloud-storage to v1.120.0 ([fcd1c89](https://www.github.com/googleapis/node-test-repo/commit/fcd1c890dc1526f4d62ceedad561f498195c8939))

`

exports['package-json-node-message-'] = `
chore: updated package.json
`

exports['package-json-node-'] = `
{
"name": "node-test-repo",
"version": "0.123.5",
"repository": {
"url": "git@github.com:samples/node-test-repo.git"
}
}

`

exports['PR body-node-'] = `
:robot: I have created a release \\*beep\\* \\*boop\\*
---
### [0.123.5](https://www.github.com/googleapis/node-test-repo/compare/v0.123.4...v0.123.5)


### Bug Fixes

* **deps:** update dependency com.google.cloud:google-cloud-spanner to v1.50.0 ([1f9663c](https://www.github.com/googleapis/node-test-repo/commit/1f9663cf08ab1cf3b68d95dee4dc99b7c4aac373))
* **deps:** update dependency com.google.cloud:google-cloud-storage to v1.120.0 ([fcd1c89](https://www.github.com/googleapis/node-test-repo/commit/fcd1c890dc1526f4d62ceedad561f498195c8939))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
exports['Node run creates a release PR without package-lock.json 1'] = `
[
[
"CHANGELOG.md",
{
"content": "# Changelog\\n\\n### [0.123.5](https://www.github.com/googleapis/node-test-repo/compare/v0.123.4...v0.123.5) (1983-10-10)\\n\\n\\n### Bug Fixes\\n\\n* **deps:** update dependency com.google.cloud:google-cloud-spanner to v1.50.0 ([1f9663c](https://www.github.com/googleapis/node-test-repo/commit/1f9663cf08ab1cf3b68d95dee4dc99b7c4aac373))\\n* **deps:** update dependency com.google.cloud:google-cloud-storage to v1.120.0 ([fcd1c89](https://www.github.com/googleapis/node-test-repo/commit/fcd1c890dc1526f4d62ceedad561f498195c8939))\\n",
"mode": "100644"
}
],
[
"package.json",
{
"content": "{\\n \\"name\\": \\"node-test-repo\\",\\n \\"version\\": \\"0.123.5\\",\\n \\"repository\\": {\\n \\"url\\": \\"git@github.com:samples/node-test-repo.git\\"\\n }\\n}\\n",
"mode": "100644"
}
]
]
`

exports['labels-node-'] = {
exports['labels-node-with-package-lock'] = {
'labels': [
'autorelease: pending'
]
}

exports['CHANGELOG-node-message-with-path'] = `
chore: created packages/foo/CHANGELOG.md [ci skip]
`

exports['CHANGELOG-node-with-path'] = `
# Changelog

### [0.123.5](https://www.github.com/googleapis/node-test-repo/compare/v0.123.4...v0.123.5)


### Bug Fixes

* **deps:** update dependency com.google.cloud:google-cloud-spanner to v1.50.0 ([1f9663c](https://www.github.com/googleapis/node-test-repo/commit/1f9663cf08ab1cf3b68d95dee4dc99b7c4aac373))
* **deps:** update dependency com.google.cloud:google-cloud-storage to v1.120.0 ([fcd1c89](https://www.github.com/googleapis/node-test-repo/commit/fcd1c890dc1526f4d62ceedad561f498195c8939))

`

exports['package-json-node-message-with-path'] = `
chore: updated packages/foo/package.json
`

exports['package-json-node-with-path'] = `
{
"name": "node-test-repo",
"version": "0.123.5",
"repository": {
"url": "git@github.com:samples/node-test-repo.git"
}
}

`

exports['PR body-node-with-path'] = `
:robot: I have created a release \\*beep\\* \\*boop\\*
---
### [0.123.5](https://www.github.com/googleapis/node-test-repo/compare/v0.123.4...v0.123.5)


### Bug Fixes

* **deps:** update dependency com.google.cloud:google-cloud-spanner to v1.50.0 ([1f9663c](https://www.github.com/googleapis/node-test-repo/commit/1f9663cf08ab1cf3b68d95dee4dc99b7c4aac373))
* **deps:** update dependency com.google.cloud:google-cloud-storage to v1.120.0 ([fcd1c89](https://www.github.com/googleapis/node-test-repo/commit/fcd1c890dc1526f4d62ceedad561f498195c8939))
---


This PR was generated with [Release Please](https://github.com/googleapis/release-please).
exports['Node run creates a release PR with package-lock.json 1'] = `
[
[
"package-lock.json",
{
"content": "{\\n \\"name\\": \\"node-test-repo\\",\\n \\"version\\": \\"0.123.5\\",\\n \\"lockfileVersion\\": 1,\\n \\"requires\\": true,\\n \\"dependencies\\": {}\\n}\\n",
"mode": "100644"
}
],
[
"CHANGELOG.md",
{
"content": "# Changelog\\n\\n### [0.123.5](https://www.github.com/googleapis/node-test-repo/compare/v0.123.4...v0.123.5) (1983-10-10)\\n\\n\\n### Bug Fixes\\n\\n* **deps:** update dependency com.google.cloud:google-cloud-spanner to v1.50.0 ([1f9663c](https://www.github.com/googleapis/node-test-repo/commit/1f9663cf08ab1cf3b68d95dee4dc99b7c4aac373))\\n* **deps:** update dependency com.google.cloud:google-cloud-storage to v1.120.0 ([fcd1c89](https://www.github.com/googleapis/node-test-repo/commit/fcd1c890dc1526f4d62ceedad561f498195c8939))\\n",
"mode": "100644"
}
],
[
"package.json",
{
"content": "{\\n \\"name\\": \\"node-test-repo\\",\\n \\"version\\": \\"0.123.5\\",\\n \\"repository\\": {\\n \\"url\\": \\"git@github.com:samples/node-test-repo.git\\"\\n }\\n}\\n",
"mode": "100644"
}
]
]
`

exports['labels-node-with-path'] = {
'labels': [
'autorelease: pending'
]
}

exports['Node run creates release PR relative to a path 1'] = `
[
[
"packages/foo/CHANGELOG.md",
{
"content": "# Changelog\\n\\n### [0.123.5](https://www.github.com/googleapis/node-test-repo/compare/v0.123.4...v0.123.5) (1983-10-10)\\n\\n\\n### Bug Fixes\\n\\n* **deps:** update dependency com.google.cloud:google-cloud-spanner to v1.50.0 ([1f9663c](https://www.github.com/googleapis/node-test-repo/commit/1f9663cf08ab1cf3b68d95dee4dc99b7c4aac373))\\n* **deps:** update dependency com.google.cloud:google-cloud-storage to v1.120.0 ([fcd1c89](https://www.github.com/googleapis/node-test-repo/commit/fcd1c890dc1526f4d62ceedad561f498195c8939))\\n",
"mode": "100644"
}
],
[
"packages/foo/package.json",
{
"content": "{\\n \\"name\\": \\"node-test-repo\\",\\n \\"version\\": \\"0.123.5\\",\\n \\"repository\\": {\\n \\"url\\": \\"git@github.com:samples/node-test-repo.git\\"\\n }\\n}\\n",
"mode": "100644"
}
]
]
`
90 changes: 33 additions & 57 deletions __snapshots__/release-pr-factory.js
Original file line number Diff line number Diff line change
@@ -1,61 +1,37 @@
exports['ReleasePRFactory build returns instance of dynamically loaded releaser 1'] = `
# Changelog

### [0.123.5](https://www.github.com/googleapis/simple-test-repo/compare/v0.123.4...v0.123.5)


### Bug Fixes

* **deps:** update dependency com.google.cloud:google-cloud-spanner to v1.50.0 ([1f9663c](https://www.github.com/googleapis/simple-test-repo/commit/1f9663cf08ab1cf3b68d95dee4dc99b7c4aac373))
* **deps:** update dependency com.google.cloud:google-cloud-storage to v1.120.0 ([fcd1c89](https://www.github.com/googleapis/simple-test-repo/commit/fcd1c890dc1526f4d62ceedad561f498195c8939))

`

exports['ReleasePRFactory build returns instance of dynamically loaded releaser 2'] = `
0.123.5

`

exports['ReleasePRFactory build returns instance of dynamically loaded releaser 3'] = {
'title': 'chore: release 0.123.5',
'body': ':robot: I have created a release \\*beep\\* \\*boop\\* \n---\n### [0.123.5](https://www.github.com/googleapis/simple-test-repo/compare/v0.123.4...v0.123.5) \n\n\n### Bug Fixes\n\n* **deps:** update dependency com.google.cloud:google-cloud-spanner to v1.50.0 ([1f9663c](https://www.github.com/googleapis/simple-test-repo/commit/1f9663cf08ab1cf3b68d95dee4dc99b7c4aac373))\n* **deps:** update dependency com.google.cloud:google-cloud-storage to v1.120.0 ([fcd1c89](https://www.github.com/googleapis/simple-test-repo/commit/fcd1c890dc1526f4d62ceedad561f498195c8939))\n---\n\n\nThis PR was generated with [Release Please](https://github.com/googleapis/release-please).',
'head': 'release-v0.123.5',
'base': 'main'
}

exports['ReleasePRFactory build returns instance of dynamically loaded releaser 4'] = {
'labels': [
'autorelease: pending'
]
}

exports['ReleasePRFactory buildStatic returns an instance of a statically loaded releaser 1'] = `
# Changelog

### [0.123.5](https://www.github.com/googleapis/simple-test-repo/compare/v0.123.4...v0.123.5)


### Bug Fixes

* **deps:** update dependency com.google.cloud:google-cloud-spanner to v1.50.0 ([1f9663c](https://www.github.com/googleapis/simple-test-repo/commit/1f9663cf08ab1cf3b68d95dee4dc99b7c4aac373))
* **deps:** update dependency com.google.cloud:google-cloud-storage to v1.120.0 ([fcd1c89](https://www.github.com/googleapis/simple-test-repo/commit/fcd1c890dc1526f4d62ceedad561f498195c8939))

`

exports['ReleasePRFactory buildStatic returns an instance of a statically loaded releaser 2'] = `
0.123.5

[
[
"CHANGELOG.md",
{
"content": "# Changelog\\n\\n### [0.123.5](https://www.github.com/googleapis/simple-test-repo/compare/v0.123.4...v0.123.5) (1983-10-10)\\n\\n\\n### Bug Fixes\\n\\n* **deps:** update dependency com.google.cloud:google-cloud-spanner to v1.50.0 ([1f9663c](https://www.github.com/googleapis/simple-test-repo/commit/1f9663cf08ab1cf3b68d95dee4dc99b7c4aac373))\\n* **deps:** update dependency com.google.cloud:google-cloud-storage to v1.120.0 ([fcd1c89](https://www.github.com/googleapis/simple-test-repo/commit/fcd1c890dc1526f4d62ceedad561f498195c8939))\\n",
"mode": "100644"
}
],
[
"version.txt",
{
"content": "0.123.5\\n",
"mode": "100644"
}
]
]
`

exports['ReleasePRFactory buildStatic returns an instance of a statically loaded releaser 3'] = {
'title': 'chore: release 0.123.5',
'body': ':robot: I have created a release \\*beep\\* \\*boop\\* \n---\n### [0.123.5](https://www.github.com/googleapis/simple-test-repo/compare/v0.123.4...v0.123.5) \n\n\n### Bug Fixes\n\n* **deps:** update dependency com.google.cloud:google-cloud-spanner to v1.50.0 ([1f9663c](https://www.github.com/googleapis/simple-test-repo/commit/1f9663cf08ab1cf3b68d95dee4dc99b7c4aac373))\n* **deps:** update dependency com.google.cloud:google-cloud-storage to v1.120.0 ([fcd1c89](https://www.github.com/googleapis/simple-test-repo/commit/fcd1c890dc1526f4d62ceedad561f498195c8939))\n---\n\n\nThis PR was generated with [Release Please](https://github.com/googleapis/release-please).',
'head': 'release-v0.123.5',
'base': 'main'
}

exports['ReleasePRFactory buildStatic returns an instance of a statically loaded releaser 4'] = {
'labels': [
'autorelease: pending'
exports['ReleasePRFactory build returns instance of dynamically loaded releaser 1'] = `
[
[
"CHANGELOG.md",
{
"content": "# Changelog\\n\\n### [0.123.5](https://www.github.com/googleapis/simple-test-repo/compare/v0.123.4...v0.123.5) (1983-10-10)\\n\\n\\n### Bug Fixes\\n\\n* **deps:** update dependency com.google.cloud:google-cloud-spanner to v1.50.0 ([1f9663c](https://www.github.com/googleapis/simple-test-repo/commit/1f9663cf08ab1cf3b68d95dee4dc99b7c4aac373))\\n* **deps:** update dependency com.google.cloud:google-cloud-storage to v1.120.0 ([fcd1c89](https://www.github.com/googleapis/simple-test-repo/commit/fcd1c890dc1526f4d62ceedad561f498195c8939))\\n",
"mode": "100644"
}
],
[
"version.txt",
{
"content": "0.123.5\\n",
"mode": "100644"
}
]
}
]
`
Loading