ogrodnek / code-pipeline-slack Goto Github PK
View Code? Open in Web Editor NEWSlack bot for code pipeline deployments
License: Apache License 2.0
Slack bot for code pipeline deployments
License: Apache License 2.0
I cant find any documentation on how to get the bot installed onto slack. Do I make my own bot? Does it have any code associated with it? Is all I have to do is click on the Launch Stack button and input the correct information in AWS and then create my own bot with no funcitonality?
The SLACK_CHANNEL I put is a private channel in slack.
'channels': KeyError
Traceback (most recent call last):
File "/var/task/notifier.py", line 98, in run
m = process(event)
File "/var/task/notifier.py", line 91, in process
processCodePipeline(event)
File "/var/task/notifier.py", line 56, in processCodePipeline
existing_msg = find_message_for_build(buildInfo)
File "/var/task/slack_helper.py", line 40, in find_message_for_build
for m in find_my_messages("builds"):
File "/var/task/slack_helper.py", line 28, in find_my_messages
ch_id = find_channel(ch_name)
File "/var/task/slack_helper.py", line 17, in find_channel
for ch in r['channels']:
KeyError: 'channels'
Hi there,
I have been setup Lambda and Codepipelines successfully and the Cloudwatch Event is working now. The Slack Tokens are work with #builds channel as well.
However, Lambda function seems not works, I always received an error message like this:
list indices must be integers, not str: TypeError
Traceback (most recent call last):
File "/var/task/notifier.py", line 98, in run
m = process(event)
File "/var/task/notifier.py", line 90, in process
if event['source'] == "aws.codepipeline":
TypeError: list indices must be integers, not str
Anyone knows why?
Thank you so much!
Dependabot couldn't authenticate with https://pypi.python.org/simple/.
You can provide authentication details in your Dependabot dashboard by clicking into the account menu (in the top right) and selecting 'Config variables'.
I'm trying to deploy this into another region, but it's causing me problems - Is there a way I can do this?
Thanks,
I believe the templateURL
doesn't have the latest changes of master
branch. There's no SlackOAuthAccessToken
or SlackBotUserOAuthAccessToken
.
Hi, this bot looks really nice. But would it be possible to add support for manual approval actions to it? Something like this example, but all built into one bot.
I tried to install it in our region eu-central-1 but I got the error he can't reach the bucket (because it's in region us-west-2).
can you also create a bucket with the files in the regio eu-central-1?
This is unfortunately non functional.
The deploy buttons that trigger cloud formation directly are using a different version of code than the master branch. I have pulled down the master branch and tried to deploy it manually to cloud formation but there are so many dependency issues the lambda will not even run.
From the deploy button:
Response:
{
"stackTrace": [
[
"/var/task/notifier.py",
98,
"run",
"m = process(event)"
],
[
"/var/task/notifier.py",
90,
"process",
"if event['source'] == \"aws.codepipeline\":"
]
],
"errorType": "TypeError",
"errorMessage": "list indices must be integers, not str"
}
From the master branch:
Response:
{
"errorMessage": "Unable to import module 'notifier'"
}
The Slack Bot I have configured, it is not updating (chat.update
) the original message. It is posting a new message for each change in my pipeline. Your gif shows that it should be updating the original message as the steps are being executed in the pipeline.
Please advise.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.