misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux
Rust bittorrent-clientdebriddownload-acceleratordownload-managerdownloadmanagereguifile-downloadergallery-dlidmidm-alternativeinternet-download-managerm3u8-downloadermagnetplaylist-downloaderreal-debridrusttorrent-clientvideo-downloaderyoutube-downloaderyt-dlp
Issue tracker: a "needs info" label that closes after 14 days without an answer, and ideas in Discussions (#848)
Ahmed Nefzaouie2b2a9dc8355
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.ymlindex 9e635add..f68c92d2 100644--- a/.github/ISSUE_TEMPLATE/config.yml+++ b/.github/ISSUE_TEMPLATE/config.yml@@ -1,7 +1,11 @@-# Every issue starts from a form (bug.yml, feature.yml, website.yml), so reports carry the-# system and version they happened on.+# Every issue starts from a form (bug.yml, crash.yml, website.yml), so reports carry the+# system and version they happened on. Ideas go to Discussions (Ideas), where people talk them+# over and vote; the issues are kept for problems and the work planned.blank_issues_enabled: falsecontact_links:+ - name: Suggest an idea+ url: https://github.com/anefzaoui/misterdownloadmanager/discussions/new?category=ideas+ about: Something MDM should do, or do differently. Ideas are talked over and voted on in Discussions.- name: Security problemurl: https://misterdownloadmanager.com/security.htmlabout: Report it privately, not as an issue.diff --git a/.github/ISSUE_TEMPLATE/feature.yml b/.github/ISSUE_TEMPLATE/feature.ymldeleted file mode 100644index 64ae97cc..00000000--- a/.github/ISSUE_TEMPLATE/feature.yml+++ /dev/null@@ -1,40 +0,0 @@-name: Feature idea-description: Something MDM should do, or do differently.-labels: [enhancement]-body:- - type: textarea- id: idea- attributes:- label: What you'd like- description: What MDM should do, in your own words.- validations:- required: true- - type: textarea- id: why- attributes:- label: Why- description: What you're trying to get done, and what gets in the way today.- validations:- required: true- - type: dropdown- id: os- attributes:- label: System- description: Where you use MDM.- multiple: true- options:- - Windows- - macOS- - Linux- - type: input- id: elsewhere- attributes:- label: Seen it elsewhere?- description: Another program that does it, if any.- - type: checkboxes- id: searched- attributes:- label: Before you send it- options:- - label: I looked through the [open issues](https://github.com/anefzaoui/misterdownloadmanager/issues) and this idea isn't there yet.- required: truediff --git a/.github/workflows/needs-info.yml b/.github/workflows/needs-info.ymlnew file mode 100644index 00000000..c4c379c8--- /dev/null+++ b/.github/workflows/needs-info.yml@@ -0,0 +1,125 @@+# Issues labelled "needs info" wait for details from their reporter. Once a day, one whose last+# comment is ours (the owner, a member or a collaborator) and 14 or more days old is closed with a+# kind note; the note carries a hidden marker. When the issue's author comments, the label comes+# off, and an issue this workflow closed (its last close, with the marker in its note) opens+# again. An issue a maintainer closed for another reason stays closed.+# Run by hand with "dry_run" to see what would be closed, without changing anything.+name: Needs info++on:+ schedule:+ - cron: "17 6 * * *"+ workflow_dispatch:+ inputs:+ dry_run:+ description: "Only log what would be closed"+ type: boolean+ default: true+ issue_comment:+ types: [created]++permissions: {}++jobs:+ close-unanswered:+ if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'+ runs-on: ubuntu-latest+ permissions:+ issues: write # comment on and close the unanswered issues+ steps:+ - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ env:+ DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run }}+ with:+ script: |+ const LABEL = 'needs info';+ const DAYS = 14;+ const MARKER = '<!-- mdm:needs-info-closed -->';+ const NOTE = "closing for now since there's no answer yet; just reply here with the details and it opens again";+ const OURS = ['OWNER', 'MEMBER', 'COLLABORATOR'];+ const dryRun = process.env.DRY_RUN === 'true';+ const { owner, repo } = context.repo;+ const now = Date.now();+ core.info(`${dryRun ? 'Dry run: nothing changes. ' : ''}Open issues labelled "${LABEL}":`);+ const issues = await github.paginate(github.rest.issues.listForRepo, {+ owner, repo, state: 'open', labels: LABEL, per_page: 100,+ });+ let closed = 0;+ for (const issue of issues) {+ if (issue.pull_request) continue;+ const n = issue.number;+ const comments = await github.paginate(github.rest.issues.listComments, {+ owner, repo, issue_number: n, per_page: 100,+ });+ const last = comments[comments.length - 1];+ if (!last) {+ core.info(`#${n}: no comment yet, kept`);+ continue;+ }+ const days = Math.floor((now - Date.parse(last.created_at)) / 86400000);+ const who = `${last.user.login} (${last.author_association})`;+ if (!OURS.includes(last.author_association)) {+ core.info(`#${n}: last comment by ${who}, ${days} days ago: kept`);+ continue;+ }+ if (days < DAYS) {+ core.info(`#${n}: our last comment is ${days} days old (under ${DAYS}): kept`);+ continue;+ }+ closed++;+ if (dryRun) {+ core.info(`#${n}: our last comment is ${days} days old: would close`);+ continue;+ }+ await github.rest.issues.createComment({+ owner, repo, issue_number: n, body: `${NOTE}\n\n${MARKER}`,+ });+ await github.rest.issues.update({+ owner, repo, issue_number: n, state: 'closed', state_reason: 'not_planned',+ });+ core.info(`#${n}: our last comment is ${days} days old: closed`);+ }+ core.info(`${issues.length} labelled, ${closed} ${dryRun ? 'would be ' : ''}closed.`);++ reporter-answered:+ # Comments made with this workflow's token start no run, so its own note never counts.+ if: >-+ github.event_name == 'issue_comment' &&+ !github.event.issue.pull_request &&+ github.event.comment.user.login == github.event.issue.user.login+ runs-on: ubuntu-latest+ permissions:+ issues: write # take the label off and reopen+ concurrency:+ group: needs-info-${{ github.event.issue.number }}+ steps:+ - uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0+ with:+ script: |+ const LABEL = 'needs info';+ const MARKER = '<!-- mdm:needs-info-closed -->';+ const BOT = 'github-actions[bot]';+ const { owner, repo } = context.repo;+ const issue = context.payload.issue;+ const n = issue.number;+ if (issue.labels.some((l) => l.name === LABEL)) {+ await github.rest.issues.removeLabel({ owner, repo, issue_number: n, name: LABEL })+ .catch((e) => { if (e.status !== 404) throw e; });+ core.info(`#${n}: the reporter answered, "${LABEL}" removed`);+ }+ if (issue.state !== 'closed') return;+ // Reopen only if the last close was this workflow's, with its marked note.+ const events = await github.paginate(github.rest.issues.listEvents, {+ owner, repo, issue_number: n, per_page: 100,+ });+ const lastClose = events.filter((e) => e.event === 'closed').pop();+ const comments = await github.paginate(github.rest.issues.listComments, {+ owner, repo, issue_number: n, per_page: 100,+ });+ const marked = comments.some((c) => c.user.login === BOT && c.body.includes(MARKER));+ if (lastClose && lastClose.actor && lastClose.actor.login === BOT && marked) {+ await github.rest.issues.update({ owner, repo, issue_number: n, state: 'open' });+ core.info(`#${n}: closed for want of an answer, opened again`);+ } else {+ core.info(`#${n}: closed by ${lastClose?.actor?.login ?? 'someone'}, stays closed`);+ }diff --git a/README.md b/README.mdindex 4e16bd46..9fad2b6f 100644--- a/README.md+++ b/README.md@@ -444,9 +444,10 @@ Linux, and some corners are still "good enough for now".- Not yet: code signing. The macOS builds are untested; on Linux, screen readers (Orca) andFlatpak browsers aren't supported yet.-Bug reports and ideas are welcome in+Bug reports are welcome in[Issues](https://github.com/anefzaoui/misterdownloadmanager/issues/new/choose): **Help → Report a problem**-in the app fills in your version and system. Pull requests are accepted under the same licence: start with [CONTRIBUTING.md](CONTRIBUTING.md).+in the app fills in your version and system. Ideas are welcome in+[Discussions](https://github.com/anefzaoui/misterdownloadmanager/discussions/categories/ideas). Pull requests are accepted under the same licence: start with [CONTRIBUTING.md](CONTRIBUTING.md).## Made possible by these amazing humansdiff --git a/ROADMAP.md b/ROADMAP.mdindex 3a22cda0..63264c90 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -2,8 +2,9 @@What's done for version 0.5.2, what's being built, and what's planned. Each item links to itsissue, where the details and the discussion are. Released changes are in-[CHANGELOG.md](CHANGELOG.md). Ideas and bug reports are welcome in-[Issues](https://github.com/anefzaoui/misterdownloadmanager/issues).+[CHANGELOG.md](CHANGELOG.md). Bug reports are welcome in+[Issues](https://github.com/anefzaoui/misterdownloadmanager/issues), ideas in+[Discussions](https://github.com/anefzaoui/misterdownloadmanager/discussions/categories/ideas).✅ done · 🔄 being built · 📋 planned · 🔍 looking into it@@ -565,6 +566,11 @@ These ship in the next version.and type, and the Download video window saves it instead of failing on its `.php`([#695](https://github.com/anefzaoui/misterdownloadmanager/issues/695),[#800](https://github.com/anefzaoui/misterdownloadmanager/issues/800))+- ✅ The issue tracker: an issue waiting for details from its reporter is labelled "needs info";+ with no answer 14 days after our question it closes with a note, and the reporter's reply+ opens it again+- ✅ Ideas move to GitHub Discussions (Ideas), where they can be talked over and voted on; the+ issue form for them points there- ✅ **Add batch download from clipboard** reads every link copied (a list, a forum post): http,ftp and magnet links, each once, ticked in Link grabber, started or queued together with onesummary at the end; a copied address with a number in it (`…/ep01.mp4`) opens Batch download