Skip to content

ci: link discussions to mailing list threads - #263

Merged
tisonkun merged 1 commit into
mainfrom
xuanwo/discussion-mailing-list-links
Sep 1, 2026
Merged

ci: link discussions to mailing list threads#263
tisonkun merged 1 commit into
mainfrom
xuanwo/discussion-mailing-list-links

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Sep 1, 2026

Copy link
Copy Markdown
Member

Summary

Configure stable subjects for GitHub Discussion notifications and add a workflow that resolves each mirrored dev@asyncband.apache.org thread through asfml and comments the archive URL back on the Discussion. The workflow also supports manual backfill for existing Discussions.

@Xuanwo
Xuanwo marked this pull request as ready for review September 1, 2026 04:47
Comment on lines +149 to +150
emails.find(email => normalizeSubject(email.subject) === normalizedTitle) ||
emails[0];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Falling back to the 1st email in the result seems not make sense. When could it happen?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that it happened only when an incorrect discussion title was added. In this case, I tend to just fail instead of returning the 1st search result.

}

async function runAsfml(args) {
const { stdout } = await execFileAsync('npx', ['--yes', 'asfml', ...args], {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to pin asfml's version in case of security attack, though I confirmed it's maintained by yourself :)

Suggested change
const { stdout } = await execFileAsync('npx', ['--yes', 'asfml', ...args], {
const { stdout } = await execFileAsync('npx', ['--yes', 'asfml@0.1.1', ...args], {

@tisonkun tisonkun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use it as is and see.

@tisonkun
tisonkun merged commit 2c53aed into main Sep 1, 2026
11 checks passed
@tisonkun
tisonkun deleted the xuanwo/discussion-mailing-list-links branch September 1, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants