mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: add second comment
This commit is contained in:
parent
e131ce6aed
commit
dff0283cc8
19
.github/workflows/core-feature-alert.yml
vendored
19
.github/workflows/core-feature-alert.yml
vendored
@ -30,7 +30,6 @@ jobs:
|
|||||||
script: |
|
script: |
|
||||||
const prNumber = context.payload.pull_request.number;
|
const prNumber = context.payload.pull_request.number;
|
||||||
|
|
||||||
// Check if a comment already exists
|
|
||||||
const comments = await github.rest.issues.listComments({
|
const comments = await github.rest.issues.listComments({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
@ -61,14 +60,14 @@ jobs:
|
|||||||
const prCreator = context.payload.pull_request.user.login;
|
const prCreator = context.payload.pull_request.user.login;
|
||||||
|
|
||||||
// Add a comment if not already present
|
// Add a comment if not already present
|
||||||
if (!inputs.hasComment) {
|
|
||||||
await github.rest.issues.createComment({
|
await github.rest.issues.createComment({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
issue_number: prNumber,
|
issue_number: prNumber,
|
||||||
body: `@${prCreator}, core features have been modified in this pull request. Reviewers have been added.`,
|
body: `@${prCreator}, core features have been modified in this pull request. Reviewers have been added.`,
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
// Add reviewers if not already present
|
// Add reviewers if not already present
|
||||||
if (!inputs.hasReviewers) {
|
if (!inputs.hasReviewers) {
|
||||||
@ -76,6 +75,6 @@ jobs:
|
|||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
pull_number: prNumber,
|
pull_number: prNumber,
|
||||||
reviewers: ['FredrikOseberg'], // Add your reviewers here
|
reviewers: ['@FredrikOseberg'], // Add your reviewers here
|
||||||
});
|
});
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user