brandonchinn178 / brandonchinn178/mergit

Display last time merge bot queue was polled in home page

Open
#132 2 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Haskell
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

When you go to `mergit.build-leapyear.com`, you should be able to see the last time the merge bot polled the queues in each repo.

General areas to fix:
* Add a new value to `BaseAppConfig` of type `IORef UTCTime`, which will contain the last time the merge bot polled the queues ([`Mergit.Monad`](https://github.com/LeapYear/mergit/blob/f413b8be4ae50f624020c90eecce585efe069de0/mergit/src/Mergit/Monad.hs#L80-L84))
* Edit [`pollMergeQueues`](https://github.com/LeapYear/mergit/blob/f413b8be4ae50f624020c90eecce585efe069de0/mergit/src/Mergit.hs#L133-L139) to update the IORef with the current time, after polling the queues in all registered repos
* Read the IORef and edit the HTML in `Mergit.Routes.Debug`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in mergit/src/Mergit/Monad.hs at BaseAppConfig and in mergit/src/Mergit.hs at pollMergeQueues. Then read Mergit.Routes.Debug to understand the home-page HTML and how the timestamp should be displayed. Done means the page shows when the merge bot last polled the queues after polling all registered repositories.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.