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
* Added in Bug Reporter API closes#103
* Added additional newline to additional details to preserve formatting.
* Added information about the Bug Reporter API to the documentation.
* Adjusted information for making bug-reporter work in manifests.
* Added safeguard on bugWorkflow to ensure the module supports bug-reporter.
As of Bug Reporter version 1.3.1 there is now an API that a developer can launch and pre-fill with data for bug reports.
49
+
50
+
The API can be accessed as follows:
51
+
52
+
```js
53
+
game.modules.get("bug-reporter").api;
54
+
```
55
+
56
+
In the API you will find the following methods available for your use:
57
+
58
+
- allowBugReporter(modid)
59
+
- bugWorkflow(modid, title = "", details = "")
60
+
61
+
#### allowBugReporter()
62
+
63
+
allowBugReporter takes a string of the module name and returns whether or not the module in question supports Bug Reporter.
64
+
65
+
#### bugWorkflow()
66
+
bugWorkflow takes the modid and option title & details to generate a bug report that will be prefilled with the details of the bug that you provide. These details can be formatted however you desire, but it will be wrapped inside of <summary> tags on transmission to Github/lab.
67
+
68
+
Example:
69
+
```js
70
+
game.modules.get("bug-reporter").api.bugWorkflow("bug-reporter", "Testing the API", "Here are my auto-generated details, perhaps even an error message");
0 commit comments