-
-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
1,165 additions
and
60 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Only for GitHub Actions | ||
# Parameters: <pr_number> <status> <label> | ||
# Example: ./update-status-label.sh 1234 failure "invalid-colors" | ||
|
||
# Exit on error | ||
set -e | ||
|
||
pr_number="$1" | ||
status="$2" | ||
label="$3" | ||
|
||
action="add-label" && [ "$status" == "success" ] && action="remove-label" | ||
|
||
# Add or remove label | ||
gh pr edit "$pr_number" --$action "$label" | ||
|
||
[ "$action" == "add-label" ] && echo "✅ Added \"$label\" label to PR #$pr_number" | ||
[ "$action" == "remove-label" ] && echo "✅ Removed \"$label\" label from PR #$pr_number" |
This file contains 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,24 +1,24 @@ | ||
# Add 'icons' label to any file changes within 'icons' folder or 'src/core/icons' typescript files | ||
icons: | ||
🏞️ icons: | ||
- changed-files: | ||
- any-glob-to-any-file: ['icons/*', 'src/core/icons/*.ts'] | ||
|
||
# Add 'translations' label to any changes within 'package.nls*.json' files or 'src/core/i18n' folder | ||
translations: | ||
💱 translations: | ||
- changed-files: | ||
- any-glob-to-any-file: ['package.nls*.json', 'src/core/i18n'] | ||
|
||
# Add 'docs' label to any changes to markdown files | ||
docs: | ||
📝 docs: | ||
- changed-files: | ||
- any-glob-to-any-file: '*.md' | ||
|
||
# Add 'workflows' label to any changes within '.github/workflows' folder or '.github/labeler.yml' file | ||
workflows: | ||
🔄 workflows: | ||
- changed-files: | ||
- any-glob-to-any-file: ['.github/workflows/*', '.github/labeler.yml'] | ||
|
||
# Add 'devcontainers' label to any changes within '.devcontainer' folder | ||
devcontainers: | ||
🐋 devcontainers: | ||
- changed-files: | ||
- any-glob-to-any-file: '.devcontainer/*' |
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# This workflow closes issues with the labels "info-needed" or "invalid" that have been inactive for 14 days since being marked as stale. | ||
name: ❌ Close inactive issues | ||
on: | ||
schedule: | ||
# It is triggered every day at 1:30 AM UTC. | ||
- cron: "30 1 * * *" | ||
|
||
jobs: | ||
close-issues: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 | ||
with: | ||
any-of-labels: "❓info-needed,❌ invalid" | ||
days-before-issue-stale: 30 | ||
days-before-issue-close: 14 | ||
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 | ||
days-before-pr-close: -1 | ||
remove-stale-when-updated: true | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains 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 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 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 |
---|---|---|
@@ -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. |
This file contains 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 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
# Files for vscode extension | ||
!CHANGELOG.md | ||
!LICENSE.md | ||
!LICENSE | ||
!README.md | ||
!logo.png | ||
|
||
|
This file contains 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
Oops, something went wrong.