tachiyomiorg / issue-moderator-action Goto Github PK
View Code? Open in Web Editor NEWGitHub action for organization members to use commands for moderating issues of a repository.
License: Mozilla Public License 2.0
GitHub action for organization members to use commands for moderating issues of a repository.
License: Mozilla Public License 2.0
The command would be /ext
or something else. It would close the issue and leave a comment about reporting to the extension repo instead. Maybe apply invalid
label as well.
This will help to notice issues that were closed by mistake. Related issue - #342
My attempt to do this for existing sources - https://github.com/scb261/issue-moderator-action/compare/main..existing-show-url
But it didn't work - scb261#5
Add alias to the existing commands that are more bot-like.
When some user uses it, the comment would be marked as resolved or hidden.
The command would be /cf
or /cloudflare
and would do the same as the cloudflare regex in the extension repo.
Right now, the auto-close feature will only close issues that match the regex. I think it'd be useful to be also able to auto-close if the regex isn't matched through a flag. This way the auto-close could be used to enforce templates being used.
My proposal would be a boolean option like closeifMatch
which defaults to true
which is the current behavior. By setting to false
the regex must match to avoid closure.
[
{
"type": "title",
"regex": ".*Placeholder title.*",
"message": "@${issue.user.login} this issue was automatically closed because it did not follow the issue template",
"closeifMatch": true
}
]
A command that allows the user to edit the current issue title by a specified new one.
Can be used by Edit title to <new-title>
or /edit-title <new-title>
.
index.min.json
for duplicate URL.
Sometimes issue body contains old URL in its body, and the issue is closed as a duplicate. Most often it's because source name contains old URL in its name, and sometimes user mentions old URL in other details.
Should take substring of the body after Source new URL
and before Other details
.
Examples of issues with this problem:
Note: consider that the check also applies to new source requests that don't have Source new URL
section.
Currently the extension repo uses duplicate check for both Domain changed
and Source request
, but the comment for duplicates always explains that the source was already requested. Possible ways to generalize the comment:
Duplicate of #dddd
.Source request
and Domain changed
cases.I'll open a PR with the first solution. Opening the issue to consider/discuss other possible solutions.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are awaiting their schedule. Click on a checkbox to get an update now.
.github/workflows/ci.yml
actions/checkout v4
actions/setup-node v4
.github/workflows/generate-js.yml
actions/checkout v4
actions/setup-node v4
peter-evans/create-pull-request v6
.github/workflows/test.yml
actions/checkout v4
package.json
@actions/core 1.10.1
@actions/github 6.0.0
@octokit/webhooks-types 7.5.1
axios 1.7.2
@octokit/action 7.0.0
@tsconfig/node20 20.1.4
@types/dedent 0.7.2
esbuild 0.23.0
prettier 3.3.3
typescript 5.5.3
vitest 2.0.2
.nvmrc
node 20
the rule that regexp needs to be matched.
I want to prevent deleting all template text.
Could consider having tests that create issues and assert their states/comments.
Could use https://github.com/octokit/action.js/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.