Comments (4)
Fixed in #60
from cpthook.
This line seems relevant: https://github.com/fleaz/CptHook/blob/master/input/gitlab.go#L138
from cpthook.
@herbetom That's indeed the template which gets used for the commit message but you can't call arbitrary functions like e.g. split in a template.
The two options I see are either a custom template function like firstLine
which we then can call in the template or we tackle this in line 411 and split the commit message before loading the data into the template.
from cpthook.
I only looked for maybe 30s for that line. My "idea" was that you could insert instead of Message
something diffrent. But since Message
isn't used somewhere else i would rename Message
in 138 to title and split it in 411 (and also rename it). Or just add another line around 411 for the title and keep Message arround for the future.
from cpthook.
Related Issues (20)
- [prometheus] Hostname filter does not work with IPv6 addresses
- Ping/Pong behaviour HOT 1
- configuration for unknown module raises error HOT 1
- Allow configuring max commits in gitlab module HOT 1
- http: Accept error: accept tcp [::]:8086: accept4: too many open files HOT 4
- Add GitHub Module
- Backwards compatibility HOT 1
- Update README.md HOT 1
- Relicensing HOT 4
- Logging needs to offer more information
- GitLab: Match most specific namespace, not first one HOT 1
- Remove webhook parsing code by using librarys
- Switch to main branch HOT 1
- Add debug module
- v0.6.0 depends on github.com/hashicorp/hcl/hcl/printer which doesn't exist anymore HOT 7
- Slack/Discord/Mattermost like webhooks? HOT 2
- RELAYMSG support?
- Wrong LICENSE in README
- spelling "custpm"
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 cpthook.