From 89c5b62917db16b6532a484d2c4772a3e89f8693 Mon Sep 17 00:00:00 2001 From: MUSKANNISHAD Date: Fri, 17 Oct 2025 19:47:09 +0530 Subject: [PATCH] Implement :Sign in with GitHub Button Functionality --- .github/workflows/autocomment-iss-assign.yml | 15 +++++++++------ src/pages/dashboard/index.tsx | 7 +++++-- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/autocomment-iss-assign.yml b/.github/workflows/autocomment-iss-assign.yml index aa643d6d..3afdaead 100644 --- a/.github/workflows/autocomment-iss-assign.yml +++ b/.github/workflows/autocomment-iss-assign.yml @@ -5,10 +5,7 @@ on: types: [assigned] permissions: - # Grant write permissions for issues to allow commenting on issues - issues: write - # Grant write permissions for contents to allow access to repository content - contents: write + issues: write # Only need write access to issuescl jobs: comment: @@ -19,9 +16,15 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - github.rest.issues.createComment({ + // Get all assignees as mentions + const assignees = context.payload.assignees + ? context.payload.assignees.map(u => `@${u.login}`).join(', ') + : `@${context.payload.assignee.login}`; + + // Post a comment + await github.rest.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: `👤 Issue assigned to @${context.payload.assignee.login}.` + body: `👤 Issue assigned to ${assignees}. Please start working on it when possible.` }); diff --git a/src/pages/dashboard/index.tsx b/src/pages/dashboard/index.tsx index 149a4b04..2a3c81bf 100644 --- a/src/pages/dashboard/index.tsx +++ b/src/pages/dashboard/index.tsx @@ -497,9 +497,12 @@ const DashboardContent: React.FC = () => { animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.5 }} > -

Recode Hive Community Dashboard

+

+ Recode Hive Community Dashboard +

- Welcome to the Recode Hive community hub! Explore our stats, engage in discussions, and connect with fellow contributors. + Welcome to the Recode Hive community hub! Explore our stats, + engage in discussions, and connect with fellow contributors.