You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a submission URL is modified, it must also be checked. In this case, the `arduino/arduino-lint-action`'s
`library-manager` input setting must be "update" instead of "submit", since the library is already in the index.
Since, manual testing of GitHub Actions workflows is not well supported, it's best to keep as much of the logic as
possible in the Go code of the parser. For this reason, the parser should determine the appropriate `library-manager`
setting and pass that to the workflow.
Copy file name to clipboardExpand all lines: main.go
+14-9Lines changed: 14 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -60,10 +60,11 @@ var recommendedOrganizations []string = []string{
60
60
61
61
// request is the type of the request data.
62
62
typerequeststruct {
63
-
Typestring`json:"type"`// Request type.
64
-
Submissions []submissionType`json:"submissions"`// Data for submitted libraries.
65
-
IndexEntrystring`json:"indexEntry"`// Entry that will be made to the Library Manager index source file when the submission is accepted.
66
-
IndexerLogsURLsstring`json:"indexerLogsURLs"`// List of URLs where the logs from the Library Manager indexer for each submission are available for view.
63
+
Typestring`json:"type"`// Request type.
64
+
ArduinoLintLibraryManagerSettingstring`json:"arduinoLintLibraryManagerSetting"`// Argument to pass to Arduino Lint's --library-manager flag.
65
+
Submissions []submissionType`json:"submissions"`// Data for submitted libraries.
66
+
IndexEntrystring`json:"indexEntry"`// Entry that will be made to the Library Manager index source file when the submission is accepted.
67
+
IndexerLogsURLsstring`json:"indexerLogsURLs"`// List of URLs where the logs from the Library Manager indexer for each submission are available for view.
67
68
}
68
69
69
70
// submissionType is the type of the data for each individual library submitted in the request.
if (len(diffs) !=1) || (diffs[0].OrigName[2:] !=listName) || (diffs[0].OrigName[2:] !=diffs[0].NewName[2:]) { // Git diffs have a a/ or b/ prefix on file names.
0 commit comments