From 8a0c58dda5c32a95b6b956ffeaaa088a86e6501b Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Fri, 30 Jun 2023 17:15:44 +0000 Subject: [PATCH] Remove duplicated .github directory Seems to have been an accident 8 months ago. Signed-off-by: Bryan Boreham --- .github/.github/ISSUE_TEMPLATE/bug_report.yml | 74 ------------------- .github/.github/ISSUE_TEMPLATE/config.yml | 8 -- .../.github/ISSUE_TEMPLATE/feature_request.md | 26 ------- .github/.github/PULL_REQUEST_TEMPLATE.md | 17 ----- .github/.github/dependabot.yml | 22 ------ .github/.github/stale.yml | 56 -------------- .github/.github/workflows/golangci-lint.yml | 30 -------- .github/.github/workflows/lock.yml | 22 ------ .github/.github/workflows/test.yml | 30 -------- .../workflows/ui_build_and_release.yml | 44 ----------- 10 files changed, 329 deletions(-) delete mode 100644 .github/.github/ISSUE_TEMPLATE/bug_report.yml delete mode 100644 .github/.github/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/.github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 .github/.github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/.github/dependabot.yml delete mode 100644 .github/.github/stale.yml delete mode 100644 .github/.github/workflows/golangci-lint.yml delete mode 100644 .github/.github/workflows/lock.yml delete mode 100644 .github/.github/workflows/test.yml delete mode 100644 .github/.github/workflows/ui_build_and_release.yml diff --git a/.github/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/.github/ISSUE_TEMPLATE/bug_report.yml deleted file mode 100644 index 90773a63ef..0000000000 --- a/.github/.github/ISSUE_TEMPLATE/bug_report.yml +++ /dev/null @@ -1,74 +0,0 @@ ---- -name: Bug report -description: Create a report to help us improve. -body: - - type: markdown - attributes: - value: | - Thank you for opening a bug report for Prometheus. - - Please do *NOT* ask support questions in Github issues. - - If your issue is not a feature request or bug report use our [community support](https://prometheus.io/community/). - - There is also [commercial support](https://prometheus.io/support-training/) available. - - type: textarea - attributes: - label: What did you do? - description: Please provide steps for us to reproduce this issue. - validations: - required: true - - type: textarea - attributes: - label: What did you expect to see? - - type: textarea - attributes: - label: What did you see instead? Under which circumstances? - validations: - required: true - - type: markdown - attributes: - value: | - ## Environment - - type: input - attributes: - label: System information - description: insert output of `uname -srm` here, or operating system version - placeholder: e.g. Linux 5.16.15 x86_64 - - type: textarea - attributes: - label: Prometheus version - description: Insert output of `prometheus --version` here. - render: text - placeholder: | - e.g. prometheus, version 2.23.0 (branch: HEAD, revision: 26d89b4b0776fe4cd5a3656dfa520f119a375273) - build user: root@37609b3a0a21 - build date: 20201126-10:56:17 - go version: go1.15.5 - platform: linux/amd64 - - type: textarea - attributes: - label: Prometheus configuration file - description: Insert relevant configuration here. Don't forget to remove secrets. - render: yaml - - type: textarea - attributes: - label: Alertmanager version - description: Insert output of `alertmanager --version` here (if relevant to the issue). - render: text - placeholder: | - e.g. alertmanager, version 0.22.2 (branch: HEAD, revision: 44f8adc06af5101ad64bd8b9c8b18273f2922051) - build user: root@b595c7f32520 - build date: 20210602-07:50:37 - go version: go1.16.4 - platform: linux/amd64 - - type: textarea - attributes: - label: Alertmanager configuration file - description: Insert relevant configuration here. Don't forget to remove secrets. - render: yaml - - type: textarea - attributes: - label: Logs - description: Insert Prometheus and Alertmanager logs relevant to the issue here. - render: text diff --git a/.github/.github/ISSUE_TEMPLATE/config.yml b/.github/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index f4d17b3596..0000000000 --- a/.github/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,8 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: Prometheus Community Support - url: https://prometheus.io/community/ - about: If you need help or support, please request help here. - - name: Commercial Support & Training - url: https://prometheus.io/support-training/ - about: If you want commercial support or training, vendors are listed here. diff --git a/.github/.github/ISSUE_TEMPLATE/feature_request.md b/.github/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index cf839b560f..0000000000 --- a/.github/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project. -title: '' -labels: '' -assignees: '' ---- - - -## Proposal -**Use case. Why is this important?** - -*“Nice to have” is not a good use case. :)* diff --git a/.github/.github/PULL_REQUEST_TEMPLATE.md b/.github/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 9e78957ec2..0000000000 --- a/.github/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,17 +0,0 @@ - diff --git a/.github/.github/dependabot.yml b/.github/.github/dependabot.yml deleted file mode 100644 index 4c4b4a5fba..0000000000 --- a/.github/.github/dependabot.yml +++ /dev/null @@ -1,22 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "gomod" - directory: "/" - schedule: - interval: "monthly" - - package-ecosystem: "gomod" - directory: "/documentation/examples/remote_storage" - schedule: - interval: "monthly" - - package-ecosystem: "npm" - directory: "/web/ui" - schedule: - interval: "monthly" - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "monthly" - - package-ecosystem: "docker" - directory: "/" - schedule: - interval: "monthly" diff --git a/.github/.github/stale.yml b/.github/.github/stale.yml deleted file mode 100644 index 66a72af533..0000000000 --- a/.github/.github/stale.yml +++ /dev/null @@ -1,56 +0,0 @@ -# Configuration for probot-stale - https://github.com/probot/stale - -# Number of days of inactivity before an Issue or Pull Request becomes stale -daysUntilStale: 60 - -# Number of days of inactivity before an Issue or Pull Request with the stale label is closed. -# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. -daysUntilClose: false - -# Only issues or pull requests with all of these labels are check if stale. Defaults to `[]` (disabled) -onlyLabels: [] - -# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable -exemptLabels: - - keepalive - -# Set to true to ignore issues in a project (defaults to false) -exemptProjects: false - -# Set to true to ignore issues in a milestone (defaults to false) -exemptMilestones: false - -# Set to true to ignore issues with an assignee (defaults to false) -exemptAssignees: false - -# Label to use when marking as stale -staleLabel: stale - -# Comment to post when marking as stale. Set to `false` to disable -markComment: false - -# Comment to post when removing the stale label. -# unmarkComment: > -# Your comment here. - -# Comment to post when closing a stale Issue or Pull Request. -# closeComment: > -# Your comment here. - -# Limit the number of actions per hour, from 1-30. Default is 30 -limitPerRun: 30 - -# Limit to only `issues` or `pulls` -only: pulls - -# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls': -# pulls: -# daysUntilStale: 30 -# markComment: > -# This pull request has been automatically marked as stale because it has not had -# recent activity. It will be closed if no further activity occurs. Thank you -# for your contributions. - -# issues: -# exemptLabels: -# - confirmed diff --git a/.github/.github/workflows/golangci-lint.yml b/.github/.github/workflows/golangci-lint.yml deleted file mode 100644 index 6034bcbf8b..0000000000 --- a/.github/.github/workflows/golangci-lint.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: golangci-lint -on: - push: - paths: - - "go.sum" - - "go.mod" - - "**.go" - - "scripts/errcheck_excludes.txt" - - ".github/workflows/golangci-lint.yml" - - ".golangci.yml" - pull_request: - -jobs: - golangci: - name: lint - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - name: install Go - uses: actions/setup-go@v2 - with: - go-version: 1.18.x - - name: Install snmp_exporter/generator dependencies - run: sudo apt-get update && sudo apt-get -y install libsnmp-dev - if: github.repository == 'prometheus/snmp_exporter' - - name: Lint - uses: golangci/golangci-lint-action@v3.2.0 - with: - version: v1.45.2 diff --git a/.github/.github/workflows/lock.yml b/.github/.github/workflows/lock.yml deleted file mode 100644 index 3ca1f76e46..0000000000 --- a/.github/.github/workflows/lock.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: 'Lock Threads' - -on: - schedule: - - cron: '13 23 * * *' - workflow_dispatch: - -permissions: - issues: write - -concurrency: - group: lock - -jobs: - action: - runs-on: ubuntu-latest - steps: - - uses: dessant/lock-threads@v3 - with: - process-only: 'issues' - issue-inactive-days: '180' - github-token: ${{ secrets.PROMBOT_LOCKTHREADS_TOKEN }} diff --git a/.github/.github/workflows/test.yml b/.github/.github/workflows/test.yml deleted file mode 100644 index 507b8a8735..0000000000 --- a/.github/.github/workflows/test.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: ci -on: - push: - branches: [main] - pull_request: - -jobs: - test: - runs-on: ubuntu-20.04 - steps: - - name: Upgrade golang - run: | - cd /tmp - wget https://dl.google.com/go/go1.18.7.linux-amd64.tar.gz - tar -zxvf go1.18.7.linux-amd64.tar.gz - sudo rm -fr /usr/local/go - sudo mv /tmp/go /usr/local/go - cd - - ls -l /usr/bin/go - - - name: Checkout Repo - uses: actions/checkout@v2 - - # This file would normally be created by `make assets`, here we just - # mock it because the file is required for the tests to pass. - - name: Mock building of necessary react file - run: mkdir web/ui/static/react && touch web/ui/static/react/index.html - - - name: Run Tests - run: GO=/usr/local/go/bin/go make common-test diff --git a/.github/.github/workflows/ui_build_and_release.yml b/.github/.github/workflows/ui_build_and_release.yml deleted file mode 100644 index f3ca674189..0000000000 --- a/.github/.github/workflows/ui_build_and_release.yml +++ /dev/null @@ -1,44 +0,0 @@ -name: ui_build_and_release -on: - pull_request: - push: - branches: - - main - tags: - - "v0.[0-9]+.[0-9]+*" -jobs: - release: - name: release - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install nodejs - uses: actions/setup-node@v3 - with: - node-version-file: "web/ui/.nvmrc" - - uses: actions/cache@v3.0.4 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - - name: Check libraries version - ## This step is verifying that the version of each package is matching the tag - if: ${{ github.event_name == 'push' && startsWith(github.ref_name, 'v') }} - run: ./scripts/ui_release.sh --check-package "${{ github.ref_name }}" - - name: build - run: make assets - - name: Copy files before publishing libs - run: ./scripts/ui_release.sh --copy - - name: Publish dry-run libraries - if: ${{ github.event_name == 'pull_request' || github.ref_name == 'main' }} - run: ./scripts/ui_release.sh --publish dry-run - - name: Publish libraries - if: ${{ github.event_name == 'push' && startsWith(github.ref_name, 'v') }} - run: ./scripts/ui_release.sh --publish - env: - # The setup-node action writes an .npmrc file with this env variable - # as the placeholder for the auth token - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}