Skip to content

Commit dbd7f39

Browse files
henit-chobisaPalanikannan1437mads-hartmann
authored
Sync Main for New Release (#63)
* Update README.md * Create codeql.yml * Create dependency-review.yml * updated things to sync with Raycast store version * Create SECURITY.md * [feat] GitHub OAuth added for simpler auth (#27) * GitHub OAuth added for simpler auth * [feat] Gitpod samples templates now in Raycast (#24) * added gitpod samples' templates * added better error handling and readability * loading all default templates * improved speed by changing schema and fetching all repos as sample queries * fixed cache invalidation for /me, /p, /b and /i i.e. sections (#32) * [feat] Added workspace class and editor preferences at Repo, Context and Global levels with cascade (#30) * GitHub oAuth added for simpler auth * added preferences at repo, context and global level with cascading behaviour * fixed default preferences and added more context in navigation title at bottom * Delete workspace_preferences.tsx * added global preferences as default preferences for non-configured repos and contexts * removed showOptions from url to directly open in the set ide * added workspace class icons with revalidation and fixed useLatest editor option * [feat] Added Option to add Host Endpoint preference for Gitpod Dedicated users (#31) * added global preferences as default preferences for non-configured repos and contexts * removed showOptions from url to directly open in the set ide * added configuration for host * [fix] default preference for gitpod url fixed * Migrating beta to develop (#38) * added private store extension * beta * gitpod-beta tag added * author name updated * renamed owner * update author * [feat] Branch, PRs and Issue contexts also have recently visited behaviour for Quick Access (#25) * branch, pr and issue contexts also have recently visited behaviour * fixed count of contexts and removed contexts while searching repos * fixed branch cache and added option to remove contexts and repos from recents * fixed import for toast * removed viewer * Github Asset preview in the extension itself 🧑‍🚀 (#23) * feat: Issue and PR fragments modified for fetching body * feat: Branch List Item modified for body preview and actions * feat: Issue List Item Modified for Show/Hide Preview * feat: Pull Request List Object modified for show/hide preview * feat: Open Repo Context has been modified for supporting Previews --------- Co-authored-by: PalanikannanM <[email protected]> Co-authored-by: PalanikannanM <[email protected]> * removed previews for recent repositories window * fixed ts errors for non compulsory fields * added logo png file * generated by codegen and fixed type errors --------- Co-authored-by: Henit Chobisa <[email protected]> * add repo and context to recents at your convenience (#40) * Workspace orchestration (#41) * chore: Displaced Github APIs * feat: Updated package.json for websocket connections * feat: Added API Layer for Gitpod API Connection * feat: Added Workspace and Update Models * feat: Added Workspace Manager Service * feat: Added Gitpod Dashboard * Updated Gitpod Menu Bar * fix: Removed Gitpod PAT * Menu Bar Title Changed * feedback form added (#42) * package.json fixed * Use preference value for Gitpod endpoint everywhere (#39) - grep'ed for the remaining hardcoded references to gitpod.io and changed them to use the preference value instead * Error handling (#46) * feat: Added Workspace Error Object * feat: Modified Core API to Report Error Events * feat: Updated Workspace Manager and Model to Catch and Report Errors * feat: Modified UI Components * [fix] cache (#47) * error handling for cache migration * [fix] minor ui bugs and missing methods to updated cache approach * ide config * ide config * cleaning out cache that's removed * added vim/terminal option * feat: Updated Gitpod API as Workspace Streamer with Single Workspace Stream Resp * feat: Added Start and Stop Methods for Workspace API * fix: Retired Session token to accept access_token * feat: Updated Workspace Manager for servicing with access_token * fix: Added Error Handling to Form Submission * fix: Added Error Handling to Workspace Start, Stop and Network * feat: Updated Menubar with Start, Stop and Network Error Handling * open empty repo feature * feat: Add Organization Model in API * feat: Modified Workspace Streamer with Executor Method * feat: Added Workspace Started Message on Initialize * feat: Added Workspace Create Static Method * feat: Added UI Button for Creating Empty Workspace in Menubar * feat: Added Form Selection for Default Organization * feat: Added Default Organization form with Workspace Dashboard (#57) * Create and workspaces from GitHub context (#58) * feat: Added Revalidation in DefaultOrgForm * feat: Joined Revalidation from DefaultOrgForm * feat: Initialized WorkspaceManager in open_in_gitpod command * feat: Removed Workspace Start Message from Manager * feat: Added Helper for Creating Workspace from Context * feat: Added Create and Start Workspaces from Context in Context Items * feat: Added Menubar Utilities (#59) * feat: Switch Default Organization Action Added to Gitpod Dashboard and Context Items (#60) * Bug Fixes (#61) * feat: Switch Default Organization Action Added to Gitpod Dashboard and Context Items * feat: Resolved Switch Default Org appearing on active workspace * chore: Modified menubar icons * feat: Added Open with SSH Support for both dashbaord and Menubar * Bug fixes (#62) * feat: Add repository field in Iworkspace * fix: Repository not opening in VSCode-Browser * fix: Start Workspace shown to unauthorised user * fix: Updated Authorisation in gitpod_dashboard * fix: Workspace update ideurl on stream update * feat: Added Error View for Repository and Worksapace * feat: Added Network Error Safety in Default Org Form * fix: Handled Network Error in Open Context Tab * Changed Owner as Gitpod-Community --------- Co-authored-by: PalanikannanM <[email protected]> Co-authored-by: PalanikannanM <[email protected]> Co-authored-by: Mads Hartmann <[email protected]>
1 parent 2696c37 commit dbd7f39

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+4872
-8981
lines changed

.github/workflows/codeql.yml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "develop" ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "develop" ]
20+
schedule:
21+
- cron: '25 4 * * 4'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'javascript' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Use only 'java' to analyze code written in Java, Kotlin or both
38+
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
39+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
40+
41+
steps:
42+
- name: Checkout repository
43+
uses: actions/checkout@v3
44+
45+
# Initializes the CodeQL tools for scanning.
46+
- name: Initialize CodeQL
47+
uses: github/codeql-action/init@v2
48+
with:
49+
languages: ${{ matrix.language }}
50+
# If you wish to specify custom queries, you can do so here or in a config file.
51+
# By default, queries listed here will override any specified in a config file.
52+
# Prefix the list here with "+" to use these queries and those in the config file.
53+
54+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
55+
# queries: security-extended,security-and-quality
56+
57+
58+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
59+
# If this step fails, then you should remove it and run the build manually (see below)
60+
- name: Autobuild
61+
uses: github/codeql-action/autobuild@v2
62+
63+
# ℹ️ Command-line programs to run using the OS shell.
64+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
65+
66+
# If the Autobuild fails above, remove it and uncomment the following three lines.
67+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
68+
69+
# - run: |
70+
# echo "Run, Build Application using script"
71+
# ./location_of_script_within_repo/buildscript.sh
72+
73+
- name: Perform CodeQL Analysis
74+
uses: github/codeql-action/analyze@v2
75+
with:
76+
category: "/language:${{matrix.language}}"
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependency Review Action
2+
#
3+
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging.
4+
#
5+
# Source repository: https://github.com/actions/dependency-review-action
6+
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
7+
name: 'Dependency Review'
8+
on: [pull_request]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
dependency-review:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: 'Checkout Repository'
18+
uses: actions/checkout@v3
19+
- name: 'Dependency Review'
20+
uses: actions/dependency-review-action@v2

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# dependencies
44
/node_modules
5+
/Packages
56

67
# misc
78
.DS_Store

.ignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cogegen.ts
2+
src/generated/graphql.ts
3+
package-lock.json

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,17 @@ A _BLAZINGLY FAST_ way to work with Gitpod 🍊
88

99
### Installation
1010

11-
1. Install Raycast to get started if you haven't 😉
11+
1. Install Raycast to get started if you haven't by simply clicking on this button! 😉
12+
13+
<a href="https://www.raycast.com/henitchobisa/gitpod"><img src="https://www.raycast.com/henitchobisa/gitpod/[email protected]" height="64" alt="" style="height: 64px;"></a>
14+
1215
2. Navigate to the Raycast Store to Download the `Gitpod` extension
1316
3. While generating the GitHub Access Token, make sure to give the `user`, `admin` & `repo` access rights, else it may result in some weird behaviours.
1417

1518
### Currently Supported Features
1619

1720
1. "Open in Gitpod" -> Experience the power of Gitpod Contexts!
18-
1. Find the repository from Github (you can even see if the repo is Gitpodified...it glows up ✨)
21+
1. Find the repository from GitHub (you can even see if the repo is Gitpodified...it glows up ✨)
1922

2023
![RepoSearch](/metadata/RepoCatelog.png)
2124
2. You can now see and find all the branches, PRs and Issues which you can directly open in Gitpod with a single Keypress!
@@ -45,4 +48,4 @@ A _BLAZINGLY FAST_ way to work with Gitpod 🍊
4548
- [ ] Manage Prebuilds withing Raycast
4649
- [ ] Add support for GitLab and Bitbucker
4750
- [ ] Default ide support
48-
- [ ] And much more....
51+
- [ ] And much more....

SECURITY.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
Use this section to tell people about which versions of your project are
6+
currently being supported with security updates.
7+
8+
| Version | Supported |
9+
| ------- | ------------------ |
10+
| 5.1.x | :white_check_mark: |
11+
| 5.0.x | :x: |
12+
| 4.0.x | :white_check_mark: |
13+
| < 4.0 | :x: |
14+
15+
## Reporting a Vulnerability
16+
17+
Use this section to tell people how to report a vulnerability.
18+
19+
Tell them where to go, how often they can expect to get an update on a
20+
reported vulnerability, what to expect if the vulnerability is accepted or
21+
declined, etc.

assets/Icons/dashboard1.png

681 Bytes
Loading

assets/Icons/documentation.png

308 Bytes
Loading

assets/Icons/gh-icon.png

6.24 KB
Loading

assets/Icons/[email protected]

4.72 KB
Loading

assets/Icons/info1.svg

+1
Loading

assets/Icons/link.svg

+1
Loading

assets/Icons/projects.png

559 Bytes
Loading

assets/Icons/settings.png

933 Bytes
Loading

assets/logo-mark.png

21.7 KB
Loading

assets/logo-mark.svg

+2-1
Loading

codegen.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const config: CodegenConfig = {
88
"https://api.github.com/graphql": {
99
headers: {
1010
Authorization: `token ${process.env.GITHUB_TOKEN}`,
11+
'user-agent': 'node.js'
1112
},
1213
},
1314
},

constants.ts

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { Color } from "@raycast/api";
22

3-
export enum workspaceStatus {
4-
workspace_Inactive = "stopped",
5-
workspace_active = "running",
6-
workspace_progressing = "progressing",
7-
workspace_failed = "failed",
3+
export interface workspaceStatus {
4+
workspace_Inactive : "PHASE_STOPPED",
5+
workspace_active : "PHASE_RUNNING",
6+
workspace_progressing : "PHASE_CREATED" | "PHASE_INITIALIZING" | "PHASE_STOPPING" | "PHASE_PENDING"
87
}
98

109
export enum branchStatus {
@@ -71,13 +70,20 @@ export const GitpodIcons = {
7170
stopped_icon_menubar: { source: "Icons/status_icon_small.png", tintColor: statusColors.stopped },
7271
failed_icon_menubar: { source: "Icons/status_icon_small.png", tintColor: statusColors.failed },
7372
progressing_icon_menubar: { source: "Icons/status_icon_small.png", tintColor: statusColors.progressing },
73+
settings_icon: {source: "Icons/settings.png"},
74+
project_icon: {source: "Icons/projects.png"},
75+
docs_icon: {source: "Icons/documentation.png"},
7476

7577
repoIcon : {
7678
source: "Icons/repo-16.svg",
7779
tintColor: statusColors.progressing
7880
},
7981

82+
info_icon: { source: "Icons/info1.svg", tintColor: UIColors.red},
83+
link_icon: { source: "Icons/link.svg", tintColor: UIColors.gitpod_gold},
84+
8085
commit_icon: {source: "Icons/git-commit.svg", tintColor: UIColors.gitpod_gold},
86+
dashboard_icon: {source: "Icons/dashboard1.png"},
8187

8288
branch_icon: {
8389
source: "Icons/merge.svg",

0 commit comments

Comments
 (0)