Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
github
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
maubot
github
Commits
b17a052d
Commit
b17a052d
authored
2 years ago
by
Tulir Asokan
Browse files
Options
Downloads
Patches
Plain Diff
Use new wrapper for creating background tasks
parent
b2f2b12a
No related branches found
No related tags found
No related merge requests found
Pipeline
#10642
passed
1 year ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
github/bot.py
+2
-2
2 additions, 2 deletions
github/bot.py
maubot.yaml
+1
-1
1 addition, 1 deletion
maubot.yaml
with
3 additions
and
3 deletions
github/bot.py
+
2
−
2
View file @
b17a052d
...
@@ -14,11 +14,11 @@
...
@@ -14,11 +14,11 @@
# You should have received a copy of the GNU Affero General Public License
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
# along with this program. If not, see <https://www.gnu.org/licenses/>.
from
typing
import
Type
from
typing
import
Type
import
asyncio
from
sqlalchemy
import
MetaData
from
sqlalchemy
import
MetaData
from
maubot
import
Plugin
from
maubot
import
Plugin
from
mautrix.util
import
background_task
from
.db
import
Database
from
.db
import
Database
from
.webhook
import
WebhookManager
,
WebhookHandler
from
.webhook
import
WebhookManager
,
WebhookHandler
...
@@ -93,7 +93,7 @@ class GitHubBot(Plugin):
...
@@ -93,7 +93,7 @@ class GitHubBot(Plugin):
self
.
commands
.
reload_config
()
self
.
commands
.
reload_config
()
if
self
.
config
[
"
reset_tokens
"
]:
if
self
.
config
[
"
reset_tokens
"
]:
asyncio
.
create
_task
(
self
.
reset_tokens
())
background_task
.
create
(
self
.
reset_tokens
())
@classmethod
@classmethod
def
get_config_class
(
cls
)
->
Type
[
Config
]:
def
get_config_class
(
cls
)
->
Type
[
Config
]:
...
...
This diff is collapsed.
Click to expand it.
maubot.yaml
+
1
−
1
View file @
b17a052d
maubot
:
0.
3.0
maubot
:
0.
4.1
id
:
xyz.maubot.github
id
:
xyz.maubot.github
version
:
0.1.2
version
:
0.1.2
license
:
AGPL-3.0-or-later
license
:
AGPL-3.0-or-later
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment