- introduce branch (head ref) as data point in the PullRequestInfo object

- expand extractor to allow using the `branch` -> e.g. to extract the label
This commit is contained in:
Mike Penz
2022-07-27 17:19:50 +02:00
parent 0e96047683
commit c4a63d86ad
5 changed files with 18 additions and 6 deletions
Generated Vendored
+1
View File
@@ -690,6 +690,7 @@ const mapPullRequest = (pr, status = 'open') => {
title: pr.title,
htmlURL: pr.html_url,
baseBranch: pr.base.ref,
branch: pr.head.ref,
createdAt: (0, moment_1.default)(pr.created_at),
mergedAt: pr.merged_at ? (0, moment_1.default)(pr.merged_at) : null,
mergeCommitSha: pr.merge_commit_sha || '',
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long