Skip to content

Commit 9c23402

Browse files
authored
Update PR title format in translation workflow
1 parent bc52697 commit 9c23402

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/translate-docusaurus.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
with:
6969
script: |
7070
const prNumber = context.payload.pull_request.number;
71+
const prTitle = context.payload.pull_request.title;
7172
const branch = `translations/pr-${prNumber}`;
7273
const baseBranch = context.payload.pull_request.base.ref;
7374
@@ -82,7 +83,7 @@ jobs:
8283
const { data: newPR } = await github.rest.pulls.create({
8384
owner: context.repo.owner,
8485
repo: context.repo.repo,
85-
title: `Auto-translate: PR #${prNumber}`,
86+
title: `Auto-translate: ${prTitle} (#${prNumber})`,
8687
body: `Automated translations for #${prNumber}.\n\nMerge this PR **after** #${prNumber} has been merged.`,
8788
head: branch,
8889
base: baseBranch
@@ -117,4 +118,4 @@ jobs:
117118
});
118119
} catch (error) {
119120
core.warning(`Could not remove label: ${error.message}`);
120-
}
121+
}

0 commit comments

Comments
 (0)