mirror of
https://github.com/alirezarezvani/claude-skills.git
synced 2026-08-28 04:24:58 +00:00
ci: fix yamllint line-length errors in enforce-pr-target workflow
Long template-string lines (161 and 205 chars) split into an array join; behavior unchanged. yamllint line-length limit is 160. https://claude.ai/code/session_019AJddAL1NADWMXsy1qNPQF
This commit is contained in:
parent
f0d180165e
commit
30e0cd83ca
1 changed files with 19 additions and 8 deletions
27
.github/workflows/enforce-pr-target.yml
vendored
27
.github/workflows/enforce-pr-target.yml
vendored
|
|
@ -35,15 +35,26 @@ jobs:
|
|||
const maintainers = ['alirezarezvani'];
|
||||
const isMaintainer = maintainers.includes(author);
|
||||
|
||||
const message = `👋 Hi @${author}, thanks for your contribution!
|
||||
const nextStep = isMaintainer
|
||||
? 'This check will re-run automatically once the base branch is changed.'
|
||||
: 'This PR has been closed automatically; reopen it after retargeting, ' +
|
||||
'or open a new PR against `dev`.';
|
||||
|
||||
All PRs must target the \`dev\` branch, not \`main\`. The \`main\` branch only receives \`dev -> main\` promotion PRs (see CLAUDE.md > Git Workflow).
|
||||
|
||||
**How to fix:** click "Edit" at the top right of this PR and change the base branch to \`dev\`.
|
||||
|
||||
${isMaintainer ? 'This check will re-run automatically once the base branch is changed.' : 'This PR has been closed automatically; reopen it after retargeting, or open a new PR against `dev`.'}
|
||||
|
||||
See our [Contributing Guide](https://github.com/alirezarezvani/claude-skills/blob/dev/CONTRIBUTING.md) for details.`;
|
||||
const message = [
|
||||
`👋 Hi @${author}, thanks for your contribution!`,
|
||||
'',
|
||||
'All PRs must target the `dev` branch, not `main`. The `main` branch',
|
||||
'only receives `dev -> main` promotion PRs (see CLAUDE.md > Git Workflow).',
|
||||
'',
|
||||
'**How to fix:** click "Edit" at the top right of this PR and change',
|
||||
'the base branch to `dev`.',
|
||||
'',
|
||||
nextStep,
|
||||
'',
|
||||
'See our [Contributing Guide]' +
|
||||
'(https://github.com/alirezarezvani/claude-skills/blob/dev/CONTRIBUTING.md)' +
|
||||
' for details.',
|
||||
].join('\n');
|
||||
|
||||
await github.rest.issues.createComment({
|
||||
owner: context.repo.owner,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue