Skip to content

Process Issue Templates for DevIndex Opt-In #9237

@tobiu

Description

@tobiu

Description

Implement the automated pipeline to process the two new issue templates in the neomjs/devindex-opt-in repository: "DevIndex Opt-In (Myself)" and "DevIndex Opt-In (Nominate Others)".

Requirements

  1. Fetch Issues: Query the GitHub GraphQL API to fetch open issues with the devindex-opt-in label.
  2. Differentiate Request Types: Parse the issue title to determine if it's a "Self" request or an "Others" nomination.
  3. Process "Self" Requests (Identity Verified):
    • Extract the issue author's username.
    • Blocklist Reversal: Since the identity is verified, remove the user from the blocklist if they are on it.
    • Add to tracker.json (if not already tracked/indexed).
  4. Process "Nominate Others" Requests (Unverified Identity):
    • Extract the list of usernames from the issue body.
    • Validate that the usernames exist on GitHub (e.g., via a quick GraphQL user(login: "...") check).
    • NO Blocklist Reversal: Crucially, do NOT remove these users from the blocklist. A third party cannot override a personal opt-out.
    • Add valid, non-blocklisted users to tracker.json (if not already tracked/indexed).
  5. Issue Management: Add an automated comment to the issue summarizing the actions taken and close the issue.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions