From 46f3a92829c3570261f1cd336d50b4e4038a02eb Mon Sep 17 00:00:00 2001 From: Kjetil Halvorsen <38658408+kjetilh33@users.noreply.github.com> Date: Tue, 11 Jan 2022 11:06:28 +0100 Subject: [PATCH] Delete .github directory --- .github/ISSUE_TEMPLATE/bug_report.md | 38 --------------- .github/ISSUE_TEMPLATE/feature_request.md | 20 -------- .github/workflows/check-dist.yml | 52 -------------------- .github/workflows/ci.yml | 20 -------- .github/workflows/integration.yml | 59 ----------------------- .github/workflows/licensed.yml | 24 --------- .github/workflows/pull-request-test.yml | 45 ----------------- .github/workflows/stale.yml | 31 ------------ 8 files changed, 289 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 .github/workflows/check-dist.yml delete mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/integration.yml delete mode 100644 .github/workflows/licensed.yml delete mode 100644 .github/workflows/pull-request-test.yml delete mode 100644 .github/workflows/stale.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index dd84ea782..000000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve -title: '' -labels: '' -assignees: '' - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -1. Go to '...' -2. Click on '....' -3. Scroll down to '....' -4. See error - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] - -**Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] - -**Additional context** -Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index bbcbbe7d6..000000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: '' -labels: '' -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml deleted file mode 100644 index 16c211772..000000000 --- a/.github/workflows/check-dist.yml +++ /dev/null @@ -1,52 +0,0 @@ -# `dist/index.js` is a special file in Actions. -# When you reference an action with `uses:` in a workflow, -# `index.js` is the code that will run. -# For our project, we generate this file through a build process -# from other source files. -# We need to make sure the checked-in `index.js` actually matches what we expect it to be. -name: Check dist/ - -on: - push: - branches: - - main - paths-ignore: - - '**.md' - pull_request: - paths-ignore: - - '**.md' - workflow_dispatch: - -jobs: - check-dist: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Set Node.js 12.x - uses: actions/setup-node@v1 - with: - node-version: 12.x - - - name: Install dependencies - run: npm ci - - - name: Rebuild the dist/ directory - run: npm run build - - - name: Compare the expected and actual dist/ directories - run: | - if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then - echo "Detected uncommitted changes after build. See status below:" - git diff - exit 1 - fi - id: diff - - # If index.js was different than expected, upload the expected version as an artifact - - uses: actions/upload-artifact@v2 - if: ${{ failure() && steps.diff.conclusion == 'failure' }} - with: - name: dist - path: dist/ diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index d98b25ae3..000000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: CI - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - ci: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 12 - cache: npm - - run: npm ci - - run: npm run style:check - - run: npm test diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml deleted file mode 100644 index 6eb881477..000000000 --- a/.github/workflows/integration.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: Integration - -on: - push: - branches: [main] - pull_request: - branches: [main] - -jobs: - test-return: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - id: output-set - uses: ./ - with: - script: return core.getInput('input-value') - result-encoding: string - input-value: output - - run: | - if [[ "${{steps.output-set.outputs.result}}" != "output" ]]; then - exit 1 - fi - - test-relative-require: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - id: output-set - uses: ./ - with: - script: return require('./package.json').name - result-encoding: string - input-value: output - - run: | - if [[ "${{steps.output-set.outputs.result}}" != "github-script" ]]; then - exit 1 - fi - - test-npm-require: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{runner.os}}-npm-${{hashFiles('**/package-lock.json')}} - restore-keys: ${{runner.os}}-npm- - - run: npm ci - - id: output-set - uses: ./ - with: - script: return require('@actions/core/package.json').name - result-encoding: string - input-value: output - - run: | - if [[ "${{steps.output-set.outputs.result}}" != "@actions/core" ]]; then - exit 1 - fi diff --git a/.github/workflows/licensed.yml b/.github/workflows/licensed.yml deleted file mode 100644 index 4c1dfe5fb..000000000 --- a/.github/workflows/licensed.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Licensed - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - test: - runs-on: ubuntu-latest - name: Check licenses - steps: - - uses: actions/checkout@v2 - - run: npm ci - - name: Install licensed - run: | - cd $RUNNER_TEMP - curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/2.12.2/licensed-2.12.2-linux-x64.tar.gz - sudo tar -xzf licensed.tar.gz - sudo mv licensed /usr/local/bin/licensed - - run: licensed status diff --git a/.github/workflows/pull-request-test.yml b/.github/workflows/pull-request-test.yml deleted file mode 100644 index a9c7c0f20..000000000 --- a/.github/workflows/pull-request-test.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Pull Request Test - -on: - pull_request: - branches: [main] - types: [opened, synchronize] - -jobs: - pull-request-test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: ./ - with: - script: | - // Get the existing comments. - const {data: comments} = await github.rest.issues.listComments({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.number, - }) - - // Find any comment already made by the bot. - const botComment = comments.find(comment => comment.user.id === 41898282) - const commentBody = "Hello from actions/github-script! (${{ github.sha }})" - - if (context.payload.pull_request.head.repo.full_name !== 'actions/github-script') { - console.log('Not attempting to write comment on PR from fork'); - } else { - if (botComment) { - await github.rest.issues.updateComment({ - owner: context.repo.owner, - repo: context.repo.repo, - comment_id: botComment.id, - body: commentBody - }) - } else { - await github.rest.issues.createComment({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.number, - body: commentBody - }) - } - } diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml deleted file mode 100644 index 7a3b654ac..000000000 --- a/.github/workflows/stale.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Stale Issues & PRs - -on: - schedule: - - cron: '0 0 * * *' - workflow_dispatch: - -jobs: - mark_stale: - name: Mark issues and PRs as stale - runs-on: ubuntu-latest - steps: - - uses: actions/stale@v3 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - exempt-issue-labels: Not Stale - exempt-pr-labels: Not Stale - stale-issue-message: > - This issue is stale because it has been open for 60 days with no - activity. Remove the "Stale" label or comment on the issue, or it - will be closed in 7 days. - stale-pr-message: > - This pull request is stale because it has been open for 60 days - with no activity. Remove the "Stale" label or comment on the pull - request, or it will be closed in 7 days. - close-issue-message: > - This issue has been marked as stale and closed due to no activity - on it. - close-pr-message: > - This pull request has been marked as stale and closed due to no - activity on it.