[READ-ONLY] Mirror of https://github.com/probablykasper/readme-template-action. Integrate GitHub API data in your README.md
0

Configure Feed

Select the types of activity you want to include in your feed.

Added warning when github autofills GITHUB_TOKEN

Kasper (Aug 23, 2020, 9:41 PM +0200) 92abaaf9 3f7fd97a

+6 -2
+3 -1
dist/index.js
··· 4802 4802 4803 4803 const user = queryResult.viewer 4804 4804 4805 - const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] 4806 4805 user.SIGNUP_DATE = moment(user.SIGNUP_TIMESTAMP).format('MMMM Do YYYY') 4807 4806 user.SIGNUP_DATE2 = moment(user.SIGNUP_TIMESTAMP).format('YYYY-MM-DD') 4808 4807 user.SIGNUP_YEAR = moment(user.SIGNUP_TIMESTAMP).format('YYYY') ··· 10995 10994 const user = await queries.getUser() 10996 10995 console.log(' - Injecting') 10997 10996 outputStr = inject(outputStr, user) 10997 + if (user.USERNAME === 'github-actions[bot]') { 10998 + console.log('Warning: The username is "github-actions[bot]". You may have forgotten to add your github token secret') 10999 + } 10998 11000 10999 11001 if (!customTemplate['3_MOST_STARRED_REPOS']) { 11000 11002 customTemplate['3_MOST_STARRED_REPOS'] = {
+3
src/main.js
··· 84 84 const user = await queries.getUser() 85 85 console.log(' - Injecting') 86 86 outputStr = inject(outputStr, user) 87 + if (user.USERNAME === 'github-actions[bot]') { 88 + console.log('Warning: The username is "github-actions[bot]". You may have forgotten to add your github token secret') 89 + } 87 90 88 91 if (!customTemplate['3_MOST_STARRED_REPOS']) { 89 92 customTemplate['3_MOST_STARRED_REPOS'] = {
-1
src/queries.js
··· 32 32 33 33 const user = queryResult.viewer 34 34 35 - const months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] 36 35 user.SIGNUP_DATE = moment(user.SIGNUP_TIMESTAMP).format('MMMM Do YYYY') 37 36 user.SIGNUP_DATE2 = moment(user.SIGNUP_TIMESTAMP).format('YYYY-MM-DD') 38 37 user.SIGNUP_YEAR = moment(user.SIGNUP_TIMESTAMP).format('YYYY')