aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py (unfollow)
Commit message (Collapse)AuthorLines
2023-03-07Update all dependencies to latestGravatar Chris Lovering-712/+846
2023-03-07Bump markdownify from 0.6.1 to 0.11.6 (#2429)Gravatar dependabot[bot]-13/+40
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: wookie184 <[email protected]>
2023-03-07Bump SebastiaanZ/github-status-embed-for-discord from 0.2.1 to 0.3.0 (#2448)Gravatar dependabot[bot]-1/+1
Bumps [SebastiaanZ/github-status-embed-for-discord](https://github.com/SebastiaanZ/github-status-embed-for-discord) from 0.2.1 to 0.3.0. - [Release notes](https://github.com/SebastiaanZ/github-status-embed-for-discord/releases) - [Commits](https://github.com/SebastiaanZ/github-status-embed-for-discord/compare/v0.2.1...v0.3.0) --- updated-dependencies: - dependency-name: SebastiaanZ/github-status-embed-for-discord dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-06Bump actions/upload-artifact from 2 to 3Gravatar dependabot[bot]-1/+1
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
2023-03-05Make sure channel parent isn't None (#2441)Gravatar Boris Muratov-1/+1
This shouldn't happen, but the type hint says it can so but just in case.
2023-03-05Group thread stats under parent channel (#2440)Gravatar Boris Muratov-6/+5
Also makes make the stat name slightly more robust to small name changes.
2023-03-03Bump redis from 4.3.5 to 4.4.2Gravatar dependabot[bot]-9/+8
Bumps [redis](https://github.com/redis/redis-py) from 4.3.5 to 4.4.2. - [Release notes](https://github.com/redis/redis-py/releases) - [Changelog](https://github.com/redis/redis-py/blob/master/CHANGES) - [Commits](https://github.com/redis/redis-py/compare/v4.3.5...v4.4.2) --- updated-dependencies: - dependency-name: redis dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2023-03-03Bump sentry-sdk from 1.11.1 to 1.16.0Gravatar dependabot[bot]-5/+9
Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.11.1 to 1.16.0. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/1.11.1...1.16.0) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2023-03-03Bump action versions in CI (#2433)Gravatar ChrisJL-9/+7
2023-03-03Bump pydis-core from 9.5.0 to 9.5.1Gravatar dependabot[bot]-9/+9
Bumps [pydis-core](https://github.com/python-discord/bot-core) from 9.5.0 to 9.5.1. - [Release notes](https://github.com/python-discord/bot-core/releases) - [Changelog](https://github.com/python-discord/bot-core/blob/main/docs/changelog.rst) - [Commits](https://github.com/python-discord/bot-core/compare/v9.5.0...v9.5.1) --- updated-dependencies: - dependency-name: pydis-core dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2023-03-03Bundle workflows into a "main" CI flow (#2425)Gravatar Amrou Bellalouna-84/+99
* bundle build & deploy into a single workflow * delete separate build & deploy wokrflows * trigger status embed on the new bundled "Build & Deploy" workflow * Call linting & build-deployment workflows from main * keep one empty line in workflow files * use v4 of k8s deploy * yeet kubectl version * use v3 of k8s-set-context * setup kubectl config using the setup-kubectl v3 action * use v2 of the checkout action * add dependabot config * add new line for dependabot.yml * update path of the sentry_release workflow * update path of the lint-test workflow * specify push branch * update the sentry_release workflow path, again * update sentry_release's trigger to workflow_call * update lint-test's trigger to workflow_call * remove extra line at the end * unify usage of quotes * update concurrency groups of reusable local workflows * appease our dear linter with a blank line * always run status embed * Revert "always run status embed" This reverts commit 2f69fd77b212337ff45bf7815783030bc6099452. * remove colons after workflow_call * remove empty line at the end * Revert "remove empty line at the end" This reverts commit 223bef4159c76f1968878fe312b5fbc16544549b. * echo event name in status embed * try running status embed on bot ci/cd wf * run ci/cd on push to main * reinstate the Lint & Test trigger for status embed * rename main wf name to "CI" This also triggers status embed on that name * add group-workflows to the list of branches * remove test step * trigger status embed on ci only * trigger main on main branch only * remove concurrency groups in lint-test & sentry-release workflows
2023-03-03Add CI to the list of trigger workflow runs (#2426)Gravatar Amrou Bellalouna-0/+1
Co-authored-by: ChrisJL <[email protected]>
2023-03-03Edit comment to match wookie's reviewGravatar Ibrahim-2/+3
2023-03-03Wookie's reviewGravatar Mohammad Ibrahim-1/+1
+ Double quotes for consistency + Using results["stdout"] instead of output so the warning is still displayed if the error doesn't fit in the message. + Using endswith so we don't need to hardcode the constant. Co-authored-by: wookie184 <[email protected]>
2023-03-01Add warning message when using `input`Gravatar Ibrahim-1/+7
2023-02-28add the `flags` key to the member_data dictionaryGravatar shtlrs-1/+1
The value 2 represents the `COMPLETED_ONBOARDING` flag, found here https://discord.com/developers/docs/resources/guild#guild-member-object-guild-member-flags
2023-02-28bump pydis-core to 9.5.0Gravatar shtlrs-1107/+1107
2023-02-27Include embed titles in all tags (#2419)Gravatar Mohammad Ibrahim-124/+327
* Add title and remove heading + also changed any mentioning of `!tags` command * Fixed yaml scan errors + using tabs instead of spaces + enclosed title in `comparison.md` with quotes * Implement ChrisLovering reviews + changed all "Name1 vs. Name2" to "Name1 vs. name2" + changed "python discord" to "Python Discord" in titles + fix typos + reverting hunk for `dotenv.md` + changed all title cases to sentence cases * fix grammar + changed "embed" to "embeds" * remove other ot channels mentioned except ot2 * Fix mistakenly removing a blank line
2023-02-27Implement shtlrs reviewsGravatar Ibrahim-14/+19
+ removed using of discord.User + update docstring for `get_command_ctx` + renamed user variables to member
2023-02-26Add line about the pastebin.Gravatar Steele-0/+2
Simply adds "For long code samples, you can use our pastebin" as a new final line.
2023-02-26Implement reviewsGravatar Ibrahim-64/+32
+ used both `discord.User` and `discord.Member` in typehinting as `InteractionResponse.user` returns `discord.User` object + removed `ErrorHandler()._can_run` + edited `try_get_tag` to use `bot.can_run` + removed `/tag list` + change `/tag get <name>` to `/tag <name>` + remove redundant `GUILD_ID` in `tags.py` + using `discord.abc.Messageable` because `ctx.channel` returns that instead of `Channel` Object
2023-02-25Fix timeit commands with backticks after command nameGravatar wookie184-9/+16
2023-02-23Upadte docstring for `ErrorHandler()._can_run`Gravatar Ibrahim-1/+2
2023-02-23Implement all reviewsGravatar Ibrahim-72/+125
+ Remove commented code + Remove unecessarily syncting the bot + Handle direct tag commads + 3.10 type hinting in concerned functions + Add `MockInteractionMessage` + Fix tests for `try_get_tag`
2023-02-17bump isort to 5.12.0 in precommit configGravatar Amrou-1/+1
2023-02-14Revert "Merge PR #2400: Reusable status embed workflow"Gravatar Amrou Bellalouna-59/+63
This reverts commit 2f8efdc646492707f6a9647fcbc4d71678181b90.
2023-02-14Update tests for `/tag` as of migration to slash commandsGravatar Ibrahim2750mi-30/+56
2023-02-14Merge PR #2400: Reusable status embed workflowGravatar Amrou Bellalouna-63/+59
* make status embed reusable * invoke status embed from lint-test * trigger status embed from within deploy workflow * trigger status embed from build wf * update extension of referenced reusable workflow * add github.sha to construct the concurrency group * always call the status_embed from build & deploy
2023-02-14Migrated `!tags` command to slash command `/tag`Gravatar Ibrahim2750mi-104/+76
2023-02-13Add legacy help access to self-assignable rolesGravatar mbaruh-0/+3
2023-02-11Update bot/exts/moderation/infraction/_utils.py Gravatar Steele Farnsworth-1/+1
Put the bot mention in parentheses. This is intended to make the message clearer, in the unlikely circumstance that someone does not have the ModMail bot account in their user cache. Co-authored-by: Vivek Ashokkumar <[email protected]>
2023-02-09bump pydis core to 9.4.1Gravatar shtlrs-10/+10
2023-01-25fix typo in help channel opening embedGravatar Bradley Reynolds-1/+1
2023-01-23Update closed help post embed textGravatar Chris Lovering-9/+6
2023-01-23Add action text to help channel embedsGravatar Chris Lovering-2/+3
2023-01-23Add icons to help channel bot embedsGravatar Chris Lovering-4/+8
2023-01-14Trim query in command not found error to avoid embed limitsGravatar wookie184-3/+8
2023-01-14fix typos in the SELF_ASSIGNABLE_ROLES_MESSAGEGravatar shtlrs-1/+1