Skip to content

Commit

Permalink
chore: update comments to link to open issue on Flipt (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps authored Dec 11, 2023
1 parent 4e61d11 commit 64ef67c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async function validate(args: string[] = []): Promise<void> {
return
}

// TODO: hack to get second line of output until env vars can override default config
// TODO: hack to get second line of output until https://github.com/flipt-io/flipt/issues/2531 is fixed
const lines = result.stdout.toString().split('\n')
if (lines.length < 2) {
core.setFailed('flipt validate returned invalid output')
Expand All @@ -77,10 +77,10 @@ async function validate(args: string[] = []): Promise<void> {
let errors = 0
const json = JSON.parse(response)

// reponse looks like :
// response looks like:
// [{"message":"flags.0.rules.0.distributions.0.rollout: invalid value 110 (out of bound \\u003c=100)","location":{"file":"features.yaml","line":17}}]
// loop through objects in response

// loop through objects in response
for (const error of json) {
errors += 1
const {message, location} = error
Expand Down

0 comments on commit 64ef67c

Please sign in to comment.