From ab13c61450a5edb2f89d34a01a5f0e15f4bdacf2 Mon Sep 17 00:00:00 2001 From: Spazzy Date: Thu, 22 Apr 2021 12:57:58 +0200 Subject: [PATCH] Created handler to copy linked issue labels Signed-off-by: Spazzy --- pkg/github/pullrequests.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkg/github/pullrequests.go b/pkg/github/pullrequests.go index 123eee8..69ff279 100644 --- a/pkg/github/pullrequests.go +++ b/pkg/github/pullrequests.go @@ -47,6 +47,10 @@ func PullRequestHandler( if err != nil { return err } + err = copyIssueLabels(ctx, cfg, client, event) + if err != nil { + return err + } err = dcoCheck(ctx, cfg, client, event) return err } @@ -175,6 +179,17 @@ func dcoCheck( return nil } +//copyIssueLabels +func copyIssueLabels( + ctx context.Context, + cfg types.PaulConfig, + client *github.Client, + event *github.PullRequestEvent, + +) error { + return nil +} + //reviewComment sends a review comment to a Pull Request func reviewComment( ctx context.Context, @@ -270,3 +285,5 @@ func mergePullRequest( ) return err } + +//