Skip to content

Commit

Permalink
Added more tests, increased code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyscholl committed Oct 17, 2023
1 parent 4804c76 commit cbb8f09
Show file tree
Hide file tree
Showing 10 changed files with 768 additions and 86 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/answer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,8 @@ on:
jobs:
mark-comment-answer:
name: Mark a discussion comment as the answer
if: true == true
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
ANSWERABLE: ${{ toJSON(github.event.discussion.category.is_answerable) }}
COMMENTS: ${{ toJSON(github.event.discussion.comments) }}
ANSWER: ${{ toJSON(github.event.discussion.answer_chosen_at) }}
LOCKED: ${{ toJSON(github.event.locked) }}
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: |
echo $ANSWERABLE
echo $COMMENTS
echo $ANSWER
echo $LOCKED
echo $GITHUB_CONTEXT
- name: Checkout Repo
uses: actions/checkout@v3

Expand Down
3 changes: 2 additions & 1 deletion src/__tests__/alreadyAnswered.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"owner": {
"login": "konjoinfinity"
}
}
},
"locked": false
}

Loading

0 comments on commit cbb8f09

Please sign in to comment.