Comments (8)
@raisedadead I dont understand. serverless.yml
configures deployment, not build notifications.
from open-api.
Yes, I was confused as well, but this is the place where the webhook is configured
Line 37 in a339616
from open-api.
Actually in 2 places: serverless.yml
and .travis.yml
. You can't configure Travis notifications much and it would surprise me if it would notify for forks. If it does we probably want to look in alternative way of doing notifications. See https://docs.travis-ci.com/user/notifications/#Default-notification-settings
from open-api.
Btw, you are right that forks that use sls deploy will not notify our channel, which we probably do not want. Agreed that is enough reason to put it under a variable.
That still leaves Travis notifications. I'm not convinced they work at the moment, I did get a green buid notification when staging recovered in my mailbox but see nothing on the Gitter channel.
Happy to look into both issues I mentioned above tomorrow.
Notes to self: the Travis integrations works, but only show in the 'activity stream in the right'. This is not what is configured in .travis.yml
. If I hit the endpoint in the room settings for "custom" I get a {"error":"Not Found"}
. Is this "custom" integration broken? Need to do some testing here..
Ooh annoying, I can't get anything to send to the "custom" integration I've configured, but if I create a new one it works. It's a bit disappointing in that it only shows up in right pane and is very easy to miss.
from open-api.
Yes, that's how gitter is setup for notification. I think it in future, we can have a combination of the camperbot and camper-gh-bot doing this for us.
from open-api.
I did get a green buid notification when staging recovered in my mailbox but see nothing on the Gitter channel.
Yup.. I have no clue on that, but my fork's builds do end up showing on that sidebar. Which we as a org do not want.
from open-api.
Sounds like we want to:
- Remove the Gitter Travis integration as it does not allow fine grained control
- Keep the notifications settings in
.travis
, but remove the current webhook, create a new one and store it as as secure variable so it is not available to forks - Update
serverless.yml
to use the secure variable so local deploys from forks do not announce their deployments for use.
How does that approach sound to you @raisedadead ?
from open-api.
A day of Yak shaving! Today I learned:
Webhooks, Gitter and Travis ๐คจ
- You can add custom webhooks, which do not support much but "message=hey mom". If you let Travis send to the custom webhook you see nothing and get no notification nor error message
- You can configure secret variables, and they are accessible by scripts etc but will be casually ignored by Travis if it's about configuring notifications. If you add and encrypted variable it will work just fine.
Related PR: #118 -sparing you the spurious PRs and commits of me adding ngrok webhooks to see if Travis was actually sending anything and if so what, and adding silly things to break builds.
Yarn vs NPM ๐ฉ
serverless-pluging-notification
has a maintainer that package accepted changes but did not publish a new NPM package. I fairly quickly found out -as expected that you can just add the git url including commit you want and it Just Works.
however if you then think you are clever and use Yarn, things can fall apart if your toolchain relies on NPM -I guess I hit a bug but am currently out of time, energy or interest to chase that up. In this cases Serverless uses NPM internally and expects npm ls
to work as expected. Well it won't ๐คช
My hack was to fork the NPM package, bump the version and publish my copied package -I've notified the maintainer of the original package that I'd be happy to nuke it after he gets his act together.
Related PRs maasglobal/serverless-plugin-notification#5 #112
/cc @Bouncey for your entertainment ๐ฟ
from open-api.
Related Issues (20)
- Duplicate user creation should return error HOT 1
- Can't createUser with the header generated by `yarn generate-auth-header` HOT 5
- Configure GitHub Releases & Changelogs
- Configure Publishing to NPM HOT 2
- Release v1.0.0 HOT 2
- CNAMEs and HTTPS certificates HOT 7
- Handle empty body HOT 1
- Handle invalid JSON HOT 1
- Inactive Days HOT 3
- View Users Solutions HOT 20
- yarn generate-auth-header not working HOT 3
- Agree on using an external uuid that is not coupled to any implementation HOT 1
- Update integration test snapshot HOT 1
- Schema validation
- Create updateCommunityEvent HOT 3
- Remove duplication in tests HOT 1
- Port one query from loopback to open-api
- Create overview of outstanding issues that prevent going to prod
- Investigate running in Azure
- Create a role system for API use HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-api.