Skip to content

Commit

Permalink
Merge pull request #10 from Anantajeet/dependabot/npm_and_yarn/eslint…
Browse files Browse the repository at this point in the history
…-plugin-react-refresh-0.4.8

chore: bump eslint-plugin-react-refresh from 0.4.7 to 0.4.8
  • Loading branch information
DhairyaMajmudar authored Jul 10, 2024
2 parents 52ffeb8 + 49115d2 commit 5ad21a3
Show file tree
Hide file tree
Showing 6 changed files with 173 additions and 19 deletions.
16 changes: 2 additions & 14 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
# configuration file for Dependabot
version: 2
updates:
# Configuration for yarn package ecosystem
- package-ecosystem: "npm"

# Directory containing the package manifests (e.g. yarn.lock)
directory: "/"

# Schedule for dependency updates
schedule:
interval: "weekly"

# Customize commit messages for dependency updates
commit-message:
prefix: "chore(deps):"
prefix: "chore:"

# Configuration for GitHub Actions dependencies
- package-ecosystem: "github-actions"

# Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.)
directory: "/"

# Schedule for dependency updates
schedule:
interval: "weekly"

# Customize commit messages for dependency updates
commit-message:
prefix: "chore(deps):"
interval: "weekly"
16 changes: 16 additions & 0 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Issue Workflow

on:
issues:
types: ['opened']

jobs:
Issue-Labeler:
name: Labelling Issues
runs-on: ubuntu-latest
steps:
- uses: Renato66/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
ignore-comments: true
default-labels: '["Status: Triage"]'
94 changes: 94 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: "PR Workflow"

on:
pull_request:
types: [opened, reopened, synchronize]

jobs:
linting_and_type-checking:
name: Linting, Formatting and Type checking
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache Node dependencies
uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- if: ${{ steps.yarn-cache.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: yarn list

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Linting and Formatting checks
run: yarn run lint

- name: Type checking
run: yarn run typecheck

build:
name: Build check
runs-on: ubuntu-latest
needs: linting_and_type-checking
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache Node dependencies
uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- if: ${{ steps.yarn-cache.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: yarn list

- name: Cache Next Build
uses: actions/cache@v4
with:
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build
run: yarn run build
56 changes: 56 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Mark stale issues and pull requests

on:
schedule:
- cron: "0 0 * * 0" # Runs every Sunday at midnight

permissions:
issues: write
pull-requests: write

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

# Message to comment on stale issues.
stale-issue-message: |
Hello! :wave:
This issue has been automatically marked as stale due to inactivity :sleeping:
It will be closed in 40 days if no further activity occurs. To keep it active, please add a comment with more details.
# Message to comment on stale pull requests.
stale-pr-message: |
Hello! :wave:
This pull request has been automatically marked as stale due to inactivity :sleeping:
It will be closed in 40 days if no further activity occurs. To keep it active, please add a comment with more details.
# Message to comment on issues that are about to be closed.
close-issue-message: "This issue did not get any activity in the past 40 days and thus has been closed. Please check if the main branch has fixed it. Please, create a new issue if the issue is not fixed."

# Message to comment on pull requests that are about to be closed.
close-pr-message: "This pull request did not get any activity in the past 40 days and thus has been closed."

# Labels to add to stale issues and pull requests.
stale-issue-label: "Status: Stale"
stale-pr-label: "Status: Stale"

# Number of days of inactivity before an issue/PR is marked as stale.
days-before-stale: 30

# Number of days of inactivity before an issue/PR is closed.
days-before-close: 40

# Remove the stale label when the issue/PR is updated.
remove-stale-when-updated: true

# Exempt labels to ignore when checking for stale issues/PRs.
exempt-pr-labels: "Status: On Hold,Status: Blocked,Status: Do not close"
exempt-issue-labels: "Status: On Hold,Status: Blocked,Status: Do not close"
2 changes: 1 addition & 1 deletion apps/vite-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.7",
"eslint-plugin-react-refresh": "^0.4.8",
"typescript": "^5.2.2",
"vite": "^5.3.1"
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2116,10 +2116,10 @@ eslint-plugin-playwright@^0.16.0:
resolved "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz"
integrity sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==

eslint-plugin-react-refresh@^0.4.7:
version "0.4.7"
resolved "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.7.tgz"
integrity sha512-yrj+KInFmwuQS2UQcg1SF83ha1tuHC1jMQbRNyuWtlEzzKRDgAl7L4Yp4NlDUZTZNlWvHEzOtJhMi40R7JxcSw==
eslint-plugin-react-refresh@^0.4.8:
version "0.4.8"
resolved "https://registry.yarnpkg.com/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.8.tgz#3b1db9188844101213ca637f181e84a016e36732"
integrity sha512-MIKAclwaDFIiYtVBLzDdm16E+Ty4GwhB6wZlCAG1R3Ur+F9Qbo6PRxpA5DK7XtDgm+WlCoAY2WxAwqhmIDHg6Q==

eslint-plugin-react@^7.33.2:
version "7.34.3"
Expand Down

0 comments on commit 5ad21a3

Please sign in to comment.