diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..03a86f0 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,25 @@ +name: Lint + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Run ESLint + run: npm run lint \ No newline at end of file diff --git a/src/PullRequestViewer.tsx b/src/PullRequestViewer.tsx index 6a8281f..16b6331 100644 --- a/src/PullRequestViewer.tsx +++ b/src/PullRequestViewer.tsx @@ -2,7 +2,6 @@ import React, { useState, useEffect } from 'react'; -import axios from 'axios'; import { Octokit } from '@octokit/rest'; import Select from 'react-select';