mirror of
https://github.com/actions/labeler.git
synced 2025-12-10 11:41:56 +00:00
Update warning
This commit is contained in:
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -1087,7 +1087,7 @@ function labeler() {
|
|||||||
error.message !== 'Resource not accessible by integration') {
|
error.message !== 'Resource not accessible by integration') {
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
core.warning(`The action requires write permission to add labels to pull requests. For more information please refer to the action documentation: https://github.com/actions/labeler#permissions`, {
|
core.warning(`The action requires write permission to add labels to pull requests. For more information please refer to the action documentation: https://github.com/actions/labeler#recommended-permissions`, {
|
||||||
title: `${process.env['GITHUB_ACTION_REPOSITORY']} running under '${github.context.eventName}' is misconfigured`
|
title: `${process.env['GITHUB_ACTION_REPOSITORY']} running under '${github.context.eventName}' is misconfigured`
|
||||||
});
|
});
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ async function labeler() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
core.warning(
|
core.warning(
|
||||||
`The action requires write permission to add labels to pull requests. For more information please refer to the action documentation: https://github.com/actions/labeler#permissions`,
|
`The action requires write permission to add labels to pull requests. For more information please refer to the action documentation: https://github.com/actions/labeler#recommended-permissions`,
|
||||||
{
|
{
|
||||||
title: `${process.env['GITHUB_ACTION_REPOSITORY']} running under '${github.context.eventName}' is misconfigured`
|
title: `${process.env['GITHUB_ACTION_REPOSITORY']} running under '${github.context.eventName}' is misconfigured`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user