Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Add option bot_icon #461

Merged
merged 3 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ inputs:
required: false
description: ISO code for the response language
default: en-US
bot_icon:
required: false
description: 'The icon for the bot'
default: '<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20">'
runs:
using: 'node16'
main: 'dist/index.js'
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/commenter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {info, warning} from '@actions/core'
import {getInput, info, warning} from '@actions/core'
harjotgill marked this conversation as resolved.
Show resolved Hide resolved
// eslint-disable-next-line camelcase
import {context as github_context} from '@actions/github'
import {octokit} from './octokit'
Expand All @@ -7,7 +7,7 @@ import {octokit} from './octokit'
const context = github_context
const repo = context.repo

export const COMMENT_GREETING = `<img src="https://avatars.githubusercontent.com/in/347564?s=41" alt="Image description" width="20" height="20"> CodeRabbit`
export const COMMENT_GREETING = `${getInput('bot_icon')} CodeRabbit`
harjotgill marked this conversation as resolved.
Show resolved Hide resolved

export const COMMENT_TAG =
'<!-- This is an auto-generated comment by OSS CodeRabbit -->'
Expand Down