Skip to content

Instantly share code, notes, and snippets.

@gamerson
gamerson / proposals.json
Created July 23, 2021 16:29
Lugbot `/tasks/{taskId}/proposals` Example Response
[
{
"action": "Set workspace product key and release api jar",
"baseBranchName": "lugbotTest",
"body": "<p>Use release api jar. TBD…</p> ",
"branchName": "lugbot_use-release-api_UseReleaseApi",
"commitComments": {},
"diffContent": "diff --git a/liferay-workspace/gradle.properties b/liferay-workspace/gradle.properties\nindex 3eb369b..933c138 100644\n--- a/liferay-workspace/gradle.properties\n+++ b/liferay-workspace/gradle.properties\n@@ -1,3 +1,3 @@\n liferay.workspace.modules.dir=modules\n microsoft.translator.subscription.key=\n-liferay.workspace.product = dxp-7.3-sp1\n+liferay.workspace.product = dxp-7.3-sp2\ndiff --git a/liferay-workspace/modules/evp/evp-portlet/build.gradle b/liferay-workspace/modules/evp/evp-portlet/build.gradle\nindex 0771580..2c95cf6 100644\n--- a/liferay-workspace/modules/evp/evp-portlet/build.gradle\n+++ b/liferay-workspace/modules/evp/evp-portlet/build.gradle\n@@ -21,9 +21,6 @@\n \tcompile group: \"org.apache.xmlbeans\", name: \"xmlbeans\", version: \"2.6.0
@gamerson
gamerson / proposal.json
Last active July 23, 2021 16:30
Lugbot `/tasks/{taskId}/proposals/{proposalId}` Proposal Response
{
"action": "Set workspace product key and release api jar",
"baseBranchName": "lugbotTest",
"body": "<p>Use release api jar. TBD…</p> ",
"branchName": "lugbot_use-release-api_UseReleaseApi",
"commitComments": {},
"diffContent": "diff --git a/liferay-workspace/gradle.properties b/liferay-workspace/gradle.properties\nindex 3eb369b..933c138 100644\n--- a/liferay-workspace/gradle.properties\n+++ b/liferay-workspace/gradle.properties\n@@ -1,3 +1,3 @@\n liferay.workspace.modules.dir=modules\n microsoft.translator.subscription.key=\n-liferay.workspace.product = dxp-7.3-sp1\n+liferay.workspace.product = dxp-7.3-sp2\ndiff --git a/liferay-workspace/modules/evp/evp-portlet/build.gradle b/liferay-workspace/modules/evp/evp-portlet/build.gradle\nindex 0771580..2c95cf6 100644\n--- a/liferay-workspace/modules/evp/evp-portlet/build.gradle\n+++ b/liferay-workspace/modules/evp/evp-portlet/build.gradle\n@@ -21,9 +21,6 @@\n \tcompile group: \"org.apache.xmlbeans\", name: \"xmlbeans\", version: \"2.6.0\"\n \tcompile g
@gamerson
gamerson / project.json
Created July 23, 2021 15:56
Lugbot `/projects/1/` Single Project API Example
{
"cloneUrl": "git@github.com:gamerson/evp-portlet-upgrade-webhook.git",
"description": "Unnamed repository; edit this file 'description' to name the repository.",
"htmlUrl": "/repo/.git",
"id": 1,
"name": "LOCAL_REPO"
}
@gamerson
gamerson / projects.json
Created July 23, 2021 15:53
Lugbot `/projects` Projects API Example #1
[
{
"cloneUrl": "git@github.com:gamerson/evp-portlet-upgrade-webhook.git",
"description": "Unnamed repository; edit this file 'description' to name the repository.",
"htmlUrl": "/repo/.git",
"id": 1,
"name": "LOCAL_REPO"
}
]
@gamerson
gamerson / log.json
Created July 23, 2021 14:55
Lugbot `/tasks/11/log` Task Log Example
{
"taskLog": [
" Starting code upgrade proposal",
" Preparing repository branch lugbot_find-breaking-changes_FindBreakingChanges",
" Preparing repository branch lugbot_find-breaking-changes_FindBreakingChanges",
" Providing proposal: ",
" 14:47:26.187 INFO c.l.c.u.a.CodeUpgradeApplicationComponent:263 - Registered 19 upgrade providers: configure-workspace-path,create-workspace,configure-plugins,maven-create-modules,plugins-create-modules,maven-convert-build,plugins-convert-build,maven-migrate-code,plugins-migrate-code,remove-legacy-files,update-service-builder-modules,upgrade-workspace-version,use-target-platform,use-release-api,auto-correct-breaking-changes,find-breaking-changes,upgrade-portal-properties,cfg-to-config-file",
" 14:47:26.187 INFO c.l.c.u.a.CodeUpgradeApplicationComponent:491 - provide find-breaking-changes_FindBreakingChanges /repo",
" 14:48:05.792 INFO c.l.c.u.p.FindBreakingChangesProvider:461 - \tcom.liferay.ide.upgrade.problems.core.internal.liferay72.Lifera
@gamerson
gamerson / tasks.json
Created July 23, 2021 14:55
Lugbot `/tasks` Example #2 - Large proposals
[
{
"finishTime": 1627051481133,
"id": 4,
"name": "Bug Prevention",
"projectId": 1,
"startTime": 1627051458149,
"state": "COMPLETED_SUCCESS"
},
{
@gamerson
gamerson / tasks.json
Created July 23, 2021 14:35
Lugbot `/tasks?state=COMPLETED_FAILURE` Example
[
{
"finishTime": 1627048113551,
"id": 11,
"name": "Code Upgrade Proposal: find-breaking-changes_FindBreakingChanges",
"projectId": 1,
"proposal": {
"action": "canceled",
"body": "Canceled by user",
"branchName": "",
@gamerson
gamerson / tasks.json
Created July 23, 2021 14:33
Lugbot `/tasks` Example #1
[
{
"finishTime": 1627047806038,
"id": 4,
"name": "Bug Prevention",
"projectId": 1,
"startTime": 1627047771174,
"state": "COMPLETED_SUCCESS"
},
{
@gamerson
gamerson / status.json
Created July 23, 2021 14:26
Lugbot `/status` Example #3 - Completed Tasks with Proposals
{
"completedTasks": [
{
"finishTime": 1627047806038,
"id": 4,
"name": "Bug Prevention",
"projectId": 1,
"startTime": 1627047771174,
"state": "COMPLETED_SUCCESS"
},
@gamerson
gamerson / status.json
Created July 23, 2021 13:53
Lugbot `/status` example #2
{
"completedTasks": [
{
"finishTime": 1627047806038,
"id": 4,
"name": "Bug Prevention",
"projectId": 1,
"startTime": 1627047771174,
"state": "COMPLETED_SUCCESS"
},