From 19a2cf1f45c9b60df6b22f09638bc27b2ce26ce4 Mon Sep 17 00:00:00 2001 From: hudeng Date: Fri, 7 Jul 2023 10:50:57 +0800 Subject: [PATCH] chore(CI): use pr title as integration message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pr中使用/integrate命令提交集成的方式会默认直接使用pr的title作为集成单的title,并包含pr提交者的github名称 log: --- .github/workflows/auto-integration-pr.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-integration-pr.yml b/.github/workflows/auto-integration-pr.yml index b3e04053e..c90943629 100644 --- a/.github/workflows/auto-integration-pr.yml +++ b/.github/workflows/auto-integration-pr.yml @@ -149,7 +149,8 @@ jobs: const fs = require('fs') integrationContent = yaml.load(fs.readFileSync('integration.yml'), 'utf8') - integrationContent.message = "Integrated for " + milestone + // use pull request title as integration title + integrationContent.message = "${{ github.event.pull_request.title }} by @${{ github.event.pull_request.user.login }}" integrationContent.milestone = milestone if (topic != "undefined") { integrationContent.topic = topic