github-script
toolkit
github-script | toolkit | |
---|---|---|
11 | 20 | |
3,942 | 4,677 | |
1.6% | 1.2% | |
6.4 | 9.5 | |
about 1 month ago | 6 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.
github-script
-
Github Actions - Output
It's also possible to use output through the github-script action.
-
How to Terraform with Comments (And You Can DIY!*)
I wrote a custom script to parse PR comments as input commands to interface with Terraform CLI, returning the output as bot comments. Each step of the workflow relies on GitHub Actions, including actions/github-script to interact with GitHub's API (while brushing up on my JavaScript!).
-
actions-rs Github Actions need more maintainers!!! OR to be replaced
You can generate what to annotate with a few lines of shell and then use gihub-script
-
GitHub Actions by Example
Nice idea, worth mentioning other features:
* Reusable workflows (note: matrix strategy doesn't work here): https://docs.github.com/en/actions/using-workflows/reusing-w...
* Composite actions: https://docs.github.com/en/actions/creating-actions/creating...
* Script as action: https://github.com/actions/github-script
* Using GitHub Packages and artifacts: https://docs.github.com/en/actions/publishing-packages/about...
* Using docker-compose-like services that run alongside of the container: https://docs.github.com/en/actions/using-containerized-servi...
And many, many more :)
-
Automating Data Analytics Environments
actions/github-script@v5
-
Automatically cross-publish posts from my blog to dev.to
This workflow makes use of the awesome github-script that makes working with API's a breeze!
-
Paste of screenshots on GitHub isn't working with Chrome
GitHub support hasn't been helpful so far. If you use Chrome on Linux, type xfce4-screenshooter or flameshot and grab a screenshot. Then navigate to any issue or PR, for example, https://github.com/actions/github-script/issues/187 and in the comment box at the bottom, type Ctrl-V. Either you'll see your image get uploaded or you won't. You don't need to save nor submit the comment.
-
Build GitHub Actions with a Docker Container
Note at the end of the bash, and we are leveraging a curl command to talk directly to the GitHub API. This curl command is meant for simplicity. All of this could have been done using the octokit.rest.js library or better github-script.
-
Automate your PR reviews with GitHub Action scripting in JavaScript
In this post, I am going to focus on the API and actions/github-script. This action makes it easy to quickly write a script in your workflow that uses the GitHub API and includes the workflow run context.
-
My First Github Workflow
My new github action follows a simple workflow: Whenever a user opens a pull request to the repository with the configured workflow, a comment is made on the PR with a greeting to the user and another comment with the statistics about the repository and PR are posted. Used the github-scripts (https://github.com/actions/github-script) action to get the API and context to write my own script in the workflow. It was a very fun exercise for me. Thankyou Dev Team for this cool contest!
toolkit
- Disable Annotations in Github Actions
-
Develop, test, and deploy your extensions for all popular CIs from a single codebase
Different libraries (like actions/toolkit and microsoft/azure-pipelines-task-lib) with more accessible and easy-to-use APIs are available out-of-box
-
Format repo - GitHub Action to format your code with comfort
I used the libraries from actions/toolkit to create my action. It's more comfortable than when I did it with Docker. I looked at all the libraries, and most of all: actions/core, actions/exec and actions/github.
-
OpenCommit: GitHub Action to improve commits with meaningful messages on every `git push` 🤯🔫
The Action is built using TypeScript and Node.js, popular choices for GitHub Actions due to their excellent support for asynchronous operations, a crucial requirement considering the multiple I/O operations involved. In the initial setup, I used the actions/toolkit package which provides useful utilities to streamline the creation of GitHub Actions. I picked @actions/core for basic functionalities such as inputs, outputs, and error handling, @actions/github to interact with GitHub's REST API, and @actions/exec to execute shell commands.
-
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.
-
AdaGPT: AI support for Issues and Pull Requests right at your fingertips!
The GitHub Action was implemented with TypeScript using the GitHub Actions Toolkit and the OpenAI Node.js Library. The Action is activated on new comments on issues and pull requests if they mention @AdaGPT. The relevant issue number is determined from the event payload. Then all existing comments for this issue are read. If the issue is a pull request, the git diff is also read.
-
Creating GitHub Actions for community engagement
Creating actions can be an overwhelming task, so to help you on your journey, here are two indispensable resources that can assist you in getting started; Actions Toolkit and Javascript action template. Still, this article will dive into how to create an action.
-
The feature request for a "allow-failure" option on GitHub Actions now almost has one thousand thumbs up
Please support something like "allow-failure" for a given job
-
I'm leaving Github
More than 2 years of ignoring requests to add an important feature (allow-failure) to Github Actions (ref, ref. When not ignoring, completely misunderstanding the feature as if those building Github Actions are unfamiliar with core features of competing platforms.
- Official GitHub Actions Toolkit is abandoned
What are some alternatives?
dependabot-core - 🤖 Dependabot's core logic for creating update PR's.
act - Run your GitHub Actions locally 🚀
devhub - TweetDeck for GitHub - Filter Issues, Activities & Notifications - Web, Mobile & Desktop with 99% code sharing between them
fully-featured-scalable-chat-app - An example of how to architect a fully featured, scalable chat app. With user and channel management and message history.
checkout - Action for checking out a repo
azure-pipelines-task-lib - Libraries for writing VSTS and TFS build tasks
take-action - This is an action to assign yourself to an issue for a repo you are not a contributor to.
community - Public feedback discussions for: GitHub Mobile, GitHub Discussions, GitHub Codespaces, GitHub Sponsors, GitHub Issues and more!
gh-action-terminal
typescript-action - Create a TypeScript Action with tests, linting, workflow, publishing, and versioning
setup-msys2 - GitHub Action to setup MSYS2
ably-control-api-action - A GitHub Action to use the Ably Control API.