Skip to content

feat: vercast 2.0.0 - #71

Merged
fe9lix merged 1 commit into
raycast:mainfrom
gleich:vercast
Oct 18, 2021
Merged

fe9lix merged 1 commit into
raycast:mainfrom
gleich:vercast

Conversation

@gleich

@gleich gleich commented Oct 17, 2021

Copy link
Copy Markdown
Contributor

Signed-off-by: Matt Gleich [email protected]

Description

  • Teams support
  • Refresh is now 2 seconds
  • Changes to manifest

Type of change

Bug fix / improvement for my extension

Screencast

Screen.Recording.2021-10-17.at.12.47.14.AM.mov

Checklist

Signed-off-by: Matt Gleich <[email protected]>
@gleich gleich mentioned this pull request Oct 17, 2021
1 task done
@PitNikola PitNikola added the extension fix / improvement Label for PRs with extension's fix improvements label Oct 17, 2021
@fe9lix
fe9lix self-requested a review October 18, 2021 13:51

@fe9lix fe9lix left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @gleich ! I've left some inline comments (after testing the extension locally here and with my account ID for Raycast).

state = DeploymentState.failed
break
const teamIDs = Object.keys(teams)
for (let i = -1; i < teamIDs.length; i++) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On purpose to start the loop at -1? Asking since I see "undefined" logs in the console and it looks like they're coming from here.

@gleich gleich Oct 18, 2021 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The loop starts at a negative one because the loop needs to run at least once for your personal account. I think making a function just for getting deployments and calling it for once for the personal account and over and over again for teams is a better implementation.

const json = await response.json()
for (const project of json.projects) {
for (const deployment of project.latestDeployments) {
if (deployment.creator.username === username) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could that be the reason why I'm not using my teams' deployments? The list shows up empty for me – I guess that's because I'm not the creator of those deployments?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, it only shows your deployments.

@fe9lix
fe9lix merged commit 59ee078 into raycast:main Oct 18, 2021
@gleich
gleich deleted the vercast branch October 18, 2021 15:13
"description": "View your Vercel deployments",
"icon": "icon.png",
"author": "matt",
"license": "MPL-2.0",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gleich Could you please update the license to MIT here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the license not match the actual license? I am using MPL-2.0 in the repo and in my attached code...

@fe9lix fe9lix Oct 18, 2021 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, please also remove the license file. We have a LICENSE file already in the repo's root folder and require all extensions to have MIT.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok, sounds good

fe9lix pushed a commit that referenced this pull request Oct 19, 2021
* feat: add conventional comments extension

* feat: vercast 2.0.0 (#71)

Signed-off-by: Matt Gleich <[email protected]>

* fix: change icon & update comand description

* fix: wrong merge

Co-authored-by: Matt Gleich <[email protected]>
FezVrasta pushed a commit to FezVrasta/extensions that referenced this pull request Nov 24, 2021
FezVrasta pushed a commit to FezVrasta/extensions that referenced this pull request Nov 24, 2021
* feat: add conventional comments extension

* feat: vercast 2.0.0 (raycast#71)

Signed-off-by: Matt Gleich <[email protected]>

* fix: change icon & update comand description

* fix: wrong merge

Co-authored-by: Matt Gleich <[email protected]>
raycastbot added a commit that referenced this pull request Jul 9, 2025