File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1035,7 +1035,9 @@ PyramidWorld class >> menuReportABugOn: aBuilder [
10351035 label: ' Report a Bug' ;
10361036 icon: (self iconNamed: #smallDebug );
10371037 help: ' Will open the github page to report an issue' ;
1038- action: [ WebBrowser openOn: ' https://github.com/OpenSmock/Pyramid/issues/new' ]
1038+ action: [
1039+ self openWebBrowserOnIssue.
1040+ ]
10391041]
10401042
10411043{ #category : #menu }
@@ -1074,6 +1076,32 @@ PyramidWorld class >> openPyramidSettings [
10741076 browser expandAll
10751077]
10761078
1079+ { #category : #menu }
1080+ PyramidWorld class >> openWebBrowserOnIssue [
1081+
1082+ | repositoryName repositoryOwner currentCommit bodyString url |
1083+ repositoryName := ' Pyramid' .
1084+ repositoryOwner := ' OpenSmock' .
1085+
1086+ currentCommit := (IceRepository repositoryNamed: repositoryName)
1087+ workingCopy referenceCommit.
1088+
1089+ bodyString := ' <r><r><r>---<r><r><1s> version: <2s><r><1s> date: <3s><r><r>Pharo version: <4s><r>Pharo date : <5s><r>'
1090+ expandMacrosWithArguments: {
1091+ repositoryName.
1092+ currentCommit id.
1093+ currentCommit datetime asDate printString.
1094+ SystemVersion current printString.
1095+ SystemVersion current date printString }.
1096+
1097+ url := ' https://github.com/<1s>/<2s>/issues/new?body=<3s>'
1098+ expandMacrosWithArguments: {
1099+ repositoryOwner.
1100+ repositoryName.
1101+ bodyString asZnUrl printString allButFirst }.
1102+ WebBrowser openOn: url
1103+ ]
1104+
10771105{ #category : #icons }
10781106PyramidWorld class >> resetThemeIcons [
10791107 < script>
You can’t perform that action at this time.
0 commit comments