aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/api/views.py (follow)
Commit message (Collapse)AuthorAgeLines
* Add `job`, `jobs` as additional keywords for invoking rule 9Gravatar Matiiss2025-07-22-1/+1
|
* Remove unnecessary S310 noqaGravatar wookie1842024-08-02-1/+1
|
* Allow some bots through the GitHub Webhook FilterGravatar Joe Banks2024-06-16-1/+13
| | | | | | | | | | | This allows the Fast Forward bot and GitHub Actions scripts through the webhook filter. * Fast Forward bot should be allowed as otherwise any event created by this bot (i.e. it's merges to main) are not reported into Discord as it is considered a bot payload * GitHub Actions are generally things we have created ourselves and are not normally high noise, and as such are also worth reporting
* Log failed webhook attempts to stderr in GitHub Webhook FilterGravatar Joe Banks2024-04-01-1/+13
|
* No need to remove headers in GitHub Filter EndpointGravatar Joe Banks2024-04-01-2/+0
|
* Don't propagate the status received from Discord to GitHub WebhookGravatar Joe Banks2024-04-01-1/+8
|
* Simplify is_bot_pr_approval logicGravatar Chris Lovering2023-12-12-4/+1
|
* Convert to lower case before checking equalityGravatar Chris Lovering2023-12-12-8/+8
|
* Log a warning when being ratelimtted by GithubGravatar Chris Lovering2023-12-11-0/+9
|
* Implement the github-filter worker in the APIGravatar Johannes Christ2023-12-11-0/+104
| | | | | | | | | | | | The current github-filter worker, found at https://github.com/python-discord/workers/blob/main/github-filter/src/index.ts, fails to work at present because Discord's webhook endpoints block Cloudflare's IP ranges from accessing this endpoint. Whilst they use Cloudflare to guard themselves, it seems they do not wish others to use it. Implement it on the site to circumvent IP restrictions and allow to modify the code in Python.
* Add alias "hire" for rule 9Gravatar ~hedy2023-12-08-1/+1
| | | ref: https://discord.com/channels/267624335836053506/429409067623251969/1182407804787626047
* Add "pay" alias for rule tagGravatar Anonymous2023-08-11-1/+1
|
* Add new rule aliases (#1007)Gravatar Johannes Christ2023-06-26-4/+4
| | | | | | | | * Correct indent for GPT rule * Add new aliases for rule 4 and 8 See suggestion in #1001. Closes #1001.
* Switch to ruff for lintingGravatar Johannes Christ2023-05-10-2/+2
|
* Crosscheck rules between API and static rulesGravatar Johannes Christ2023-04-21-1/+1
|
* update rule 5 (#943)Gravatar Amrou Bellalouna2023-04-16-3/+3
|
* add rule 10 to the listGravatar shtlrs2023-03-21-0/+4
|
* replace parenthesis with square brackets since tuples are serialized are listsGravatar Amrou Bellalouna2022-09-18-3/+3
|
* restrict the RulesView docstrings to just what it doesGravatar Amrou Bellalouna2022-09-18-3/+2
|
* replace sweet with "sweets" to refer more to candyGravatar Amrou Bellalouna2022-09-18-1/+1
|
* update the RulesView class' docstringsGravatar Amrou Bellalouna2022-09-18-4/+7
|
* make docstring more explicit about the returned contentGravatar Amrou Bellalouna2022-09-18-1/+6
|
* add suggested keywordsGravatar Amrou Bellalouna2022-09-18-9/+9
|
* add docstrings explaining the values that the Rules view returnsGravatar Amrou Bellalouna2022-09-18-0/+1
|
* add collection of keywords per ruleGravatar Amrou Bellalouna2022-08-18-9/+18
| | | | | | In reference to issue #2108, this commit aims to add an initial set of keywords per rule. These keywords will be later in the "rule" bot command in order to make rule identification easier
* Add GitHub Artifact API ViewGravatar Hassan Abouelela2022-07-12-0/+53
| | | | | | Adds an API route to fetch GitHub build artifacts through a GitHub app. Signed-off-by: Hassan Abouelela <[email protected]>
* Update rules viewsetGravatar Chris2021-05-15-12/+16
| | | | This is to reflect the recent changes made to the server rules.
* Update rule 5Gravatar Joe Banks2020-10-01-2/+3
|
* Update rule 6 for the removal of #show-your-projectsGravatar Dennis Pham2020-08-08-1/+2
|
* Add more pre-commit hooksGravatar MarkKoz2020-03-04-2/+2
| | | | | | | | | | | | | | | | | | | | | | Hooks added: * check-merge-conflict - checks for files with merge conflict strings * check-toml - attempts to load all toml files to verify syntax * check-yaml - attempts to load all yaml files to verify syntax * end-of-file-fixer - ensures files end in a newline and only a newline * mixed-line-ending - replaces mixed line endings with LF * trailing-whitespace - trims trailing whitespace * python-check-blanket-noqa - enforces that noqa annotations always occur with specific codes Changes made to comply with new hooks: * Remove trailing whitespaces * Remove some useless noqa annotations * Specify errors for noqa annotations * Add missing newlines at end of files See: python-discord/organisation#138
* Correct the discord tos link in rules endpoint.Gravatar scragly2019-11-20-1/+1
|
* Add new rules.Gravatar scragly2019-10-26-32/+18
|
* Update linting rules & partially relintGravatar sco12019-09-18-1/+1
|
* Give a code a lintGravatar Jeremiah Boby2019-07-10-1/+0
|
* A whole bunch of docstrings.Gravatar Gareth Coles2019-04-21-2/+4
|
* Address review by @lemonsaurusGravatar Gareth Coles2019-04-06-1/+1
|
* Address review by @jchristgitGravatar Gareth Coles2019-04-05-1/+1
|
* pysite -> pydis_siteGravatar Gareth Coles2019-04-05-0/+161