fix: wrong commit message

This commit is contained in:
Bo-Yi Wu 2019-10-11 20:47:36 +08:00
parent 86b2493453
commit eaddfb222e
2 changed files with 2 additions and 2 deletions

View File

@ -347,7 +347,7 @@ steps:
pull: always pull: always
image: appleboy/drone-telegram:1.3.1 image: appleboy/drone-telegram:1.3.1
settings: settings:
message: "{{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit. message}} ```\n\n🌐 {{ build.link }} {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit. message}} ```\n\n🌐 {{ build.link }} {{/success}}\n" message: "{{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{/success}}\n"
to: to:
from_secret: telegram_to from_secret: telegram_to
token: token:

View File

@ -237,7 +237,7 @@
settings: { settings: {
to: { from_secret: 'telegram_to' }, to: { from_secret: 'telegram_to' },
token: { from_secret: 'telegram_token' }, token: { from_secret: 'telegram_token' },
message: '{{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit. message}} ```\n\n🌐 {{ build.link }} {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit. message}} ```\n\n🌐 {{ build.link }} {{/success}}\n', message: '{{#success build.status}} ✅ Build #{{build.number}} of `{{repo.name}}` succeeded.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{else}} ❌ Build #{{build.number}} of `{{repo.name}}` failed.\n\n📝 Commit by {{commit.author}} on `{{commit.branch}}`:\n``` {{commit.message}} ```\n\n🌐 {{ build.link }} {{/success}}\n',
}, },
}, },
{ {