mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-03 18:48:12 +08:00
feat!: allowlist & denylist (#13681)
* feat!: allowlist & denylist * Update website/i18n/zh/docusaurus-plugin-content-docs/current/install/README.md * Update website/i18n/zh/docusaurus-plugin-content-docs/current/install/README.md * Update website/i18n/zh/docusaurus-plugin-content-docs/current/install/README.md * Update website/docs/install/README.md * Update website/docs/install/README.md * Update website/docs/install/README.md * Update website/docs/install/README.md * Update website/docs/install/README.md * chore: revert ---------
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const noFound = 'Auto: Route No Found';
|
||||
const whiteListedUser = ['dependabot[bot]', 'pull[bot]']; // dependabot and downstream PR requested by pull[bot]
|
||||
const allowedUser = ['dependabot[bot]', 'pull[bot]']; // dependabot and downstream PR requested by pull[bot]
|
||||
|
||||
module.exports = async ({ github, context, core }, body, number, sender) => {
|
||||
core.debug(`sender: ${sender}`);
|
||||
@@ -82,10 +82,10 @@ module.exports = async ({ github, context, core }, body, number, sender) => {
|
||||
await updatePrState('open');
|
||||
}
|
||||
|
||||
if (whiteListedUser.includes(sender)) {
|
||||
core.info('PR created by a whitelisted user, passing');
|
||||
if (allowedUser.includes(sender)) {
|
||||
core.info('PR created by a allowed user, passing');
|
||||
await removeLabel();
|
||||
await addLabels(['Auto: whitelisted']);
|
||||
await addLabels(['Auto: allowed']);
|
||||
return;
|
||||
} else {
|
||||
core.debug('PR created by ' + sender);
|
||||
|
||||
Reference in New Issue
Block a user