aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authornikita kozlovsky <nikitka@users.noreply.github.com>2024-03-06 12:00:17 +0100
committerGitHub <noreply@github.com>2024-03-06 12:00:17 +0100
commit0972b48f4d6f6912e7c9bef6618f52d25748e7a6 (patch)
tree03c65bcdbeb970051994a56511d717e85b9a8c4d /.github
parent891d7ee86f008170cb9fe9c019801fc6c530034d (diff)
downloadydb-0972b48f4d6f6912e7c9bef6618f52d25748e7a6.tar.gz
ci: add "external" label for PRs made by external contributors (#2488)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/pr_check.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/pr_check.yml b/.github/workflows/pr_check.yml
index fe9e647c94..a7c35f9332 100644
--- a/.github/workflows/pr_check.yml
+++ b/.github/workflows/pr_check.yml
@@ -79,12 +79,21 @@ jobs:
uses: actions/github-script@v6
with:
script: |
+ let externalContributorLabel = 'external';
+
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'Hi! Thank you for contributing!\nThe tests on this PR will run after a maintainer adds an `ok-to-test` label to this PR manually. Thank you for your patience!'
});
+
+ github.rest.issues.addLabels({
+ ...context.repo,
+ issue_number: context.issue.number,
+ labels: [externalContributorLabel]
+ });
+
- name: cleanup-test-label
uses: actions/github-script@v6
with: