Skip to content

Commit a26dc70

Browse files
[infra] Added 'docs' label to array (#279)
1 parent e26702b commit a26dc70

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/prs_check-if-pr-has-type-label.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
name: Check PR type labels
1212
permissions:
13+
issues: write
1314
pull-requests: write
1415
contents: write
1516
if: ${{ github.event.pull_request.merged == false }}

.github/workflows/scripts/prs/checkTypeLabel.js

+9-7
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const createEnumerationFromArray = (stringArray) =>
1010
: stringArray.map((s) => `\`${s}\``).join('');
1111

1212
const typeLabels = [
13+
'docs',
1314
'release',
1415
'bug',
1516
'regression',
@@ -70,13 +71,14 @@ module.exports = async ({ core, context, github }) => {
7071

7172
core.info(`>>> No type labels found.`);
7273
core.info(`>>> Comment: \n"${commentLines.join('\n\n')}"`);
73-
// core.info(`>>> Creating explanatory comment on PR`);
74-
// await github.rest.issues.createComment({
75-
// owner,
76-
// repo,
77-
// issue_number: pullNumber,
78-
// body: commentLines.join('\n\n'),
79-
// });
74+
75+
core.info(`>>> Creating explanatory comment on PR`);
76+
await github.rest.issues.createComment({
77+
owner,
78+
repo,
79+
issue_number: pullNumber,
80+
body: commentLines.join('\n\n'),
81+
});
8082

8183
core.setFailed('>>> Failing workflow to prevent merge without passing this!');
8284
} catch (error) {

0 commit comments

Comments
 (0)