test
This commit is contained in:
parent
0748ed9dff
commit
b13ced0e6e
14
__init__.py
14
__init__.py
@ -40,10 +40,10 @@ class GitlabPipelineSkill(Skill):
|
|||||||
|
|
||||||
async def _get_help(self):
|
async def _get_help(self):
|
||||||
return_text = f"*Help*\n"
|
return_text = f"*Help*\n"
|
||||||
return_text = f"{return_text}```/gitlab help - returns this help screen```\n"
|
return_text = f"{return_text}```gitlab help - returns this help screen```\n"
|
||||||
return_text = f"{return_text}```/gitlab sites - returns avaiable gitlab sites```\n"
|
return_text = f"{return_text}```gitlab sites - returns avaiable gitlab sites```\n"
|
||||||
return_text = f"{return_text}```/gitlab list projects - Returns project keywords and urls```\n"
|
return_text = f"{return_text}```gitlab list projects - Returns project keywords and urls```\n"
|
||||||
return_text = f"{return_text}```/gitlab <project> pipeline last - Returns name, status and id for last pipeline in specific project```\n"
|
return_text = f"{return_text}```gitlab <project> pipeline last - Returns name, status and id for last pipeline in specific project```\n"
|
||||||
# return_text = f"{return_text}```gitlab <project> update inventory <id> - Updates inventory sources for inventory in specific project```\n"
|
# return_text = f"{return_text}```gitlab <project> update inventory <id> - Updates inventory sources for inventory in specific project```\n"
|
||||||
# return_text = f"{return_text}```gitlab <project> list running jobs - Returns information about running jobs for specific project```\n"
|
# return_text = f"{return_text}```gitlab <project> list running jobs - Returns information about running jobs for specific project```\n"
|
||||||
# return_text = f"{return_text}```gitlab <project> list failed jobs - Returns information about last 5 failed jobs for specific project```\n"
|
# return_text = f"{return_text}```gitlab <project> list failed jobs - Returns information about last 5 failed jobs for specific project```\n"
|
||||||
@ -56,16 +56,16 @@ class GitlabPipelineSkill(Skill):
|
|||||||
# return_text = f"{return_text}```gitlab <project> update project <id> - Updated a project by id```\n"
|
# return_text = f"{return_text}```gitlab <project> update project <id> - Updated a project by id```\n"
|
||||||
return return_text
|
return return_text
|
||||||
|
|
||||||
@match_regex(r"^/gitlab help$")
|
@match_regex(r"^gitlab help$")
|
||||||
async def list_help(self, message):
|
async def list_help(self, message):
|
||||||
help_print = await self._get_help()
|
help_print = await self._get_help()
|
||||||
await message.respond(f"{help_print}")
|
await message.respond(f"{help_print}")
|
||||||
|
|
||||||
@match_regex(r"^/gitlab sites$")
|
@match_regex(r"^gitlab sites$")
|
||||||
async def list_gitlab_sites(self, message):
|
async def list_gitlab_sites(self, message):
|
||||||
sites_print = [i for i in self.config['sites']]
|
sites_print = [i for i in self.config['sites']]
|
||||||
await message.respond(f"{sites_print}")
|
await message.respond(f"{sites_print}")
|
||||||
|
|
||||||
@match_regex(r"^ping")
|
@match_regex(r"ping")
|
||||||
async def ping(self, event):
|
async def ping(self, event):
|
||||||
await event.respond('World')
|
await event.respond('World')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user