Skip to content

Commit

Permalink
Merge branch 'main' into okineadev/add-vitepress-icon
Browse files Browse the repository at this point in the history
Signed-off-by: Okinea Dev <[email protected]>
  • Loading branch information
Okinea Dev authored Jan 6, 2025
2 parents 949ad02 + 42d4960 commit 650b979
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
bun run vscode:prepublish
- name: 🏷️ Manage label based on build result
if: ${{ always() }}
if: ${{ github.event_name == 'pull_request' }}
run: .github/actions/update-status-label.sh ${{ github.event.pull_request.number }} ${{ steps.build.outcome }} "❌ failed build"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/close-stale-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
any-of-labels: "❓info-needed,❌ invalid"
days-before-issue-stale: 30
days-before-issue-close: 14
stale-issue-label: "stale"
stale-issue-label: "stale"
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
days-before-pr-stale: -1
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/color-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
sparse-checkout-cone-mode: false
sparse-checkout: |
.github/actions/update-status-label.sh
material-colors.yml
icons/
- name: 🔄 Fetch target branch
run: |
Expand All @@ -33,7 +38,7 @@ jobs:
npx svg-color-linter --config material-colors.yml ${svgFiles}
- name: 🏷️ Manage label based on color check result
if: ${{ always() }}
if: always()
run: .github/actions/update-status-label.sh ${{ github.event.pull_request.number }} ${{ steps.color-check.outcome }} "🎨 invalid colors"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions .github/workflows/icon-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,20 @@ jobs:
fetch-depth: 0
path: fork
persist-credentials: false
sparse-checkout-cone-mode: false
sparse-checkout: |
icons/
- name: 📥 Checkout Original
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
path: main
persist-credentials: false
sparse-checkout-cone-mode: false
sparse-checkout: |
.bun-version
icons/
- name: 🔧 Setup Bun
uses: oven-sh/setup-bun@4bc047ad259df6fc24a6c9b0f9a0cb08cf17fbe5 # v2
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/potential-duplicates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "🧐 Potential Duplicates"
on:
issues:
types: [opened, edited] # edited means the issue title changed
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: wow-actions/potential-duplicates@4d4ea0352e0383859279938e255179dd1dbb67b5 # v1.1.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Issue title filter work with anymatch https://www.npmjs.com/package/anymatch.
# Any matched issue will stop detection immediately.
# You can specify multi filters in each line.
filter: ''
# Exclude keywords in title before detecting.
exclude: ''
# Label to set, when potential duplicates are detected.
label: "🧐 potential-duplicate"
# Get issues with state to compare. Supported state: 'all', 'closed', 'open'.
state: all
# If similarity is higher than this threshold([0,1]), issue will be marked as duplicate.
threshold: 0.6
# Reactions to be add to comment when potential duplicates are detected.
# Available reactions: "-1", "+1", "confused", "laugh", "heart", "hooray", "rocket", "eyes"
reactions: 'eyes'
# Comment to post when potential duplicates are detected.
comment: |
We have found issues that are potential duplicates: {{#issues}}
- #{{ number }} ({{ accuracy }}%)
{{/issues}}
If any of the issues listed above is a duplicate, please consider closing this issue & upvoting/commenting the original one.
Alternatively, if neither of the listed issues addresses your feature/bug, keep this issue open.
3 changes: 2 additions & 1 deletion .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# Only fetch the config file from the repository
sparse-checkout-cone-mode: false
sparse-checkout: |
commitlint.config.js
.github/actions/update-status-label.sh
Expand All @@ -34,7 +35,7 @@ jobs:
run: echo "$PR_TITLE" | npx commitlint --help-url $HELP_URL

- name: 🏷️ Manage label based on PR title check result
if: ${{ always() }}
if: always()
run: .github/actions/update-status-label.sh ${{ github.event.pull_request.number }} ${{ steps.title-check.outcome }} "🔤 invalid title"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 650b979

Please sign in to comment.