Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hhk7734/hhk7734-bot.ts
hhk7734 github probot for automation
https://github.com/hhk7734/hhk7734-bot.ts
automation github probot typescript
Last synced: 4 days ago
JSON representation
hhk7734 github probot for automation
- Host: GitHub
- URL: https://github.com/hhk7734/hhk7734-bot.ts
- Owner: hhk7734
- Created: 2022-08-10T14:00:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-27T15:42:06.000Z (12 months ago)
- Last Synced: 2024-11-01T05:06:58.253Z (about 2 months ago)
- Topics: automation, github, probot, typescript
- Language: TypeScript
- Homepage:
- Size: 122 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## .env
- https://probot.github.io/docs/configuration/
추가적으로 `GITHUB_TOKEN`을 지원합니다.
`GITHUB_TOKEN`을 사용하면 `APP_ID`와 `PRIVATE_KEY[_PATH]`는 무시하게 됩니다.
## Github Event
Settings -> Developer settings -> GitHub Apps -> `` -> Edit -> Advanced
에서 이벤트 Payload를 확인할 수 있습니다.
## Slack
### Block kit
- https://app.slack.com/block-kit-builder
Block kit 빌더를 활용하면 전송될 메시지를 미리 확인할 수 있습니다.
```typescript
const isSuccess = context.payload.workflow_run.conclusion === 'success';
await slackClient.chat.postMessage({
channel: 'XXXXXX',
attachments: [
{
color: isSuccess ? '#36a64f' : '#d63232',
blocks: [
{
type: 'section',
text: {
type: 'plain_text',
text: `Github CD ${isSuccess ? '성공' : '실패'}했습니다.${
isSuccess ? ':sunglasses:' : ':collision::collision::collision:'
}`,
emoji: true
}
}
]
}
]
});
```