mirror of
https://github.com/github/awesome-copilot.git
synced 2026-06-13 11:33:32 +00:00
chore: publish from staged
This commit is contained in:
@@ -98,6 +98,18 @@ jobs:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const reactionByCommand = {
|
||||||
|
approve: 'rocket',
|
||||||
|
reject: '-1'
|
||||||
|
};
|
||||||
|
|
||||||
|
await github.rest.reactions.createForIssueComment({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
comment_id: context.payload.comment.id,
|
||||||
|
content: reactionByCommand[parsedCommand.command] ?? 'eyes'
|
||||||
|
});
|
||||||
|
|
||||||
core.setOutput('should-run', 'true');
|
core.setOutput('should-run', 'true');
|
||||||
core.setOutput('command', parsedCommand.command);
|
core.setOutput('command', parsedCommand.command);
|
||||||
core.setOutput('reason', parsedCommand.reason ?? '');
|
core.setOutput('reason', parsedCommand.reason ?? '');
|
||||||
|
|||||||
@@ -79,6 +79,13 @@ jobs:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await github.rest.reactions.createForIssueComment({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
comment_id: context.payload.comment.id,
|
||||||
|
content: '+1'
|
||||||
|
});
|
||||||
|
|
||||||
await intakeState.syncExternalPluginIntakeLabels({
|
await intakeState.syncExternalPluginIntakeLabels({
|
||||||
github,
|
github,
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
|
|||||||
@@ -72,6 +72,19 @@ jobs:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const reactionByCommand = {
|
||||||
|
keep: '+1',
|
||||||
|
'needs-changes': 'eyes',
|
||||||
|
remove: '-1'
|
||||||
|
};
|
||||||
|
|
||||||
|
await github.rest.reactions.createForIssueComment({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
comment_id: context.payload.comment.id,
|
||||||
|
content: reactionByCommand[command] ?? 'eyes'
|
||||||
|
});
|
||||||
|
|
||||||
const { plugins, errors } = validation.readExternalPlugins({ policy: 'marketplace' });
|
const { plugins, errors } = validation.readExternalPlugins({ policy: 'marketplace' });
|
||||||
if (errors.length > 0) {
|
if (errors.length > 0) {
|
||||||
core.setFailed(errors.join('\n'));
|
core.setFailed(errors.join('\n'));
|
||||||
|
|||||||
Reference in New Issue
Block a user