Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add commands for managing webhooks #314

Merged
merged 8 commits into from
Apr 9, 2021
Merged

add commands for managing webhooks #314

merged 8 commits into from
Apr 9, 2021

Conversation

dsokal
Copy link
Contributor

@dsokal dsokal commented Apr 8, 2021

Checklist

Why

https://github.com/expo/universe/pull/7305 added infra for webhooks management.
This PR adds a bunch of new commands for webhooks management: webhook:create, webhook:view, webhook:list, webhook:update, webhook:delete.

How

Test Plan

Tested manually.

Screenshot 2021-04-08 at 14 56 02

@github-actions
Copy link

github-actions bot commented Apr 8, 2021

Size Change: +2.47 kB (0%)

Total Size: 32.9 MB

Filename Size Change
./packages/eas-cli/dist/eas-linux-x64.tar.gz 32.9 MB +2.47 kB (0%)

compressed-size-action

@dsokal dsokal force-pushed the @dsokal/webhooks branch 3 times, most recently from 26930fb to 6ff99e1 Compare April 8, 2021 12:38
@dsokal dsokal marked this pull request as ready for review April 8, 2021 12:48
import Log from '../log';
import { promptAsync } from '../prompts';

export async function prepareInputParams(
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
export async function prepareInputParams(
export async function prepareInputParamsAsync(

}
}

async function fetchWebhooksByAppId(appId: string): Promise<WebhookFragment[]> {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
async function fetchWebhooksByAppId(appId: string): Promise<WebhookFragment[]> {
async function fetchWebhooksByAppIdAsync(appId: string): Promise<WebhookFragment[]> {

}
} catch (err) {
spinner.fail(
`Something went wrong and we couldn't fetch the webhook list ${projectFullName}`
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
`Something went wrong and we couldn't fetch the webhook list ${projectFullName}`
`Something went wrong and we couldn't fetch the webhooks for project ${projectFullName}`

🤔

@dsokal dsokal merged commit f97d460 into main Apr 9, 2021
@dsokal dsokal deleted the @dsokal/webhooks branch April 9, 2021 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants