(type, scale = 1)
| 592 | const OCTICONS = '__OCTICONS__' |
| 593 | |
| 594 | function getIcon(type, scale = 1) { |
| 595 | let icon = OCTICONS[type] |
| 596 | return `<svg class="octicon" width="${icon.width * |
| 597 | scale}" height="${icon.height * scale}" |
| 598 | viewBox="0 0 ${icon.width} ${icon.height}">${icon.path}</svg>` |
| 599 | } |
| 600 | |
| 601 | const CREATE_TOKEN_PATH = `//${GH_DOMAIN}/settings/tokens/new?scopes=repo,user:follow` |
| 602 | const EDIT_TOKEN_PATH = `//${GH_DOMAIN}/settings/tokens` |
no outgoing calls
no test coverage detected