Skip to content

Commit

Permalink
Add the "Unlisted" status to bot commands
Browse files Browse the repository at this point in the history
  • Loading branch information
LeMurphant committed Sep 19, 2024
1 parent 65f29a6 commit 2d6c869
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/question_setter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
On Rob Miles's Discord server, an `@editor` can ask other `@editor`s and `@reviewer`s to give them feedback or review their changes to AI Safety Info questions. You just put one or more links to appropriate GDocs and mention one of: `@reviewer`, `@feedback`, or `@feedback-sketch`. Stampy will spot this and update their statuses in the coda table with answers appropriately.
`@reviewer <gdoc-link(s)>` - change status to `In review`
`@feedback <gdoc-link(s)>` - change status to `In progress`
`@unlisted <gdoc-link(s)>` - change status to `Unlisted`
`@feedback-sketch <gdoc-link(s)>` - change status to `Bulletpoint sketch`
Review acceptance, accepted, approved, lgtm
Expand Down Expand Up @@ -73,7 +74,7 @@

GDocLinks = list[str]
MsgRefId = str
ReviewStatus = Literal["In review", "Bulletpoint sketch", "In progress"]
ReviewStatus = Literal["In review", "Bulletpoint sketch", "In progress", "Unlisted"]
MarkingStatus = Literal["Marked for deletion", "Duplicate"]
EditAction = Literal["add", "remove", "clear"]

Expand Down Expand Up @@ -203,6 +204,8 @@ def parse_review_request(self, message: ServiceMessage) -> Optional[Response]:
status = "Bulletpoint sketch"
elif "@feedback" in text:
status = "In progress"
elif "@unlisted" in text:
status = "Unlisted"
else: # if neither of these three roles is mentioned, this is not a review request
return

Expand Down

0 comments on commit 2d6c869

Please sign in to comment.