mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
ci(.github/workflows/contrib): skip community label for dependabot (#24660)
This commit is contained in:
@@ -69,6 +69,13 @@ jobs:
|
|||||||
// Use the org membership API as the source of truth.
|
// Use the org membership API as the source of truth.
|
||||||
// See: https://github.com/actions/github-script/issues/643
|
// See: https://github.com/actions/github-script/issues/643
|
||||||
const author = context.payload.pull_request.user.login
|
const author = context.payload.pull_request.user.login
|
||||||
|
|
||||||
|
// Dependabot is not a community contributor.
|
||||||
|
if (author === 'dependabot[bot]') {
|
||||||
|
console.log('Author "%s" is a bot, skipping.', author)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await orgClient.rest.orgs.checkMembershipForUser({
|
await orgClient.rest.orgs.checkMembershipForUser({
|
||||||
org: context.repo.owner,
|
org: context.repo.owner,
|
||||||
|
|||||||
Reference in New Issue
Block a user