Repository navigation
feat: display showcase posts in fortnightly showcase-digest - #134
Open
michal-skraburski wants to merge 15 commits into
Open
michal-skraburski wants to merge 15 commits into
michal-skraburski wants to merge 15 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR closes #126.
Configuration
4 new configuration options were added:
LOOKBACK_N) in Days (Optional, defaults to 14)1. %F0%9F%91%8D is what the thumbsup emoji looks like, this is due to the way we currently grab identifiers
Showcase triggers
This feature runs a cron job exactly 16:00 UTC+0 every fortnight Friday, as well as permitting only moderators to run a manual digest:
This is achieved statelessly (survives restarts) by using the week index since epoch time, the cron job technically fires every week but it checks whether but this week should fire based on
INTERVAL_WEEKS=Math.Round(LOOKBACK_N / 7)plugged intocurrentWeekIndex() % INTEVERAL_WEEKS. Seefeatures/showcase-digest/triggers.ts.Current state
A showcase digest currently looks like this:

Following this definition of the issue: #126 (comment)