Skip to content

Commit

Permalink
Create a white circle around icons
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonScholz committed Sep 22, 2023
1 parent 0ab3ec3 commit d0768d2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
Binary file added assets/git-branch-128-circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/git-branch-128-white.png
Binary file not shown.
Binary file added assets/github-128-circle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/github-128-white.png
Binary file not shown.
8 changes: 4 additions & 4 deletions dist/index.js

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

12 changes: 6 additions & 6 deletions src/cardSection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import {

const gitHubIconUrl =
'https://raw.githubusercontent.com/SimonScholz/google-chat-action/main/assets/github-128.png'
const gitHubIconUrlWhite =
'https://raw.githubusercontent.com/SimonScholz/google-chat-action/main/assets/github-128-white.png'
const gitHubCircleIconUrl =
'https://raw.githubusercontent.com/SimonScholz/google-chat-action/main/assets/github-128-circle.png'
const gitBranchIconUrl =
'https://raw.githubusercontent.com/SimonScholz/google-chat-action/main/assets/git-branch-128.png'
const gitBranchIconUrlWhite =
'https://raw.githubusercontent.com/SimonScholz/google-chat-action/main/assets/git-branch-128-white.png'
const gitBranchCircleIconUrl =
'https://raw.githubusercontent.com/SimonScholz/google-chat-action/main/assets/git-branch-128-circle.png'

export function createCardV2Section(): object[] {
const additionalSections = core.getInput('additionalSections')
Expand Down Expand Up @@ -116,15 +116,15 @@ export function createDefaultCardV2Section(): object[] {
{
decoratedText: {
startIcon: {
iconUrl: gitHubIconUrlWhite
iconUrl: gitHubCircleIconUrl
},
text: repoPath
}
},
{
decoratedText: {
startIcon: {
iconUrl: gitBranchIconUrlWhite
iconUrl: gitBranchCircleIconUrl
},
text: github.context.ref
}
Expand Down

0 comments on commit d0768d2

Please sign in to comment.