View Code? Open in Web Editor
NEW
This project forked from tachiyomiorg /issue-moderator-action
GitHub action for organization members to use commands for moderating issues of a repository.
License: Mozilla Public License 2.0
JavaScript 0.57%
TypeScript 99.43%
issue-moderator-action's People
Stargazers
Watchers
issue-moderator-action's Issues
Issues that mention an extension name that also contain a domain will be automatically closed.
Valid URLs should be ignored in the title and under the 'Source information' / 'Source name' section. Example: keiyoushi/extensions-source#3604 .
Relevant code:
const issueUrls = urlsFromIssueBody ( issue . body ) ;
Similar to the duplicate-url-check, it should be possible to look for the pattern:
Issue opened
A recent issue was closed
Issue is by the same author
The author closed the issue
Issue is a duplicate, based on same URL
If these conditions are met:
Close issue
Reopen old issue
Most relevant change would probably be this line . It should have some additional conditions (pseudo code):
const recentDate = new Date ( currentDate . getTime ( ) - ( 4 * 60 * 60 * 1000 ) ) ; // 4 hours
const recentDateISO = recentDate . toISOString ( ) ;
const qualifiers = `type:issue repo:${ repo . owner } /${ repo . repo } state:closed author:${ issue . user . login } closed:>${ recentDateISO } label:"${ labelsToCheck . join ( '","' ) } "` ;
Did not find a way to search for 'closed by', but it seems like issue.closed_by.login
should be comparable once you actually fetch the details of the issue. Not sure if this condition is ultimately required.
Test case:
keiyoushi/extensions-source#485
keiyoushi/extensions-source#707
keiyoushi/extensions-source#3315
keiyoushi/extensions-source#3461
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Open
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
Detected dependencies
github-actions
.github/workflows/ci.yml
actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
pnpm/action-setup v3.0.0@a3252b78c470c02df07e9d59298aecedc3ccdd6d
actions/setup-node v4.0.2@60edb5dd545a775178f52524783378180af0d1f8
.github/workflows/generate-js.yml
actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
pnpm/action-setup v3.0.0@a3252b78c470c02df07e9d59298aecedc3ccdd6d
actions/setup-node v4.0.2@60edb5dd545a775178f52524783378180af0d1f8
peter-evans/create-pull-request v6.0.1@a4f52f8033a6168103c2538976c07b467e8163bc
.github/workflows/test.yml
actions/checkout v4.1.1@b4ffde65f46336ab88eb53be808477a3936bae11
npm
package.json
@actions/core 1.10.1
@actions/github 6.0.0
@octokit/webhooks-types 7.3.2
axios 1.6.7
@octokit/action 6.0.7
@tsconfig/node20 20.1.2
@types/dedent 0.7.2
@types/node 20.11.24
esbuild 0.20.1
prettier 3.2.5
typescript 5.3.3
vitest 1.3.1
nvm
.nvmrc