diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml deleted file mode 100644 index a300c3e..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ /dev/null @@ -1,79 +0,0 @@ -name: Bug report -description: Create a report to help us improve -labels: bug - -body: - - type: textarea - id: description - attributes: - label: Describe the bug - description: | - A clear and concise description of what the bug is. - validations: - required: true - - type: textarea - id: steps-to-reproduce - attributes: - label: Steps to reproduce - placeholder: | - 1. Go to '...' - 2. Click on '....' - 3. Scroll down to '....' - 4. See error - validations: - required: true - - type: textarea - id: expected-behavior - attributes: - label: Expected behavior - description: What do you expect to happen? - validations: - required: true - - type: input - id: operating-system - attributes: - label: Operating system - placeholder: Windows 11 Version 21H2 (OS Build 22000.1574) - validations: - required: true - - type: input - id: python-version - attributes: - label: Python version - placeholder: "3.11.1" - validations: - required: true - - type: input - id: miner-version - attributes: - label: Miner version - placeholder: "1.7.7" - validations: - required: true - - type: textarea - id: other-environment-info - attributes: - label: Other relevant software versions - - type: textarea - id: logs - attributes: - label: Logs - description: | - How to provide a DEBUG log: - 1. Set this in your runner script (`run.py`): - ```py - logger_settings=LoggerSettings( - save=True, - console_level=logging.INFO, - file_level=logging.DEBUG, - less=True, - ``` - 2. Start the miner, wait for the error, then stop the miner and post the contents of the log file (`logs\username.log`) to https://gist.github.com/ and post a link here. - 3. Create another gist with your console output, just in case. Paste a link here as well. - validations: - required: true - - type: textarea - id: other-info - attributes: - label: Additional context - description: Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index ac2e8b4..0000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1 +0,0 @@ -blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml deleted file mode 100644 index e71aa86..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Feature request -description: Suggest an idea for this project -labels: enhancement - -body: - - type: textarea - id: description - attributes: - label: Is your feature request related to a problem? - description: A clear and concise description of what the problem is. - placeholder: I'm always frustrated when [...] - - type: textarea - id: solution - attributes: - label: Proposed solution - description: | - Suggest your feature here. What benefit would it bring? - - Do you have any ideas on how to implement it? - validations: - required: true - - type: textarea - id: alternatives - attributes: - label: Alternatives you've considered - description: Suggest any alternative solutions or features you've considered. - - type: textarea - id: other-info - attributes: - label: Additional context - description: Add any other context or screenshots about the feature request here. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 4aef640..0000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,26 +0,0 @@ -# Description - -Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. - -Fixes # (issue) - -## Type of change - -Please delete options that are not relevant. - -- [ ] Bug fix (non-breaking change which fixes an issue) -- [ ] New feature (non-breaking change which adds functionality) -- [ ] Breaking change (fix or feature that would cause existing functionality not to work as expected) - -# How Has This Been Tested? - -Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration. - -# Checklist: - -- [ ] My code follows the style guidelines of this project -- [ ] I have performed a self-review of my code -- [ ] I have commented on my code, particularly in hard-to-understand areas -- [ ] I have made corresponding changes to the documentation (README.md) -- [ ] My changes generate no new warnings -- [ ] Any dependent changes have been updated in requirements.txt diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 1230149..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,6 +0,0 @@ -version: 2 -updates: - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" diff --git a/.github/stale.yml b/.github/stale.yml deleted file mode 100644 index 073f80c..0000000 --- a/.github/stale.yml +++ /dev/null @@ -1,24 +0,0 @@ -# Number of days of inactivity before an issue becomes stale -daysUntilStale: 150 - -# Number of days of inactivity before a stale issue is closed -daysUntilClose: 7 - -# Issues with these labels will never be considered stale -exemptLabels: - - pinned - - security - - bug - - enhancement - -# Label to use when marking an issue as stale -staleLabel: wontfix - -# Comment to post when marking an issue as stale. Set to `false` to disable -markComment: > - This issue 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. - -# Comment to post when closing a stale issue. Set to `false` to disable -closeComment: false diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml deleted file mode 100644 index e854f6a..0000000 --- a/.github/workflows/deploy-docker.yml +++ /dev/null @@ -1,61 +0,0 @@ -name: deploy-docker - -on: - push: - # branches: [master] - tags: - - '*' - workflow_dispatch: - -jobs: - deploy-docker: - name: Deploy Docker Hub - runs-on: ubuntu-latest - steps: - - name: Checkout source - uses: actions/checkout@v4 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3.2.0 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3.7.1 - - - name: Login to DockerHub - uses: docker/login-action@v3.3.0 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_TOKEN }} - - - name: Docker meta - id: meta - uses: docker/metadata-action@v5 - with: - images: rdavidoff/twitch-channel-points-miner-v2 - tags: | - type=semver,pattern={{version}},enable=${{ startsWith(github.ref, 'refs/tags') }} - type=raw,value=latest - - - name: Build and push AMD64, ARM64, ARMv7 - id: docker_build - uses: docker/build-push-action@v6.9.0 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - platforms: linux/amd64,linux/arm64,linux/arm/v7 - build-args: BUILDX_QEMU_ENV=true - cache-from: type=gha - cache-to: type=gha,mode=max - - # File size exceeds the maximum allowed 25000 bytes - # - name: Docker Hub Description - # uses: peter-evans/dockerhub-description@v2 - # with: - # username: ${{ secrets.DOCKER_USERNAME }} - # password: ${{ secrets.DOCKER_TOKEN }} - # repository: rdavidoff/twitch-channel-points-miner-v2 - - - name: Image digest AMD64, ARM64, ARMv7 - run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/.github/workflows/github-clone-count-badge.yml b/.github/workflows/github-clone-count-badge.yml deleted file mode 100644 index 00a7e88..0000000 --- a/.github/workflows/github-clone-count-badge.yml +++ /dev/null @@ -1,90 +0,0 @@ -name: GitHub Clone Count Update Everyday - -on: - schedule: - - cron: "0 */24 * * *" - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: gh login - run: echo "${{ secrets.SECRET_TOKEN }}" | gh auth login --with-token - - - name: parse latest clone count - run: | - curl --user "${{ github.actor }}:${{ secrets.SECRET_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/traffic/clones \ - > clone.json - - - name: create gist and download previous count - id: set_id - run: | - if gh secret list | grep -q "GIST_ID" - then - echo "GIST_ID found" - echo ::set-output name=GIST::${{ secrets.GIST_ID }} - curl https://gist.githubusercontent.com/${{ github.actor }}/${{ secrets.GIST_ID }}/raw/clone.json > clone_before.json - if cat clone_before.json | grep '404: Not Found'; then - echo "GIST_ID not valid anymore. Creating another gist..." - gist_id=$(gh gist create clone.json | awk -F / '{print $NF}') - echo $gist_id | gh secret set GIST_ID - echo ::set-output name=GIST::$gist_id - cp clone.json clone_before.json - git rm --ignore-unmatch CLONE.md - fi - else - echo "GIST_ID not found. Creating a gist..." - gist_id=$(gh gist create clone.json | awk -F / '{print $NF}') - echo $gist_id | gh secret set GIST_ID - echo ::set-output name=GIST::$gist_id - cp clone.json clone_before.json - fi - - - name: update clone.json - run: | - curl https://raw.githubusercontent.com/MShawon/github-clone-count-badge/master/main.py > main.py - python3 main.py - - - name: Update gist with latest count - run: | - content=$(sed -e 's/\\/\\\\/g' -e 's/\t/\\t/g' -e 's/\"/\\"/g' -e 's/\r//g' "clone.json" | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g') - echo '{"description": "${{ github.repository }} clone statistics", "files": {"clone.json": {"content": "'"$content"'"}}}' > post_clone.json - curl -s -X PATCH \ - --user "${{ github.actor }}:${{ secrets.SECRET_TOKEN }}" \ - -H "Content-Type: application/json" \ - -d @post_clone.json https://api.github.com/gists/${{ steps.set_id.outputs.GIST }} > /dev/null 2>&1 - - if [ ! -f CLONE.md ]; then - shields="https://img.shields.io/badge/dynamic/json?color=success&label=Clone&query=count&url=" - url="https://gist.githubusercontent.com/${{ github.actor }}/${{ steps.set_id.outputs.GIST }}/raw/clone.json" - repo="https://github.com/MShawon/github-clone-count-badge" - echo ''> CLONE.md - echo ' - **Markdown** - - ```markdown' >> CLONE.md - echo "[![GitHub Clones]($shields$url&logo=github)]($repo)" >> CLONE.md - echo ' - ``` - - **HTML** - ```html' >> CLONE.md - echo "GitHub Clones" >> CLONE.md - echo '```' >> CLONE.md - - git add CLONE.md - git config --global user.name "GitHub Action" - git config --global user.email "action@github.com" - git commit -m "create clone count badge" - fi - - - name: Push - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/github-traffic-count-badge.yml b/.github/workflows/github-traffic-count-badge.yml deleted file mode 100644 index 07b54cd..0000000 --- a/.github/workflows/github-traffic-count-badge.yml +++ /dev/null @@ -1,83 +0,0 @@ -name: GitHub Traffic Count Update Everyday - -on: - schedule: - - cron: "0 */24 * * *" - workflow_dispatch: - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v4 - - - name: gh login - run: echo "${{ secrets.SECRET_TOKEN }}" | gh auth login --with-token - - - name: parse latest traffic count - run: | - curl --user "${{ github.actor }}:${{ secrets.SECRET_TOKEN }}" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/traffic/views \ - > traffic.json - - name: create gist and download previous count - id: set_id - run: | - if gh secret list | grep -q "TRAFFIC_ID" - then - echo "TRAFFIC_ID found" - echo ::set-output name=GIST::${{ secrets.TRAFFIC_ID }} - curl https://gist.githubusercontent.com/${{ github.actor }}/${{ secrets.TRAFFIC_ID }}/raw/traffic.json > traffic_before.json - if cat traffic_before.json | grep '404: Not Found'; then - echo "TRAFFIC_ID not valid anymore. Creating another gist..." - traffic_id=$(gh gist create traffic.json | awk -F / '{print $NF}') - echo $traffic_id | gh secret set TRAFFIC_ID - echo ::set-output name=GIST::$traffic_id - cp traffic.json traffic_before.json - git rm --ignore-unmatch TRAFFIC.md - fi - else - echo "TRAFFIC_ID not found. Creating a gist..." - traffic_id=$(gh gist create traffic.json | awk -F / '{print $NF}') - echo $traffic_id | gh secret set TRAFFIC_ID - echo ::set-output name=GIST::$traffic_id - cp traffic.json traffic_before.json - fi - - name: update traffic.json - run: | - curl https://gist.githubusercontent.com/MShawon/d37c49ee4ce03f64b92ab58b0cec289f/raw/traffic.py > traffic.py - python3 traffic.py - - name: Update gist with latest count - run: | - content=$(sed -e 's/\\/\\\\/g' -e 's/\t/\\t/g' -e 's/\"/\\"/g' -e 's/\r//g' "traffic.json" | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g') - echo '{"description": "${{ github.repository }} traffic statistics", "files": {"traffic.json": {"content": "'"$content"'"}}}' > post_traffic.json - curl -s -X PATCH \ - --user "${{ github.actor }}:${{ secrets.SECRET_TOKEN }}" \ - -H "Content-Type: application/json" \ - -d @post_traffic.json https://api.github.com/gists/${{ steps.set_id.outputs.GIST }} > /dev/null 2>&1 - if [ ! -f TRAFFIC.md ]; then - shields="https://img.shields.io/badge/dynamic/json?color=success&label=Views&query=count&url=" - url="https://gist.githubusercontent.com/${{ github.actor }}/${{ steps.set_id.outputs.GIST }}/raw/traffic.json" - repo="https://github.com/MShawon/github-clone-count-badge" - echo ''> TRAFFIC.md - echo ' - **Markdown** - ```markdown' >> TRAFFIC.md - echo "[![GitHub Traffic]($shields$url&logo=github)]($repo)" >> TRAFFIC.md - echo ' - ``` - **HTML** - ```html' >> TRAFFIC.md - echo "GitHub Traffic" >> TRAFFIC.md - echo '```' >> TRAFFIC.md - - git add TRAFFIC.md - git config --global user.name "GitHub Action" - git config --global user.email "action@github.com" - git commit -m "create traffic count badge" - fi - - name: Push - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }}