Skip to content

Commit

Permalink
Sync Main for New Release (#63)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
4 people committed Aug 4, 2023
1 parent 2696c37 commit dbd7f39
Show file tree
Hide file tree
Showing 65 changed files with 4,872 additions and 8,981 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "develop" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "develop" ]
schedule:
- cron: '25 4 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# 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
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
20 changes: 20 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Dependency Review Action
#
# 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.
#
# Source repository: https://github.com/actions/dependency-review-action
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
name: 'Dependency Review'
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
- name: 'Dependency Review'
uses: actions/dependency-review-action@v2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# dependencies
/node_modules
/Packages

# misc
.DS_Store
Expand Down
3 changes: 3 additions & 0 deletions .ignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cogegen.ts
src/generated/graphql.ts
package-lock.json
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ A _BLAZINGLY FAST_ way to work with Gitpod 🍊

### Installation

1. Install Raycast to get started if you haven't 😉
1. Install Raycast to get started if you haven't by simply clicking on this button! 😉

<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>

2. Navigate to the Raycast Store to Download the `Gitpod` extension
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.

### Currently Supported Features

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

![RepoSearch](/metadata/RepoCatelog.png)
2. You can now see and find all the branches, PRs and Issues which you can directly open in Gitpod with a single Keypress!
Expand Down Expand Up @@ -45,4 +48,4 @@ A _BLAZINGLY FAST_ way to work with Gitpod 🍊
- [ ] Manage Prebuilds withing Raycast
- [ ] Add support for GitLab and Bitbucker
- [ ] Default ide support
- [ ] And much more....
- [ ] And much more....
21 changes: 21 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
Binary file added assets/Icons/dashboard1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Icons/documentation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Icons/gh-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Icons/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/Icons/info1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/Icons/link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Icons/projects.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/Icons/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logo-mark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion assets/logo-mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions codegen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const config: CodegenConfig = {
"https://api.github.com/graphql": {
headers: {
Authorization: `token ${process.env.GITHUB_TOKEN}`,
'user-agent': 'node.js'
},
},
},
Expand Down
16 changes: 11 additions & 5 deletions constants.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { Color } from "@raycast/api";

export enum workspaceStatus {
workspace_Inactive = "stopped",
workspace_active = "running",
workspace_progressing = "progressing",
workspace_failed = "failed",
export interface workspaceStatus {
workspace_Inactive : "PHASE_STOPPED",
workspace_active : "PHASE_RUNNING",
workspace_progressing : "PHASE_CREATED" | "PHASE_INITIALIZING" | "PHASE_STOPPING" | "PHASE_PENDING"
}

export enum branchStatus {
Expand Down Expand Up @@ -71,13 +70,20 @@ export const GitpodIcons = {
stopped_icon_menubar: { source: "Icons/status_icon_small.png", tintColor: statusColors.stopped },
failed_icon_menubar: { source: "Icons/status_icon_small.png", tintColor: statusColors.failed },
progressing_icon_menubar: { source: "Icons/status_icon_small.png", tintColor: statusColors.progressing },
settings_icon: {source: "Icons/settings.png"},
project_icon: {source: "Icons/projects.png"},
docs_icon: {source: "Icons/documentation.png"},

repoIcon : {
source: "Icons/repo-16.svg",
tintColor: statusColors.progressing
},

info_icon: { source: "Icons/info1.svg", tintColor: UIColors.red},
link_icon: { source: "Icons/link.svg", tintColor: UIColors.gitpod_gold},

commit_icon: {source: "Icons/git-commit.svg", tintColor: UIColors.gitpod_gold},
dashboard_icon: {source: "Icons/dashboard1.png"},

branch_icon: {
source: "Icons/merge.svg",
Expand Down
Loading

0 comments on commit dbd7f39

Please sign in to comment.