Skip to content

Commit

Permalink
adding stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
kolioOtSofia committed Jun 18, 2021
1 parent e4eb268 commit 4aa03bc
Show file tree
Hide file tree
Showing 15 changed files with 59 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
behaviour
pause

super pause.
ATDDBrowser changedGitHubActions
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"symbol" : "sw 5/25/2021 22:27" },
"instance" : {
"initialize" : "BF 5/23/2021 21:18",
"pause" : "ng 6/18/2021 14:47",
"repositoryURL:" : "BF 5/23/2021 21:29",
"statusChanged" : "ClassTest 5/29/2021 19:31",
"updateStatus" : "ClassTest 5/28/2021 23:47" } }
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ accessing
errorDictionary

^ IdentityDictionary newFrom: {
401 -> ATDDConnectionError.
403 -> ATDDAccessDeniedError.
404 -> ATDDNotFoundError
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"class" : {
},
"instance" : {
"errorDictionary" : "ng 6/18/2021 13:59",
"errorDictionary" : "ng 6/18/2021 14:48",
"throwExceptionForResponseCode:" : "ng 6/18/2021 14:05",
"token" : "ClassTest 6/2/2021 18:44",
"token:" : "ClassTest 6/2/2021 18:44",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ behaviour
pause

self terminateProcess.
super pause.
self updateStatus
super pause
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"internalStatus" : "ClassTest 6/2/2021 17:54",
"internalStatus:" : "ClassTest 5/29/2021 19:42",
"newRefreshProcess" : "sw 5/28/2021 18:04",
"pause" : "sw 5/28/2021 18:04",
"pause" : "ng 6/18/2021 14:46",
"pausedString" : "sw 5/28/2021 18:04",
"process" : "sw 5/28/2021 18:06",
"process:" : "sw 5/28/2021 18:06",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
behaviour
pause

super pause.
ATDDBrowser changedTravisStatuses
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"symbol" : "sw 5/25/2021 22:21" },
"instance" : {
"initialize" : "BF 5/23/2021 21:18",
"pause" : "ng 6/18/2021 14:49",
"repositoryURL:" : "ls 7/25/2019 09:23",
"statusChanged" : "ClassTest 5/29/2021 19:36",
"updateStatus" : "ClassTest 5/28/2021 23:46",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
action
resumeGitHubAction: aGitHubAction

aGitHubAction resume
[ aGitHubAction resume ]
on: ATDDAccessDeniedError
do: [UIManager default inform: 'test' ]
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"resultsTravisStatuses" : "sw 5/26/2021 00:07",
"resultsWatchers" : "sw 5/26/2021 00:07",
"resumeAll" : "sw 5/21/2021 21:05",
"resumeGitHubAction:" : "sw 5/21/2021 21:04",
"resumeGitHubAction:" : "ng 6/18/2021 15:03",
"resumeSelectedGitHubActions" : "sw 5/21/2021 22:17",
"resumeSelectedTravisStatuses" : "swi 7/25/2019 15:30",
"resumeSelectedWatchers" : "swi 7/25/2019 15:31",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
action
hasValidUrl

| client |

client := ATDDGitHubActionsClient new.
client token: self token.
[ client requestOn: 'repos/' , self repositoryUrl ]
on: ATDDNotFoundError
do: [ ^ false ].

^ true
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
action
save

repositoryUrl changed: #acceptChanges.
token changed: #acceptChanges.
refreshInterval changed: #acceptChanges.
self hasVaildRefreshInterval
ifFalse: [
UIManager default inform: 'Please enter a valid interval!'.
^ nil ].
self hasVaildSlug
ifFalse: [
UIManager default inform: 'Please enter a valid slug!'.
^ nil ].
self hasValidUrl
ifFalse: [
UIManager default inform: 'Error 404! Please provide a valid {owner}/{repo}'.
^ nil ].
super save.
self closeWindow.

^ self applyChanges
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@
"validSlug" : "BF 5/21/2021 14:07" },
"instance" : {
"applyChanges" : "sw 5/25/2021 20:21",
"gitHubAction" : "sw 5/25/2021 19:21" } }
"gitHubAction" : "sw 5/25/2021 19:21",
"hasValidUrl" : "ng 6/18/2021 14:52",
"save" : "ng 6/18/2021 14:53" } }
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ updateJobLogForId: aNumber

[ response := self data client getLogsForRepository: self data repository logId: aNumber ]
on: ATDDAccessDeniedError
do: [ :error | response := error class message , '. Logs are only available when providing a token.' ];
do: [ :error | response := error class message , '. Logs are only available when providing a token.' ]
on: ATDDNotFoundError
do: [ :error | response := error class message , '. No logs available for this workflow.' ].

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"parseAnsiCodeOf:" : "BF 6/11/2021 21:15",
"parseSmalltalkCILog:" : "BF 6/11/2021 19:48",
"selectedJob:" : "ng 5/26/2021 14:54",
"updateJobLogForId:" : "ng 6/18/2021 14:30",
"updateJobLogForId:" : "ng 6/18/2021 14:43",
"updateJobs" : "ClassTest 5/29/2021 19:12" } }

0 comments on commit 4aa03bc

Please sign in to comment.