test sites list
This commit is contained in:
parent
96e2b72b7f
commit
abd93bbac7
@ -41,6 +41,7 @@ class GitlabPipelineSkill(Skill):
|
||||
async def _get_help(self):
|
||||
return_text = f"*Help*\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 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> update inventory <id> - Updates inventory sources for inventory in specific project```\n"
|
||||
@ -59,4 +60,7 @@ class GitlabPipelineSkill(Skill):
|
||||
async def list_help(self, message):
|
||||
help_print = await self._get_help()
|
||||
|
||||
await message.respond(f"{help_print}")
|
||||
@match_regex(r"^/gitlab sites$")
|
||||
async def list_gitlab_sites(self, message):
|
||||
sites_print = [i["site"] for i in self.config.sites]
|
||||
await message.respond(f"{sites_print}")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user