feat(gitea): recruit developers from a Discord panel into FWS
Recruited people need a Gitea account without a public signup on the forge. The panel posts in its own Gitea category, the single modal keeps the whole application in one gesture, and acceptance creates a restricted account in the FWS organization, adds it to the Dev team, grants the Discord Dev role and sends the temporary password by DM. Restrictions keep the new account working inside the organization only, with no personal repository of its own.
This commit is contained in:
14 files changed
+1269
-10
No files matched your search
@@ -4,6 +4,7 @@ import { PermissionDeniedError, UserFacingError } from '../core/errors.js';
|
||||
import { createLogger } from '../core/logger.js';
|
||||
import { hasAccess } from '../core/permissions.js';
|
||||
import { handleGiteaModal } from '../services/gitea/gitea-modals.js';
|
||||
import { handleTeamComponent, handleTeamModal } from '../services/gitea/team-recruitment.js';
|
||||
import { handlePollComponent } from '../services/polls/poll-service.js';
|
||||
import { handleTicketComponent } from '../services/tickets/ticket-service.js';
|
||||
import { handleVoiceComponent, handleVoiceModal } from '../services/voice/voice-service.js';
|
||||
@@ -20,6 +21,7 @@ const routes = [
|
||||
{ prefix: 'voice:', component: handleVoiceComponent, modal: handleVoiceModal },
|
||||
{ prefix: 'issue:', modal: handleGiteaModal },
|
||||
{ prefix: 'pr:', modal: handleGiteaModal },
|
||||
{ prefix: 'gitea-team:', component: handleTeamComponent, modal: handleTeamModal },
|
||||
];
|
||||
|
||||
async function replyError(interaction, message) {
|
||||
|
||||
Reference in new issue
Block a user