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

Feature/unblock build action #14779

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"root": true,
"env": {
"es2020": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"],
"ignorePatterns": ["*.graphql", "**/generated/**"]
}
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<<<<<<< HEAD
### macOS ###
# General
.DS_Store
Expand Down Expand Up @@ -157,14 +158,28 @@ extensions/**/*.zip
# Raycast
raycast-env.d.ts
.build
=======
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules

# Raycast specific files
raycast-env.d.ts
>>>>>>> 0644b3cac (Initial commit)
.raycast-swift-build
.swiftpm
compiled_raycast_swift

<<<<<<< HEAD
# VSCode
.vscode

# Root lockfiles
/package-lock.json
/pnpm-lock.yaml
/yarn.lock
=======
# misc
.DS_Store
>>>>>>> 0644b3cac (Initial commit)
2 changes: 2 additions & 0 deletions .graphqlrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
schema: "schema.graphql"
documents: "src/**/*.graphql"
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
schema.graphql
generated/
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 120,
"singleQuote": false
}
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Buildkite Changelog

## [Fix potentially undefined data] - 2023-12-12

- Fixes GraphQL data that is potentially undefined
- Refactors GraphQL queries to use codegen

## [Fixes and Updates] - 2022-03-25

- Added extension metadata
- Updated to the new Raycast API

## [Initial Version] - 2021-10-22

Add Buildkite Extension.
33 changes: 33 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<<<<<<< HEAD
<p align="center">
<img src="images/store-logo.webp" height="128">
<h1 align="center">Raycast Extensions</h1>
Expand Down Expand Up @@ -29,3 +30,35 @@ Raycast wouldn't be where it is without the feedback from our community, so we w
## Community

Join our [Slack community](https://raycast.com/community) to share your extension, debug nasty bugs or simply get to know like-minded folks.
=======
# Buildkite

Extension to view your Buildkite pipelines and builds.

## Configuration

### Creating an access token

This extension requires a Buildkite access token with GraphQL API access. To create a new token, follow these steps:

1. Go to https://buildkite.com/user/api-access-tokens
1. Click **New API Access Token**
1. Enter a name for your token in the **Description** field
1. Select the organization you wish to grant access to
1. Check the **Enable GraphQL API Access** checkbox
1. Click **Create New API Access Token**

### Enter your organization slug

This extension currently only works with a single Buildkite organization. In the organization slug field, enter the name of the organization you wish to use. This value is case sensitive.

## Showcases

### Search pipelines

![pipelines](https://user-images.githubusercontent.com/25914066/148241640-c40a4d96-a2af-4ed4-aabf-a4dbea2e220c.png)

### My builds

![builds](https://user-images.githubusercontent.com/25914066/148241638-40e45595-e4da-4db2-ad1e-a4261147e558.png)
>>>>>>> 0644b3cac (Initial commit)
Binary file added assets/buildkite.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/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions codegen.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { CodegenConfig } from "@graphql-codegen/cli"

const config: CodegenConfig = {
documents: ["src/**/*.graphql"],
generates: {
"./src/generated/graphql.ts": {
config: {
avoidOptionals: true,
enumsAsTypes: true,
skipTypename: true,
},
plugins: [
"typescript",
"typescript-operations",
"typescript-graphql-request",
],
},
},
schema: "schema.graphql",
}

export default config
Binary file added metadata/screenshot-01.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 metadata/screenshot-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading