-
-
Notifications
You must be signed in to change notification settings - Fork 627
FEAT: Add custom symbol style and custom code block language #491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
caupolicanre
wants to merge
30
commits into
anmol098:master
Choose a base branch
from
caupolicanre:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
ad5c77d
Add new symbol version
caupolicanre e85eefe
Add new symbols for VERSION_4
caupolicanre 3a88e90
Add symbol style option to .env.example and
caupolicanre f3d179d
Refactor progress bar symbol handling
caupolicanre ad6d3f4
Remove default symbol style in action.yml
caupolicanre 937d0d3
Remove unused symbol style
caupolicanre 671b673
Add SYMBOL_STYLE flag to change progress bar style
caupolicanre 9618a41
small change in SYMBOL_STYLE env variable README
caupolicanre 4384df8
Update action.yml and .env.example files with CODE_BLOCK_LANGUAGE env…
caupolicanre bed1496
Refactor code to use code block language in stats
caupolicanre 3a6d86a
Update README.md with code block language flag
caupolicanre 42d825e
Update action.yml to test actions behavior
caupolicanre c37ff55
Small change to test action
caupolicanre 32bad51
Testing action with composite
caupolicanre fd0a05b
Update pip installation and add conditional check
caupolicanre 50c6666
Update run command in action.yml
caupolicanre 44acf0a
Update action.yml to install dependencies and run
caupolicanre 4d9360d
Update action.yml to use Docker for running the
caupolicanre 8b4f18f
Fix Dockerfile casing
caupolicanre 131f17f
Fix symbol style check in make_graph function
caupolicanre 98b3702
Fix symbol style assignment in make_graph function
caupolicanre 437c0f1
Fix progress bar symbol style bug
caupolicanre 3f4bd8c
Remove commented out code and update runs section
caupolicanre 728027f
Merge pull request #1 from caupolicanre/customize_text_field
caupolicanre 025f504
Update action.yml
caupolicanre b11cac2
Rollback to upstream original 'action.yml' file
caupolicanre 2ea7da6
Add new env variables to action.yml
caupolicanre 92ecd5f
Merge branch 'master' into master
caupolicanre 82de94a
Merge branch 'master' into master
caupolicanre 945aada
Fix formatting and spacing in action.yml
caupolicanre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aravindvnair99 marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,177 +1,188 @@ | ||
| name: 'Profile Readme Development Stats' | ||
| author: Anmol Pratap Singh | ||
| description: 'Are you an early 🐤 or a night 🦉? When are you most productive during the day? Check out in your readme!' | ||
|
|
||
| inputs: | ||
| GH_TOKEN: | ||
| description: 'GitHub access token with Repo scope' | ||
| required: true | ||
| default: ${{ github.token }} | ||
|
|
||
| WAKATIME_API_KEY: | ||
| description: 'Your Wakatime API Key' | ||
| required: true | ||
|
|
||
| WAKATIME_API_URL: | ||
| description: 'Your Wakatime API URL' | ||
| required: false | ||
| default: "https://wakatime.com/api/v1/" | ||
|
|
||
| SECTION_NAME: | ||
| description: 'Name used in readme to scope the updated section' | ||
| required: false | ||
| default: "waka" | ||
|
|
||
| PULL_BRANCH_NAME: | ||
| required: false | ||
| description: "The branch to get the readme from" | ||
| default: "" | ||
|
|
||
| PUSH_BRANCH_NAME: | ||
| required: false | ||
| description: "The branch to update the readme in" | ||
| default: "" | ||
|
|
||
| SHOW_OS: | ||
| required: false | ||
| description: 'Show the list of OS Worked on In dev metrics' | ||
| default: "True" | ||
|
|
||
| SHOW_PROJECTS: | ||
| required: false | ||
| description: 'Show the list of projects worked on in dev metrics' | ||
| default: "True" | ||
|
|
||
| SHOW_EDITORS: | ||
| required: false | ||
| description: 'Show the Editors used in dev metrics' | ||
| default: "True" | ||
|
|
||
| SHOW_TIMEZONE: | ||
| required: false | ||
| description: 'Show the time zone in the dev metrics' | ||
| default: "True" | ||
|
|
||
| SHOW_COMMIT: | ||
| required: false | ||
| description: "Shows the number of commit graph in the dev metrics" | ||
| default: "True" | ||
|
|
||
| SHOW_LANGUAGE: | ||
| required: false | ||
| description: "Show the Coding language used in dev metrics" | ||
| default: "True" | ||
|
|
||
| SHOW_LINES_OF_CODE: | ||
| required: false | ||
| description: "Show the Total Lines of code written Badge till date" | ||
| default: "False" | ||
|
|
||
| SHOW_LANGUAGE_PER_REPO: | ||
| required: false | ||
| description: "Show language or framework used across different repository" | ||
| default: "True" | ||
|
|
||
| SHOW_LOC_CHART: | ||
| required: false | ||
| description: "" | ||
| default: "True" | ||
|
|
||
| SHOW_DAYS_OF_WEEK: | ||
| required: false | ||
| description: "show day of week you are most productive" | ||
| default: "True" | ||
|
|
||
| SHOW_PROFILE_VIEWS: | ||
| required: false | ||
| description: "Shows the current profile views" | ||
| default: "True" | ||
|
|
||
| SHOW_SHORT_INFO: | ||
| required: false | ||
| description: "Shows the short facts" | ||
| default: "True" | ||
|
|
||
| SHOW_UPDATED_DATE: | ||
| required: false | ||
| description: "Show updated date" | ||
| default: "True" | ||
|
|
||
| SHOW_TOTAL_CODE_TIME: | ||
| required: false | ||
| description: "Show Total Time you have coded" | ||
| default: "True" | ||
|
|
||
| COMMIT_BY_ME: | ||
| required: false | ||
| description: "Git commit with your own name and email" | ||
| default: "False" | ||
|
|
||
| COMMIT_MESSAGE: | ||
| required: false | ||
| description: "Git commit message" | ||
| default: "Updated with Dev Metrics" | ||
|
|
||
| COMMIT_USERNAME: | ||
| required: false | ||
| description: "Git commit custom username" | ||
| default: "" | ||
|
|
||
| COMMIT_EMAIL: | ||
| required: false | ||
| description: "Git commit custom email" | ||
| default: "" | ||
|
|
||
| COMMIT_SINGLE: | ||
| required: false | ||
| description: "Erase commit history on each commit" | ||
| default: "False" | ||
|
|
||
| LOCALE: | ||
| required: false | ||
| description: "Show stats in your own language" | ||
| default: "en" | ||
|
|
||
| UPDATED_DATE_FORMAT: | ||
| required: false | ||
| description: "Updated date format" | ||
| default: "%d/%m/%Y %H:%M:%S" | ||
|
|
||
| IGNORED_REPOS: | ||
| required: false | ||
| description: "Repos you don't want to be counted" | ||
| default: "" | ||
|
|
||
| MAX_REPOS: | ||
| required: false | ||
| description: "Maximum number of GitHub repositories to fetch (0 = unlimited)" | ||
| default: "0" | ||
|
|
||
| MAX_CAP: | ||
| required: false | ||
| description: "(Deprecated) Alias for MAX_REPOS" | ||
| default: "0" | ||
|
|
||
| SYMBOL_VERSION: | ||
| required: false | ||
| description: "Version of the symbol block and empty of the progress bar" | ||
| default: "1" | ||
|
|
||
| BADGE_STYLE: | ||
| required: false | ||
| description: "Style for the badge maker (flat, flat-square, plastic, for-the-badge, social)" | ||
| default: "flat" | ||
|
|
||
| DEBUG_LOGGING: | ||
| required: false | ||
| description: "Whether to enable action debug logging" | ||
| default: ${{ runner.debug }} | ||
|
|
||
| runs: | ||
| using: 'docker' | ||
| image: 'docker://wakareadmestats/waka-readme-stats:master' | ||
|
|
||
| branding: | ||
| icon: 'activity' | ||
| color: 'orange' | ||
|
|
||
| name: 'Profile Readme Development Stats' | ||
| author: Anmol Pratap Singh | ||
| description: 'Are you an early 🐤 or a night 🦉? When are you most productive during the day? Check out in your readme!' | ||
|
|
||
| inputs: | ||
| GH_TOKEN: | ||
| description: 'GitHub access token with Repo scope' | ||
| required: true | ||
| default: ${{ github.token }} | ||
|
|
||
| WAKATIME_API_KEY: | ||
| description: 'Your Wakatime API Key' | ||
| required: true | ||
|
|
||
| WAKATIME_API_URL: | ||
| description: 'Your Wakatime API URL' | ||
| required: false | ||
| default: "https://wakatime.com/api/v1/" | ||
|
|
||
| SECTION_NAME: | ||
| description: 'Name used in readme to scope the updated section' | ||
| required: false | ||
| default: "waka" | ||
|
|
||
| PULL_BRANCH_NAME: | ||
| required: false | ||
| description: "The branch to get the readme from" | ||
| default: "" | ||
|
|
||
| PUSH_BRANCH_NAME: | ||
| required: false | ||
| description: "The branch to update the readme in" | ||
| default: "" | ||
|
|
||
| SHOW_OS: | ||
| required: false | ||
| description: 'Show the list of OS Worked on In dev metrics' | ||
| default: "True" | ||
|
|
||
| SHOW_PROJECTS: | ||
| required: false | ||
| description: 'Show the list of projects worked on in dev metrics' | ||
| default: "True" | ||
|
|
||
| SHOW_EDITORS: | ||
| required: false | ||
| description: 'Show the Editors used in dev metrics' | ||
| default: "True" | ||
|
|
||
| SHOW_TIMEZONE: | ||
| required: false | ||
| description: 'Show the time zone in the dev metrics' | ||
| default: "True" | ||
|
|
||
| SHOW_COMMIT: | ||
| required: false | ||
| description: "Shows the number of commit graph in the dev metrics" | ||
| default: "True" | ||
|
|
||
| SHOW_LANGUAGE: | ||
| required: false | ||
| description: "Show the Coding language used in dev metrics" | ||
| default: "True" | ||
|
|
||
| SHOW_LINES_OF_CODE: | ||
| required: false | ||
| description: "Show the Total Lines of code written Badge till date" | ||
| default: "False" | ||
|
|
||
| SHOW_LANGUAGE_PER_REPO: | ||
| required: false | ||
| description: "Show language or framework used across different repository" | ||
| default: "True" | ||
|
|
||
| SHOW_LOC_CHART: | ||
| required: false | ||
| description: "" | ||
| default: "True" | ||
|
|
||
| SHOW_DAYS_OF_WEEK: | ||
| required: false | ||
| description: "show day of week you are most productive" | ||
| default: "True" | ||
|
|
||
| SHOW_PROFILE_VIEWS: | ||
| required: false | ||
| description: "Shows the current profile views" | ||
| default: "True" | ||
|
|
||
| SHOW_SHORT_INFO: | ||
| required: false | ||
| description: "Shows the short facts" | ||
| default: "True" | ||
|
|
||
| SHOW_UPDATED_DATE: | ||
| required: false | ||
| description: "Show updated date" | ||
| default: "True" | ||
|
|
||
| SHOW_TOTAL_CODE_TIME: | ||
| required: false | ||
| description: "Show Total Time you have coded" | ||
| default: "True" | ||
|
|
||
| COMMIT_BY_ME: | ||
| required: false | ||
| description: "Git commit with your own name and email" | ||
| default: "False" | ||
|
|
||
| COMMIT_MESSAGE: | ||
| required: false | ||
| description: "Git commit message" | ||
| default: "Updated with Dev Metrics" | ||
|
|
||
| COMMIT_USERNAME: | ||
| required: false | ||
| description: "Git commit custom username" | ||
| default: "" | ||
|
|
||
| COMMIT_EMAIL: | ||
| required: false | ||
| description: "Git commit custom email" | ||
| default: "" | ||
|
|
||
| COMMIT_SINGLE: | ||
| required: false | ||
| description: "Erase commit history on each commit" | ||
| default: "False" | ||
|
|
||
| LOCALE: | ||
| required: false | ||
| description: "Show stats in your own language" | ||
| default: "en" | ||
|
|
||
| UPDATED_DATE_FORMAT: | ||
| required: false | ||
| description: "Updated date format" | ||
| default: "%d/%m/%Y %H:%M:%S" | ||
|
|
||
| IGNORED_REPOS: | ||
| required: false | ||
| description: "Repos you don't want to be counted" | ||
| default: "" | ||
|
|
||
| MAX_REPOS: | ||
| required: false | ||
| description: "Maximum number of GitHub repositories to fetch (0 = unlimited)" | ||
| default: "0" | ||
|
|
||
| MAX_CAP: | ||
| required: false | ||
| description: "(Deprecated) Alias for MAX_REPOS" | ||
| default: "0" | ||
|
|
||
| SYMBOL_VERSION: | ||
| required: false | ||
| description: "Version of the symbol block and empty of the progress bar" | ||
| default: "1" | ||
|
|
||
| SYMBOL_STYLE: | ||
| required: false | ||
| description: "Style of the symbol block and empty of the progress bar" | ||
| default: "" | ||
|
|
||
| CODE_BLOCK_LANGUAGE: | ||
| required: false | ||
| description: "Language of the code block" | ||
| default: "text" | ||
|
|
||
| BADGE_STYLE: | ||
| required: false | ||
| description: "Style for the badge maker (flat, flat-square, plastic, for-the-badge, social)" | ||
| default: "flat" | ||
|
|
||
| DEBUG_LOGGING: | ||
| required: false | ||
| description: "Whether to enable action debug logging" | ||
| default: ${{ runner.debug }} | ||
|
|
||
| runs: | ||
| using: 'docker' | ||
| image: 'docker://wakareadmestats/waka-readme-stats:master' | ||
|
|
||
| branding: | ||
| icon: 'activity' | ||
| color: 'orange' | ||
|
|
||
|
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the diff in this file, I wonder, why so much?..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know why it shows changes in the whole file.
I just added these two new variables.
I didn't modify the format or anything else.
In this commit, I did a rollback, bringing
action.ymlfile to it's original version.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@caupolicanre Perhaps you had an auto format enabled which is a common setting in VS Code, linting tools, etc. I see the diff is mostly whitespace changes. You can resync this file from
masterand reapply the changes.