Skip to content

Commit a0f5f78

Browse files
committed
ran deno fmt
1 parent 81b9376 commit a0f5f78

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
## Precautions
77

8-
This is sample code for a one-off tool, not an official product. As such, it
9-
is not supported, though issues will be addressed on a best-effort basis.
8+
This is sample code for a one-off tool, not an official product. As such, it is
9+
not supported, though issues will be addressed on a best-effort basis.
1010

1111
## Background and design
1212

@@ -60,7 +60,6 @@ Third option (GitLab App):<br>
6060
Fourth option (BitBucket App):<br>
6161
<img width="200" alt="image" src="https://github.com/aaronhmiller/ox-break-glass/assets/223486/a410b861-1e4f-4936-8235-04ba5071cb4c">
6262

63-
6463
4. check the output, which if successful will look something like this:
6564
```
6665
Success! status: 200 response: {"data":{"excludeAlert":{"exclusions":[{"id":"6646e659d706ddad04646729",

functions/create_exclusion.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,11 @@ async function getIssues(jobNumber: string, authKey: string): Promise<string> {
112112
const queryPayload = {
113113
query,
114114
variables: {
115-
"getCicdIssuesInput": { "offset":0, "limit":100, "filters": { "jobNumber": [jobNumber] } },
115+
"getCicdIssuesInput": {
116+
"offset": 0,
117+
"limit": 100,
118+
"filters": { "jobNumber": [jobNumber] },
119+
},
116120
},
117121
};
118122
const queryResponse = await fetch(apiUrl, {
@@ -138,7 +142,7 @@ async function getIssues(jobNumber: string, authKey: string): Promise<string> {
138142
return queryError;
139143
}
140144
// Return the full issue data NOTE: do NOT JSON.stringify otherwise it'll overescape things
141-
// console.log("getIssues queryResult: ", queryResult);
145+
// console.log("getIssues queryResult: ", queryResult);
142146
return queryResult;
143147
}
144148

@@ -168,8 +172,8 @@ async function getDedupedIssues(
168172
query,
169173
variables: {
170174
"getCicdIssuesInput": {
171-
"offset":0,
172-
"limit":100,
175+
"offset": 0,
176+
"limit": 100,
173177
"filters": { "jobNumber": [jobNumber] },
174178
"scanID": scanID,
175179
},
@@ -198,7 +202,7 @@ async function getDedupedIssues(
198202
return queryError;
199203
}
200204
// Return the full issue data NOTE: do NOT JSON.stringify otherwise it'll overescape things
201-
// console.log("return queryResult from getDedupedIssues: ", JSON.stringify(queryResult));
205+
// console.log("return queryResult from getDedupedIssues: ", JSON.stringify(queryResult));
202206
return queryResult;
203207
}
204208

0 commit comments

Comments
 (0)