octokit.js
typescript-action
octokit.js | typescript-action | |
---|---|---|
8 | 29 | |
6,725 | 1,777 | |
0.8% | 2.0% | |
8.6 | 9.2 | |
9 days ago | 3 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
octokit.js
-
Creating an Automated Profile README using Nodejs and GitHub Actions
You can fetch different kinds of data with GitHub's API. There are two options: use the API directly or the Octokit.js library (this is the route GitHub recommends). I decided to use the API directly since the Octokit.js library included extra stuff I wouldn't need, which is an overkill for this use case.
- GitHub Octokit: replace TS with plain JavaScript and d.ts for faster dev
-
AdaGPT: My Learnings While Building a GitHub Action
The package @actions/github provides a hydrated Octokit.js client. Octokit.js is the SDK of GitHub and contains several subpackages like @octokit/rest and @octokit/graphql to interact with the REST or GraphQL API.
-
My Hacktoberfest Experience For The Third Time: 2022 Edition
While sharing my project on Twitter, I got to know of Gregor Martynus, the maintainer of the JavaScript Octokit β GitHub's official JavaScript SDK and his project Octoherd. He tweeted a reply that it will be nice to have a GUI like Octokit-lite for Octoherd, and that sparked an inspiration for me β¨
-
Help with Github API and Github GraphQL API
I've also added an example using Octokit.js, GitHub's JS/TS client to the API.
- Typescript beginner question
-
Deploy a GitHub Application to Cloudflare Workers
In order for the project to be shipped as a service function, the node environment can not be used in any of the production code. Reviewing Probot source, one might see a dead end in that it uses require("dotenv").config(). However, its underlying framework, OctoKit does not come with any opinionated code in this regard.
-
NestJS Octokit Module
Hey, I've been using Octokit in NestJS for interacting with GitHub's API and today I moved it out into a separate NPM package.
typescript-action
-
Hashnode Blog GitHub Action - fetch and display the latest blogs in a nice format
While learning about GitHub Actions, I came across the GitHub Actions Org, and they have a bunch of templates for building custom GitHub actions. So, I started searching for a template that has TypeScript support, ensuring type safety to write bug-free code. I found the typescript-action template that includes support for tests, linter, versioning, and more.
-
Dynamically importing a downloaded file in a TypeScript GitHub action.
This is the template I used for my TypeScript action https://github.com/actions/typescript-action
-
Develop, test, and deploy your extensions for all popular CIs from a single codebase
I found the GitHub actions documentation easier to read than Azure, so I would recommend starting writing and testing your extensions on GitHub by using the official template actions/typescript-action. The mentioned template provides a good starting point; I won't repeat the steps here. Play with it, write some simple stuff, and then return here for the next steps.
-
Speeding up GitHub Actions with npm cache
GitHub maintain a set of repos called actions. One of which is called cache.
-
AdaGPT: My Learnings While Building a GitHub Action
To get started quickly with a JavaScript action, I recommend using the official templates from GitHub for JavaScript and TypeScript.
-
Rust is not hard! Part 1: GitHub Actions
On the TypeScript side, setup was much easier. There was already a template from GitHub that took care of the basics. Most of the time spent here was updating dependencies and getting my editor to play nicely with itβ18 minutes, about 10% of the total.
- CICD pipelines written in Typescript
- Unpopular opinion: CI/CD engines are an awful idea
-
Creating GitHub Actions for community engagement
Now that you know how to create your own GitHub Actions, why not give it a try? Head to the GitHub Marketplace and start exploring the existing Actions, or create your own and share it with the community. With GitHub Actions, the possibilities are endless, so start building and see what you can accomplish
-
How to Debug Tests in the CI Pipeline
Your build most likely fails because your tests fail. Most CI pipelines today, like Jenkins, Circleci, GitLab, TeamCity, Bamboo, and GitHub Actions, are configured to automatically cause the build process to fail when tests fail.
What are some alternatives?
probot - π€ A framework for building GitHub Apps to automate and improve your workflow
codeql-action - Actions for running CodeQL analysis
nestjs-octokit - Octokit module for NestJS
ncc - Compile a Node.js project into a single file. Supports TypeScript, binary addons, dynamic requires.
smee-client - π΄ Receives payloads then sends them to your local server
get-changed-files - Get all of the files changed/modified in a pull request or push's commits.
cloudflare-worker-github-app-example - A Cloudflare Worker + GitHub App Example
sticky-pull-request-comment - create comment on pull request, if exists update that comment.
hello-world-javascript-action - A template to demonstrate how to build a JavaScript action.
publish-unit-test-result-action - GitHub Action to publish unit test results on GitHub
miniflare - π₯ Fully-local simulator for Cloudflare Workers. For the latest version, see https://github.com/cloudflare/workers-sdk/tree/main/packages/miniflare.
vercel-action - This action make a deployment with github actions instead of Vercel builder.