-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(extension): add GitHub Pull Request and Issues (#216)
- Loading branch information
1 parent
f6ac9eb
commit 8da4d3d
Showing
6 changed files
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import type { GitHubPullRequestColors, ThemeContext } from "@/types"; | ||
|
||
export default function colors( | ||
context: ThemeContext, | ||
): Partial<GitHubPullRequestColors> { | ||
const { palette } = context; | ||
|
||
return { | ||
"issues.closed": palette.mauve, | ||
"issues.newIssueDecoration": palette.rosewater, | ||
"issues.open": palette.green, | ||
"pullRequests.closed": palette.red, | ||
"pullRequests.draft": palette.overlay2, | ||
"pullRequests.merged": palette.mauve, | ||
"pullRequests.notification": palette.text, | ||
"pullRequests.open": palette.green, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import type { ThemeContext } from "@/types"; | ||
import errorLens from "./error-lens"; | ||
import gitHubPullRequest from "./github-pull-request"; | ||
import gitLens from "./gitlens"; | ||
|
||
export default function (context: ThemeContext) { | ||
return { | ||
...errorLens(context), | ||
...gitHubPullRequest(context), | ||
...gitLens(context), | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* eslint-disable */ | ||
/** | ||
* This file was automatically generated. | ||
* DO NOT MODIFY IT BY HAND. | ||
* Instead, run `yarn run updateVSCtypes` to regenerate this file. | ||
*/ | ||
export interface GitHubPullRequestColors { | ||
/** | ||
* The color used for the assignees and labels fields in a new issue editor. | ||
*/ | ||
"issues.newIssueDecoration": string; | ||
|
||
/** | ||
* The color used for indicating that an issue is open. | ||
*/ | ||
"issues.open": string; | ||
|
||
/** | ||
* The color used for indicating that an issue is closed. | ||
*/ | ||
"issues.closed": string; | ||
|
||
/** | ||
* The color used for indicating that a pull request is merged. | ||
*/ | ||
"pullRequests.merged": string; | ||
|
||
/** | ||
* The color used for indicating that a pull request is a draft. | ||
*/ | ||
"pullRequests.draft": string; | ||
|
||
/** | ||
* The color used for indicating that a pull request is open. | ||
*/ | ||
"pullRequests.open": string; | ||
|
||
/** | ||
* The color used for indicating that a pull request is closed. | ||
*/ | ||
"pullRequests.closed": string; | ||
|
||
/** | ||
* The color used for indicating a notification on a pull request | ||
*/ | ||
"pullRequests.notification": string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters