We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc52697 commit 9c23402Copy full SHA for 9c23402
1 file changed
.github/workflows/translate-docusaurus.yml
@@ -68,6 +68,7 @@ jobs:
68
with:
69
script: |
70
const prNumber = context.payload.pull_request.number;
71
+ const prTitle = context.payload.pull_request.title;
72
const branch = `translations/pr-${prNumber}`;
73
const baseBranch = context.payload.pull_request.base.ref;
74
@@ -82,7 +83,7 @@ jobs:
82
83
const { data: newPR } = await github.rest.pulls.create({
84
owner: context.repo.owner,
85
repo: context.repo.repo,
- title: `Auto-translate: PR #${prNumber}`,
86
+ title: `Auto-translate: ${prTitle} (#${prNumber})`,
87
body: `Automated translations for #${prNumber}.\n\nMerge this PR **after** #${prNumber} has been merged.`,
88
head: branch,
89
base: baseBranch
@@ -117,4 +118,4 @@ jobs:
117
118
});
119
} catch (error) {
120
core.warning(`Could not remove label: ${error.message}`);
- }
121
+ }
0 commit comments