aboutsummaryrefslogtreecommitdiffstats
path: root/README.md (unfollow)
Commit message (Collapse)AuthorLines
2021-01-22Update the README badgesGravatar Matteo Bertucci-3/+4
2021-01-04Use wildcard for ALLOWED_HOSTS in debug modeGravatar Mark-15/+1
2021-01-02Changed Python language hook to system.Gravatar xithrius-1/+1
2020-12-26Improve the RepositoryMetadata cleanup code.Gravatar Leon Sandøy-3/+1
Co-authored-by: Dennis Pham <[email protected]>
2020-12-21relax coverage requirement in home routeGravatar Joe Banks-0/+1
2020-12-22Make last_updated field automatically update.Gravatar Leon Sandøy-8/+25
Previously, we were operating under a bad assumption that we would be updating the last_updated field in the RepositoryMetadata objects whenever we updated the objects with new data from the GitHub API. Upon closer inspection, this is not at all what we're doing, and some of those repository objects had not been updated in over a year! This introduces `auto_now` to the field, which will ensure that it is automatically updated whenever the object is updated.
2020-12-21Change pydis-site to site in Sentry SDK initializationGravatar ks129-1/+1
2020-12-21Change pydis-site to site in workflowGravatar ks129-1/+1
2020-12-20Fix Git SHA getting in workflowGravatar ks129-1/+1
2020-12-20Don't include .git in Docker containerGravatar ks129-0/+1
2020-12-20Remove GitPython dependencyGravatar ks129-27/+2
2020-12-20Get Git SHA from environement instead of GitPython packageGravatar ks129-4/+2
2020-12-20Set Git SHA during build workflowGravatar ks129-0/+2
2020-12-20Add Git SHA consuming and putting to environment in DockerfileGravatar ks129-1/+5
2020-12-20Bump Sentry SDK version from 0.14 to 0.19Gravatar ks129-154/+167
2020-12-19Update verified_at fields to joined_at fieldsGravatar Joe Banks-7/+7
2020-12-19Swap verified_at for joined_atGravatar Joe Banks-1/+2
2020-12-16Add codeowner entires for ks129Gravatar ks129-1/+4
2020-12-13Increase per_page to 100 for GitHub API call.Gravatar Leon Sandøy-1/+1
Snekbox was being banished to page 2 and we were not iterating pages, so it was not appearing in the data we got from our call to /repos. This commit changes the request to use `per_page=100`, which will work at least until we have >100 repos in our organisation.
2020-12-13Clean up stale metadata when HomeView starts.Gravatar Leon Sandøy-0/+40
We don't want to keep lots of old metadata for repos we no longer need to track on the frontpage. Previously, whenever we changed the frontpage line-up, we'd be left with useless, stale data in the database. This fixes that, and adds tests.
2020-12-13Remove pointless try/except.Gravatar Leon Sandøy-24/+7
I don't think we need to check for TypeError here, so that saves us the trouble of testing these lines to appease coverage.
2020-12-13Add a test repo with bad types.Gravatar Leon Sandøy-1/+8
This should restore 100% coverage.
2020-12-13Fix test for HomeView.Gravatar Leon Sandøy-7/+1
Instead of building "fake repos", we're now just omitting them, so this test needs to be updated.
2020-12-13Add even more sanity for the HomeView.Gravatar Leon Sandøy-72/+81
This rewrite will ensure we always return whichever repositories we're able to resolve, and none of the others. It also shortens the code, shrinks all the try/excepts, and generally makes things a little more readable.
2020-12-13Completely remove Projects section if no data.Gravatar Leon Sandøy-48/+50
Instead of showing an empty Projects section, we'll just omit it if we can't resolve any of our projects. Otherwise, we'll show the projects we can resolve.
2020-12-13Add some sanity to frontpage projects.Gravatar Leon Sandøy-16/+22
If no API data is available, the front page shouldn't crash and burn. This commit will ensure the front page will just render without the projects it can't get API data for instead of crashing the whole thing.
2020-12-12Fix incorrectly specified environment variableGravatar Sebastiaan Zeeff-1/+1
When I changed the name of SITE_SENTRY_DSN to SITE_DSN, I accidentally left an old reference in place.
2020-12-12Change env var from SITE_SENTRY_DSN to SITE_DSNGravatar Sebastiaan Zeeff-1/+1
The name of the environment variable was shortened during our refactor of the Sentry secrets. Changed `settings.py` to reflect that change.
2020-12-11Update README to trigger redeploy.Gravatar Leon Sandøy-1/+1
2020-12-11Make sure to always upload PR artifact Gravatar Sebastiaan Zeeff-1/+1
We need to make sure that we always upload our PR artifact, even if linting/testing fails. As GitHub Actions inserts an implicit "success" status check if you don't add any explicit status checks, this means that we have to include an "always" status check, even if this step has a condition relying on another "always" step.
2020-12-10Send an enhanced workflow status embed to discordGravatar Sebastiaan Zeeff-0/+100
Similar to Sir Lancebot and bot, I've added enhanced GitHub Actions status embeds to our workflow sequence. This means we get fewer embeds, but with more information!
2020-12-09Add tests for infraction deletion methodGravatar ks129-0/+30
2020-12-06Update CODEOWNERS for @Den4200Gravatar Dennis Pham-7/+4