Skip to content

Commit 89c5b62

Browse files
committed
Implement :Sign in with GitHub Button Functionality
1 parent 20bda74 commit 89c5b62

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/autocomment-iss-assign.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ on:
55
types: [assigned]
66

77
permissions:
8-
# Grant write permissions for issues to allow commenting on issues
9-
issues: write
10-
# Grant write permissions for contents to allow access to repository content
11-
contents: write
8+
issues: write # Only need write access to issuescl
129

1310
jobs:
1411
comment:
@@ -19,9 +16,15 @@ jobs:
1916
with:
2017
github-token: ${{ secrets.GITHUB_TOKEN }}
2118
script: |
22-
github.rest.issues.createComment({
19+
// Get all assignees as mentions
20+
const assignees = context.payload.assignees
21+
? context.payload.assignees.map(u => `@${u.login}`).join(', ')
22+
: `@${context.payload.assignee.login}`;
23+
24+
// Post a comment
25+
await github.rest.issues.createComment({
2326
issue_number: context.issue.number,
2427
owner: context.repo.owner,
2528
repo: context.repo.repo,
26-
body: `👤 Issue assigned to @${context.payload.assignee.login}.`
29+
body: `👤 Issue assigned to ${assignees}. Please start working on it when possible.`
2730
});

src/pages/dashboard/index.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -497,9 +497,12 @@ const DashboardContent: React.FC = () => {
497497
animate={{ opacity: 1, y: 0 }}
498498
transition={{ duration: 0.5 }}
499499
>
500-
<h1 className="dashboard-main-title">Recode Hive Community Dashboard</h1>
500+
<h1 className="dashboard-main-title">
501+
Recode Hive Community Dashboard
502+
</h1>
501503
<p className="dashboard-description">
502-
Welcome to the Recode Hive community hub! Explore our stats, engage in discussions, and connect with fellow contributors.
504+
Welcome to the Recode Hive community hub! Explore our stats,
505+
engage in discussions, and connect with fellow contributors.
503506
</p>
504507

505508
<section className="dashboard-stats-section">

0 commit comments

Comments
 (0)