diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 2ac83fa..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1,14 +0,0 @@ -# These are supported funding model platforms - -github: [NoM0Re] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] -patreon: # Replace with a single Patreon username -open_collective: # Replace with a single Open Collective username -ko_fi: # Replace with a single Ko-fi username -tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel -community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry -liberapay: # Replace with a single Liberapay username -issuehunt: # Replace with a single IssueHunt username -otechie: # Replace with a single Otechie username -lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry -custom: https://streamelements.com/nom0ree/tip - diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml deleted file mode 100644 index 0665220..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ /dev/null @@ -1,123 +0,0 @@ -name: "Bug Report" -description: Create a report to help us improve -labels: ['🐛 Bug'] -body: -- type: checkboxes - attributes: - label: Is there an existing issue for this? - description: Please [search for existing issues](https://github.com/Ascension-Addons/WeakAuras-Ascension/issues) to see if an open or closed one already exists for the bug you encountered. If a bug exists and it is closed as complete it may not yet be in a stable release. - options: - - label: I have searched the existing open and closed issues. - required: true - -- type: textarea - attributes: - label: Description - description: What did you expect to happen and what happened instead? - validations: - required: true - -- type: input - attributes: - label: WeakAuras Version - description: | - You can see the current version in the title bar of the options window, if the options do not open, check the `## Version:` field in the WeakAuras.toc file. - placeholder: "WeakAuras 5.0.0" - validations: - required: true - -- type: dropdown - id: flavor - attributes: - label: World of Warcraft Flavor - description: What version of World of Warcraft are are you running? - options: - - WotLK 3.3.5a - validations: - required: true - -- type: dropdown - id: language - attributes: - label: World of Warcraft Language - description: In which language do you play World of Warcraft? - options: - - enGB/enUS - - deDE - - frFR - - itIT - - esES - - esMX - - koKR - - ptBR - - ruRU - - zhCN - - zhTW - validations: - required: true - -- type: input - id: server - attributes: - label: Server - description: On which server/realm are you playing? - placeholder: Warmane-Icecrown - validations: - required: true - -- type: checkboxes - id: testing - attributes: - label: Tested with only WeakAuras - description: Sometimes, other addons can interfere with WeakAuras. We recommend testing with only WeakAuras enabled to see if the issue persists. - options: - - label: I got this issue with only WeakAuras enabled - required: true - -- type: textarea - attributes: - label: Lua Error - description: | - Do you have an error log of what happened? If you don't see any errors, make sure that error reporting is enabled (`/console scriptErrors 1`) or install [BugSack](https://www.curseforge.com/wow/addons/bugsack) & [BugGrabber](https://www.curseforge.com/wow/addons/bug-grabber), yes both are needed. - Note that if the error looks like `[string "--[[ Error in ' my awesome aura' ]` then the bug is in the aura that got mentioned, not in WeakAuras itself. - render: Text - validations: - required: false - -- type: textarea - attributes: - label: Reproduction Steps - description: Please list out the steps to reproduce your bug. Please verify that your reproduction steps are enough to reproduce the problem. - placeholder: | - 1. Go to '...' - 2. Click on '....' - 3. Scroll down to '....' - 4. See error - validations: - required: true - -- type: input - attributes: - label: Last Good Version - description: | - Was it working in a previous version? If yes, which was the last good one? - placeholder: "WeakAuras 5.0.0" - validations: - required: false - -- type: textarea - attributes: - label: Screenshots - description: If applicable, add screenshots to help explain your problem. - placeholder: Click here to attach your screenshots via the editor button in the top right. - validations: - required: false - -- type: textarea - attributes: - label: Export String - description: If you do not know which aura is causing issues for you, please attach a ZIP archive of your WeakAuras SavedVariables file, it's the `WeakAuras.lua` file in `World of Warcraft\_retail_\WTF\Account\YOUR_ACCOUNT\SavedVariables\`. In case you do, please export the string and paste it below. - placeholder: Paste your exported WeakAuras string here. - render: Text - validations: - required: false diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml deleted file mode 100644 index 6498af8..0000000 --- a/.github/ISSUE_TEMPLATE/config.yml +++ /dev/null @@ -1,5 +0,0 @@ -blank_issues_enabled: false -contact_links: - - name: Question - url: https://discord.gg/classlesswow - about: Please ask and answer questions here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index 5e0fb3a..0000000 --- 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: "\U0001F3A8 Feature Request" -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/autoclose.yaml b/.github/workflows/autoclose.yaml deleted file mode 100644 index 5dc7272..0000000 --- a/.github/workflows/autoclose.yaml +++ /dev/null @@ -1,115 +0,0 @@ -name: Autoclose after 2 days - -on: - schedule: - - cron: '0 0 * * *' - issues: - types: [labeled] - pull_request: - types: [labeled] - -permissions: - issues: write - pull-requests: write - -jobs: - autoclose: - runs-on: ubuntu-latest - steps: - - name: Close Issues/PRs labeled 'Auto Close' after 2 days, if label set by collaborator and no recent comments - uses: actions/github-script@v7 - with: - script: | - const { owner, repo } = context.repo; - const labelName = '⏳Auto Close'; - const maxAgeDays = 2; - const now = new Date(); - - const issues = await github.paginate(github.rest.issues.listForRepo, { - owner, - repo, - labels: labelName, - state: 'open', - per_page: 100, - }); - - for (const issue of issues) { - const issue_number = issue.number; - - const events = await github.paginate(github.rest.issues.listEventsForTimeline, { - owner, - repo, - issue_number, - per_page: 100, - }); - - const labelEvent = events.find(event => - event.event === 'labeled' && - event.label?.name === labelName - ); - - if (!labelEvent) continue; - - let labelDate = new Date(labelEvent.created_at); - - const comments = await github.paginate( - issue.pull_request - ? github.rest.pulls.listReviewComments - : github.rest.issues.listComments, - { - owner, - repo, - issue_number, - per_page: 100, - } - ); - - const recentCommentsAfterLabel = comments - .filter(c => new Date(c.created_at) > labelDate); - - let latestDate = labelDate; - if (recentCommentsAfterLabel.length > 0) { - latestDate = new Date(Math.max(...recentCommentsAfterLabel.map(c => new Date(c.created_at).getTime()))); - } - - const diffDays = (now - latestDate) / (1000 * 60 * 60 * 24); - - if (diffDays < maxAgeDays) continue; - - const actor = labelEvent.actor?.login; - if (!actor) continue; - - try { - await github.rest.repos.checkCollaborator({ - owner, - repo, - username: actor, - }); - } catch (error) { - if (error.status === 404) { - await github.rest.issues.removeLabel({ - owner, - repo, - issue_number, - name: labelName, - }); - continue; - } else { - throw error; - } - } - - await github.rest.issues.update({ - owner, - repo, - issue_number, - state: 'closed', - }); - - await github.rest.issues.removeLabel({ - owner, - repo, - issue_number, - name: labelName, - }); - } diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml deleted file mode 100644 index af43ec7..0000000 --- a/.github/workflows/lint-pr.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: lint - -on: - pull_request: - paths: - - '**.lua' - -jobs: - lint: - runs-on: ubuntu-latest - - env: - LUA_VERSION: 5.1.5 - LUAROCKS_VERSION: 3.11.1 - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Cache Lua - uses: actions/cache@v3 - id: luacache - with: - path: .lua - key: ${{ runner.os }}-lua-${{ env.LUA_VERSION }} - restore-keys: | - ${{ runner.os }}-lua-${{ env.LUA_VERSION }} - - - name: Cache LuaRocks - uses: actions/cache@v3 - id: luarockscache - with: - path: .luarocks - key: ${{ runner.os }}-luarocks-${{ env.LUAROCKS_VERSION }} - restore-keys: | - ${{ runner.os }}-luarocks-${{ env.LUAROCKS_VERSION }} - - - name: Install Lua - if: steps.luacache.outputs.cache-hit != 'true' - run: | - sudo apt-get install libreadline-dev libncurses-dev - wget https://www.lua.org/ftp/lua-${{ env.LUA_VERSION }}.tar.gz -O - | tar -xzf - - cd lua-${{ env.LUA_VERSION }} - make linux - make -j INSTALL_TOP=$GITHUB_WORKSPACE/.lua install - rm -rf $GITHUB_WORKSPACE/lua-${{ env.LUA_VERSION }} - - - name: Install LuaRocks and Luacheck - if: steps.luarockscache.outputs.cache-hit != 'true' - run: | - wget https://luarocks.org/releases/luarocks-${{ env.LUAROCKS_VERSION }}.tar.gz -O - | tar -xzf - - cd luarocks-${{ env.LUAROCKS_VERSION }} - ./configure --with-lua-bin=$GITHUB_WORKSPACE/.lua/bin --prefix=$GITHUB_WORKSPACE/.luarocks - make build - make install - PATH=$PATH:$GITHUB_WORKSPACE/.luarocks/bin - luarocks install luacheck - luarocks install lanes - rm -rf $GITHUB_WORKSPACE/luarocks-${{ env.LUAROCKS_VERSION }} - - - name: Luacheck - run: .luarocks/bin/luacheck . -q diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index cb8c310..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,66 +0,0 @@ -name: lint - -on: - push: - paths: - - '.github/workflows/**.yml' - - '**.lua' - pull_request: - paths: - - '**.lua' - -jobs: - lint: - runs-on: ubuntu-latest - - env: - LUA_VERSION: 5.1.5 - LUAROCKS_VERSION: 3.11.1 - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Cache Lua - uses: actions/cache@v3 - id: luacache - with: - path: .lua - key: ${{ runner.os }}-lua-${{ env.LUA_VERSION }} - restore-keys: | - ${{ runner.os }}-lua-${{ env.LUA_VERSION }} - - - name: Cache LuaRocks - uses: actions/cache@v3 - id: luarockscache - with: - path: .luarocks - key: ${{ runner.os }}-luarocks-${{ env.LUAROCKS_VERSION }} - restore-keys: | - ${{ runner.os }}-luarocks-${{ env.LUAROCKS_VERSION }} - - - name: Install Lua - if: steps.luacache.outputs.cache-hit != 'true' - run: | - sudo apt-get install libreadline-dev libncurses-dev - wget https://www.lua.org/ftp/lua-${{ env.LUA_VERSION }}.tar.gz -O - | tar -xzf - - cd lua-${{ env.LUA_VERSION }} - make linux - make -j INSTALL_TOP=$GITHUB_WORKSPACE/.lua install - rm -rf $GITHUB_WORKSPACE/lua-${{ env.LUA_VERSION }} - - - name: Install LuaRocks and Luacheck - if: steps.luarockscache.outputs.cache-hit != 'true' - run: | - wget https://luarocks.org/releases/luarocks-${{ env.LUAROCKS_VERSION }}.tar.gz -O - | tar -xzf - - cd luarocks-${{ env.LUAROCKS_VERSION }} - ./configure --with-lua-bin=$GITHUB_WORKSPACE/.lua/bin --prefix=$GITHUB_WORKSPACE/.luarocks - make build - make install - PATH=$PATH:$GITHUB_WORKSPACE/.luarocks/bin - luarocks install luacheck - luarocks install lanes - rm -rf $GITHUB_WORKSPACE/luarocks-${{ env.LUAROCKS_VERSION }} - - - name: Luacheck - run: .luarocks/bin/luacheck .