Skip to content
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

action.ts doesn't process jsonPath from yml script. it defaults to 'total.statements.pct' in badges.ts #31

Closed
TimSVector opened this issue Dec 6, 2023 · 1 comment

Comments

@TimSVector
Copy link

No jsonPath processing in action.ts. It always defaults to 'total.statements.pct' from badges.ts.

Fix should be easy:

Add to actions.ts :
const jsonPath = getInput('jsonPath') || 'total.statements.pct';

Modify in actions.ts
const svgStr = badge({ label, style, jsonPath } as BadgeOption, sourceData);

@jaywcjlove
Copy link
Owner

@TimSVector thx!

jaywcjlove added a commit that referenced this issue Dec 12, 2023
github-actions bot pushed a commit that referenced this issue Dec 12, 2023
jaywcjlove added a commit that referenced this issue Dec 13, 2023
jaywcjlove added a commit that referenced this issue Dec 13, 2023
github-actions bot pushed a commit that referenced this issue Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants