This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/opendal.git
The following commit(s) were added to refs/heads/main by this push:
new 2899e78be chore(github): Avoid ping all contributors (#5823)
2899e78be is described below
commit 2899e78bec031e5f65136df29fef112ce3da07be
Author: Xuanwo <[email protected]>
AuthorDate: Thu Mar 20 14:12:50 2025 +0800
chore(github): Avoid ping all contributors (#5823)
* chore(github): Avoid ping all contributors
Signed-off-by: Xuanwo <[email protected]>
* Fix
Signed-off-by: Xuanwo <[email protected]>
* Fix format
Signed-off-by: Xuanwo <[email protected]>
* Fix format
Signed-off-by: Xuanwo <[email protected]>
* Polish README
Signed-off-by: Xuanwo <[email protected]>
* chore(github): Polish prompt for weekly update
Signed-off-by: Xuanwo <[email protected]>
* Add declare
Signed-off-by: Xuanwo <[email protected]>
* Polish
Signed-off-by: Xuanwo <[email protected]>
---------
Signed-off-by: Xuanwo <[email protected]>
---
.github/scripts/weekly_update/README.md | 2 +-
.github/scripts/weekly_update/main.py | 16 +++++++---------
.github/workflows/ci_weekly_update.yml | 2 +-
3 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/.github/scripts/weekly_update/README.md
b/.github/scripts/weekly_update/README.md
index 450da82af..d5e4f5624 100644
--- a/.github/scripts/weekly_update/README.md
+++ b/.github/scripts/weekly_update/README.md
@@ -1,7 +1,7 @@
## OpenDAL Weekly Update
```shell
-python main.py apache/opendal --output weekly_update.md
+uv run -s main.py apache/opendal --output weekly_update.md
```
Available options:
diff --git a/.github/scripts/weekly_update/main.py
b/.github/scripts/weekly_update/main.py
index 1ca537534..32b9fd591 100644
--- a/.github/scripts/weekly_update/main.py
+++ b/.github/scripts/weekly_update/main.py
@@ -370,7 +370,7 @@ def summarize_with_openai(data, client, model):
"""Use OpenAI to summarize and prioritize the repository activity."""
prompt = f"""
- You are a software development manager responsible for analyzing GitHub
repository activity.
+ You are an open-source community evangelist responsible for reporting
GitHub repository activity and encouraging more contributions.
I will provide you with JSON data containing recent pull requests, issues,
and discussions from
the repository {data["metadata"]["repository"]} for the past
{data["metadata"]["period_days"]} days.
@@ -393,12 +393,11 @@ def summarize_with_openai(data, client, model):
- DO NOT repeat the title in your explanation if you've already mentioned
the reference number
- AVOID listing large numbers of PRs in sequence - instead, summarize them
by theme or use bulleted lists with no more than 3-5 items per bullet
- For groups of related PRs, summarize the theme and mention 1-2
representative examples instead of listing all of them
- - When appropriate, use standard Markdown URL syntax [meaningful
text](#XXXX) instead of just the reference number
+ - When appropriate, use standard Markdown URL syntax [meaningful
text](full link) instead of just the reference number
Example of correct format:
- #1234 by @username implements the core authentication framework
- - Related performance improvements by @anotheruser include [database
optimizations](#5678) and [caching improvements](#5679)
- Multiple documentation updates were contributed by @contributor focusing
on installation guides and API references
Here's the JSON data:
@@ -408,6 +407,8 @@ def summarize_with_openai(data, client, model):
Format your response as:
+ *This weekly update is generated by LLMs. You're welcome to join our
[Discord](https://opendal.apache.org/discord/) for in-depth discussions.*
+
## Overall Activity Summary
[Provide a concise overview of activity]
@@ -418,16 +419,13 @@ def summarize_with_openai(data, client, model):
[List issues/PRs that need immediate attention - always mention
contributors with @ symbol]
## Notable Discussions
- [Highlight important ongoing discussions - always mention contributors
with @ symbol]
+ [Highlight important ongoing discussions - always mention contributors
with @ symbol, use format like #1234: brief description]
## Emerging Trends
[Identify patterns or trends]
## Good First Issues
- [List good first issues for new contributors with brief explanations of
what makes them approachable]
-
- ## Contributors
- [List and thank all contributors mentioned in the data]
+ [List good first issues for new contributors with brief explanations of
what makes them approachable, use format like #1234: brief description]
"""
try:
@@ -436,7 +434,7 @@ def summarize_with_openai(data, client, model):
messages=[
{
"role": "system",
- "content": "You are an expert software development manager
analyzing GitHub repository activity.",
+ "content": "You are an open-source community evangelist
responsible for reporting GitHub repository activity and encouraging more
contributions.",
},
{"role": "user", "content": prompt},
],
diff --git a/.github/workflows/ci_weekly_update.yml
b/.github/workflows/ci_weekly_update.yml
index 56d720a79..2bdfbeaf3 100644
--- a/.github/workflows/ci_weekly_update.yml
+++ b/.github/workflows/ci_weekly_update.yml
@@ -87,7 +87,7 @@ jobs:
// Read the weekly update content directly from file
const weeklyUpdateContent =
fs.readFileSync('.github/scripts/weekly_update/weekly_update.md', 'utf8');
- const discussionTitle = `${process.env.TITLE_DATE}: This week in
OpenDAL`;
+ const discussionTitle = `${process.env.TITLE_DATE}: This Week in
OpenDAL`;
// Get repository node ID using GraphQL
const repoQuery = `