Skip to content

Commit

Permalink
release: v0.6.1
Browse files Browse the repository at this point in the history
commit ae62846
Author: Casper <[email protected]>
Date:   Sat Mar 18 01:11:57 2023 +0800

    docs(action): add auto_push variable

commit b412cbb
Author: Casper <[email protected]>
Date:   Sat Mar 18 01:09:52 2023 +0800

    chore: prepare for v0.6.1

commit 5cc096f
Author: Casper <[email protected]>
Date:   Sat Mar 18 01:07:11 2023 +0800

    fix: correctly read the boolean variable

commit 7153386
Author: Casper <[email protected]>
Date:   Sat Mar 18 00:52:48 2023 +0800

    action: add type to input variables

commit a0fffa5
Author: Casper <[email protected]>
Date:   Sat Mar 18 00:42:17 2023 +0800

    chore: prepare for v0.6.1

commit 1725692
Author: Cael <[email protected]>
Date:   Sat Mar 18 00:29:14 2023 +0800

    feat: add an option to automatically push commits in action (#153)

    * add isAutopush iotion

    * fix autoPush action

commit ffd0416
Author: Casper <[email protected]>
Date:   Thu Mar 16 16:02:53 2023 +0800

    docs: update README.md

commit 1f695ad
Author: Casper <[email protected]>
Date:   Thu Mar 16 16:01:15 2023 +0800

    docs: remove sponsors section

    Since Foresight stops sponsoring this repo, we remove the section from README.md.

    Thanks to Foresight Team for past sponsorships.

commit f18b344
Author: Casper <[email protected]>
Date:   Thu Mar 9 00:46:16 2023 +0800

    release(hotfix): v0.6.0-hotfix.3 (#149)

commit 0bf9b0a
Author: Casper <[email protected]>
Date:   Thu Mar 9 00:40:02 2023 +0800

    fix: Fix card height and width in wrong percentage (#148)

commit 11a2c1d
Author: Casper <[email protected]>
Date:   Thu Mar 9 00:12:42 2023 +0800

    release(hotfix): v0.6.0-hotfix.2 (#147)

commit f874cca
Author: Casper <[email protected]>
Date:   Thu Mar 9 00:06:17 2023 +0800

    fix: Fix missing borderline (#146)

commit fe6a8e8
Author: Casper <[email protected]>
Date:   Mon Mar 6 02:00:14 2023 +0800

    dosc: Update README.md

commit a1b0e00
Author: Casper <[email protected]>
Date:   Mon Mar 6 01:43:24 2023 +0800

    release: v0.6.0-hotfix.1

commit 0116aa2
Author: George <[email protected]>
Date:   Sun Mar 5 14:40:04 2023 -0300

    typo: Fixed missing param in comment (#144)

commit aa3536e
Author: shunsuke6 <[email protected]>
Date:   Mon Mar 6 02:38:48 2023 +0900

    fix: Fix typo in input parameter (#145)

commit e27aa8c
Author: Casper <[email protected]>
Date:   Sat Mar 4 15:53:34 2023 +0800

    docs: Update README.md

commit 629a1d6
Author: Casper <[email protected]>
Date:   Sat Mar 4 15:46:12 2023 +0800

    release: v0.6.0

commit e5756dd
Author: Casper <[email protected]>
Date:   Sat Mar 4 15:33:24 2023 +0800

    docs(action): fix typo and description

commit 25c24b4
Author: Casper <[email protected]>
Date:   Sat Mar 4 15:32:11 2023 +0800

    docs: update README

commit 74a592f
Author: Casper <[email protected]>
Date:   Sat Mar 4 14:58:04 2023 +0800

    chore(dist): prepare for v0.6.0

commit 2e67b31
Author: Casper <[email protected]>
Date:   Sat Mar 4 14:54:30 2023 +0800

    lint: format code

commit 86bfc7c
Author: George <[email protected]>
Date:   Sat Mar 4 03:41:33 2023 -0300

    fix: Fixed stroke opacity in new themes (#138)

    Signed-off-by: George Araújo <[email protected]>

commit 81bd2b6
Author: Casper <[email protected]>
Date:   Sat Feb 18 16:49:48 2023 +0800

    fix: correct the github action log

commit e0c69dc
Author: Casper <[email protected]>
Date:   Sat Feb 18 16:33:32 2023 +0800

    chore(dist): prepare for v0.6.0

commit 056135a
Author: Casper <[email protected]>
Date:   Fri Feb 17 18:01:10 2023 +0800

    ci: rename test workflow

commit 7f284b2
Author: Casper <[email protected]>
Date:   Fri Feb 17 15:57:29 2023 +0800

    fix: adjust new themes hex color (#137)

    * test: modify theme color test to allow different format hex color

    * feat(theme): modify new themes hex color string

    * lint: code format

    * refactor: remove useless console.log and modify let variable to const

commit 459fde2
Author: George <[email protected]>
Date:   Fri Feb 17 01:04:26 2023 -0300

    feat: Added themes from github-readme-stats (#135)

    Added themes from https://github.com/anuraghazra/github-readme-stats, sorted themes alphabetically

commit d27b1eb
Author: yamashu <[email protected]>
Date:   Fri Feb 17 13:02:09 2023 +0900

    chore: Update browserslist (#121)

    * ⬆️ npm install at GitHub actions same node 16.18.1

    * ⬆️ npx browserslist@latest --update-db

commit 2e23a2a
Author: Vladislav Dietrich <[email protected]>
Date:   Fri Feb 17 14:00:06 2023 +1000

    fix: adjust svg size to match the viewBox (#134)

commit ffc788d
Author: Key5n <[email protected]>
Date:   Fri Feb 17 12:24:11 2023 +0900

    docs: added content-write permission (#136)

commit 151a698
Author: yamashu <[email protected]>
Date:   Mon Jan 16 11:16:34 2023 +0900

    chore: Bump GitHub setup-node to v3 (#119)

    * 🔼 Update setup-node to v3

    * Update setup-node to v3

commit 81d3f51
Author: yamashu <[email protected]>
Date:   Mon Jan 16 11:15:26 2023 +0900

    chore: Add test reporter for cli (#122)

commit e5cdc19
Author: 0024 <[email protected]>
Date:   Sun Jan 15 23:00:58 2023 +0900

    refactor: fix a typo in the name of file most-commit-lauguage-card.ts. (#130)

    * fix file name

    * fix lauguage to language

    * revert dist/index.js and dist/index.js.map

commit e7f42bb
Author: yamashu <[email protected]>
Date:   Wed Jan 11 12:12:59 2023 +0900

    fix: Revert d3 update for v7 breaking change (#124)

commit 34034c4
Author: yamashu <[email protected]>
Date:   Tue Jan 10 00:16:09 2023 +0900

    feat: Add transparent theme (#126)

    * ✅ Add transparent hex color at test

    * 💄 Add transparent theme

    * 📝 Add transparent theme at readme

commit 39a767d
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Sat Jan 7 18:13:38 2023 +0800

    chore: bump json5 from 2.2.0 to 2.2.3 (#120)

    Bumps [json5](https://github.com/json5/json5) from 2.2.0 to 2.2.3.
    - [Release notes](https://github.com/json5/json5/releases)
    - [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
    - [Commits](json5/json5@v2.2.0...v2.2.3)

    ---
    updated-dependencies:
    - dependency-name: json5
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <[email protected]>

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit e636dad
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Sat Jan 7 18:12:56 2023 +0800

    chore: bump minimatch from 3.0.4 to 3.1.2 (#116)

    Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
    - [Release notes](https://github.com/isaacs/minimatch/releases)
    - [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
    - [Commits](isaacs/minimatch@v3.0.4...v3.1.2)

    ---
    updated-dependencies:
    - dependency-name: minimatch
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <[email protected]>

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 650b6cd
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Sat Jan 7 18:11:48 2023 +0800

    chore: bump d3-color and d3 (#109)

    Bumps [d3-color](https://github.com/d3/d3-color) to 3.1.0 and updates ancestor dependency [d3](https://github.com/d3/d3). These dependencies need to be updated together.

    Updates `d3-color` from 1.4.1 to 3.1.0
    - [Release notes](https://github.com/d3/d3-color/releases)
    - [Commits](d3/d3-color@v1.4.1...v3.1.0)

    Updates `d3` from 5.16.0 to 7.6.1
    - [Release notes](https://github.com/d3/d3/releases)
    - [Changelog](https://github.com/d3/d3/blob/main/CHANGES.md)
    - [Commits](d3/d3@v5.16.0...v7.6.1)

    ---
    updated-dependencies:
    - dependency-name: d3-color
      dependency-type: indirect
    - dependency-name: d3
      dependency-type: direct:production
    ...

    Signed-off-by: dependabot[bot] <[email protected]>

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit ab09612
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Sat Jan 7 18:11:35 2023 +0800

    chore: bump @actions/core from 1.6.0 to 1.9.1 (#103)

    Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.6.0 to 1.9.1.
    - [Release notes](https://github.com/actions/toolkit/releases)
    - [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
    - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

    ---
    updated-dependencies:
    - dependency-name: "@actions/core"
      dependency-type: direct:production
    ...

    Signed-off-by: dependabot[bot] <[email protected]>

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 3e9cbd7
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Sat Jan 7 18:11:20 2023 +0800

    chore: bump moment from 2.29.2 to 2.29.4 (#101)

    Bumps [moment](https://github.com/moment/moment) from 2.29.2 to 2.29.4.
    - [Release notes](https://github.com/moment/moment/releases)
    - [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
    - [Commits](moment/moment@2.29.2...2.29.4)

    ---
    updated-dependencies:
    - dependency-name: moment
      dependency-type: direct:production
    ...

    Signed-off-by: dependabot[bot] <[email protected]>

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 7fcb411
Author: Casper <[email protected]>
Date:   Sat Jan 7 18:10:55 2023 +0800

    fix: Fixed decimal UTC time bug (#123)

    * Fixed decimal UTC time bug

    fixed #90
    floor down value because chart uses hours only

    * added function to adjust offset

    * updated label which shows utc time

    * fixed eslint

    * lint: re-enable eslint

    Co-authored-by: Saurav Dharwadkar <[email protected]>

commit 159df73
Author: yamashu <[email protected]>
Date:   Wed Jan 4 22:48:58 2023 +0900

    feat: Push branch option  (#117)

    * 👔 Add branch name parameter from GitHub Actions

    * 🔧 Add GitHub Actions input

    * ✏️ Fix linter warnings

    * 📝 Update readme for push branch option

commit 6d1ded3
Author: yamashu <[email protected]>
Date:   Sun Dec 18 23:51:58 2022 +0900

    feat(action): Bump GitHub action/checkout version from v2 to v3 (#115)

    * ⬆️ Update actions/checkout@v3

    * 📝 Update readme

commit 1a356bd
Author: Casper <[email protected]>
Date:   Sun Nov 20 23:24:34 2022 +0800

    fix: remove extra comma in package.json

commit 0e356b9
Author: MiranDaniel <[email protected]>
Date:   Sun Nov 20 15:23:46 2022 +0000

    feat: Added exclude argument for languages (#97)

    * feat: Hide languages

    * fix: Hidden not required

    * fix: Correct URL safe language names

    * fix: Correct URL safe language names for non API

    * fix: Name uppercasing

    * refactor\!: Changed hidden arg to exclude

    * feat: exclude arg

    * fix: Exclude fix for actions

    * refactor: remove unnecessary modules

    * fix: package-lock

commit 4435a69
Merge: 17bd41a 63e23d4
Author: Casper <[email protected]>
Date:   Thu Sep 29 23:13:55 2022 +0800

    Merge pull request #108 from vn7n24fzkq/chroe/foresight-configure

    chore: foresight configure

commit 63e23d4
Author: Casper <[email protected]>
Date:   Thu Sep 29 23:11:20 2022 +0800

    doc: update foresight ba5Ddge

commit 3b73481
Author: Casper <[email protected]>
Date:   Wed Sep 28 23:45:50 2022 +0800

    ci: update foresight steps

commit 17bd41a
Author: Lucas Alexander <[email protected]>
Date:   Mon Sep 26 00:30:41 2022 -0300

    feat: moonlight based theme (#107)

    * feat: moonlight based theme

    * styles: changing border color to match background

commit b67d461
Author: Casper <[email protected]>
Date:   Wed Sep 21 13:43:42 2022 +0800

    perf: reduce Vercel serveless function usage (#106)

    Increase s-maxage for CDN caching and max-age for client-side caching, also add stale-while-revalidate that allow us to serve content from the Edge cache.

commit fe6a293
Author: Casper <[email protected]>
Date:   Fri Aug 12 22:34:30 2022 +0800

    chore: Add foresight support (#100)

    * ci: add foresight’s GitHub action

    * docs: update README.md

    Add sponsors section

    * docs: add Vercel deploy button

    * docs : update README

    * docs: update README

    Modify sponsor setcion

    * docs: update README

    * ci: add tests report

    * ci: remove foresight from lint worflow

    * test: add coverage parameter to jest

    * ci: update foresight setting in workflow
  • Loading branch information
vn7n24fzkq committed Mar 17, 2023
1 parent bdcf93f commit b592c3d
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 73 deletions.
53 changes: 5 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<div align="center">
<h1>GitHub Profile Summary Cards</h1>


[繁體中文](./docs/README.zh-tw.md)
<p>
A tool to generate your github summary card for profile README. Inspired by <a href=https://github.com/tipsy/profile-summary-for-github>profile-summary-for-github</a>
</p>
Expand All @@ -16,55 +19,8 @@
<a href="https://github.com/vn7n24fzkq/github-profile-summary-cards/actions/workflows/github-action.yml">
<img alt="testandlint" src="https://img.shields.io/github/actions/workflow/status/vn7n24fzkq/github-profile-summary-cards/test-and-lint.yml?branch=main&label=Test%20and%20Lint&style=for-the-badge&color=a6da95"></a>
</p>
<p align="center">
<a href="https://docs.runforesight.com">
<img alt="foresighttest" src="https://api-public.service.runforesight.com/api/v1/badge/test?repoId=b84d871c-a5e4-4320-9638-00bb34c27111"/></a>
<a href="https://docs.runforesight.com">
<img alt="foresightsuccess" src="https://api-public.service.runforesight.com/api/v1/badge/success?repoId=b84d871c-a5e4-4320-9638-00bb34c27111"></a>
<a href="https://docs.runforesight.com">
<img alt="foresightutilization" src="https://api-public.service.runforesight.com/api/v1/badge/utilization?repoId=b84d871c-a5e4-4320-9638-00bb34c27111"></a>
</p>
<p align="center">
<a href="https://foresight.docs.thundra.io">
<img alt="foresight" src="https://img.shields.io/badge/Supported%20by-Foresight-%239900F0?style=for-the-badge&color=DDB6F2&labelColor=302D41"></a>
</p>

[繁體中文](./docs/README.zh-tw.md)

</div>


---

## Sponsors

<table width="100%">
<tr>
<td>
<img width="100%" height="0">
<a href="https://www.runforesight.com/?utm_source=github-profile-summary-cards&utm_medium=sponsorship">
<img src="https://www.thundra.io/hubfs/RunForesight/GitHub%20Sponsorship%20banners/visualize-github-actions.png"
alt="Foresight" width="40%" align="right">
</a>

<h3>Foresight: Increase CI/CD Health & Test Performance</h3>

<p width="60%">
Foresight provides full visibility and deep insights into the health
and performance of your tests and CI/CD pipelines. Assess the risk of
changes, resolve bottlenecks, reduce build times, and deliver
high-quality software at speed with Foresight.
</p>

[Sign up now!](https://runforesight.com/?utm_source=github-profile-summary-cards&utm_medium=sponsorship)
</td>
</tr>
</table>


---


<div align="center">
<p>
<a href="https://github-profile-summary-cards.vercel.app/demo.html">Get your own cards now!!</a>
Expand Down Expand Up @@ -213,7 +169,8 @@ jobs:
UTC_OFFSET: 8
# EXCLUDE is an optional comma seperated list of languages to exclude, defaults to ""
EXCLUDE: ""
```
# AUTO_PUSH is optional, a boolean variable default to true, whether automatically push generated files to desired branch
AUTO_PUSH: true

---

Expand Down
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,30 @@ author: vn7n24fzkq

inputs:
USERNAME:
type: string
required: true
description: 'GitHub username'
default: ${{ github.repository_owner }}
BRANCH_NAME:
type: string
required: false
description: 'The branch to push cards'
default: 'main'
UTC_OFFSET:
type: string
required: false
description: 'The UTC offset used in the Productive Time Card.(e.g., 8, -3)'
default: 0
EXCLUDE:
type: string
required: false
description: 'A comma separated list of languages to exclude'
default: ''
AUTO_PUSH:
type: boolean
required: false
description: 'Whether automatically push generated files to desired branch'
default: true

runs:
using: 'node16'
Expand Down
31 changes: 19 additions & 12 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "github-profile-summary-cards",
"version": "0.6.0-hotfix.3",
"version": "0.6.1",
"description": "Generate github profile summary cards",
"main": "lib/app.js",
"scripts": {
Expand Down
27 changes: 16 additions & 11 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ const action = async () => {
core.info(`UTC offset: ${utcOffset}`);
const exclude = core.getInput('EXCLUDE', {required: false}).split(',');
core.info(`Excluded languages: ${exclude}`);
const autoPush = core.getBooleanInput('AUTO_PUSH', {required: false});
core.info(`You ${autoPush ? 'have' : "haven't"} set automatically push commits`);

try {
// Remove old output
core.info(`Remove old cards...`);
Expand Down Expand Up @@ -95,18 +98,20 @@ const action = async () => {
}

// Commit changes
core.info(`Commit file...`);
let retry = 0;
const maxRetry = 3;
while (retry < maxRetry) {
retry += 1;
try {
await commitFile();
} catch (error) {
if (retry == maxRetry) {
throw error;
if (autoPush) {
core.info(`Commit file...`);
let retry = 0;
const maxRetry = 3;
while (retry < maxRetry) {
retry += 1;
try {
await commitFile();
} catch (error) {
if (retry == maxRetry) {
throw error;
}
core.warning(`Commit failed. Retry...`);
}
core.warning(`Commit failed. Retry...`);
}
}
} catch (error: any) {
Expand Down

0 comments on commit b592c3d

Please sign in to comment.