Code Monkey home page Code Monkey logo

write-github-script's People

Contributors

kirillperesh avatar mattdavis0351 avatar

Watchers

 avatar

write-github-script's Issues

Start here!

Hi there ๐Ÿ‘‹!

Hello @kirillperesh, I'm so excited to teach you how to use GitHub Script in your workflows ๐Ÿ˜„

What is GitHub Script?

octokit logo

GitHub Script is a really awesome action that allows you to quickly interact with the GitHub API directly in your workflow!

This allows you to use the workflow context to script any API usage that is available through the octokit/rest.js library without the need to build a bulky custom action to do so.

๐Ÿ“– See octokit/rest.js for the API client documentation.

Let's take a closer look at how this action compares to Octokit.

Create an issue comment with GitHub Script

Look ๐Ÿ‘€ at you!

Super awesome job so far!

Do you remember what our workflow trigger was?

on:
  issues:
    types: [opened]

This means that every time an issue gets opened in this repository the GitHub Script you wrote will execute.

You should expect to see the result right here in this issue!

Workflow not running? Click here for some troubleshooting.

Try the following troubleshooting steps:

  1. Click on the Actions tab to see the status of your workflow run. See Managing a workflow run on GitHub Help for more information.
  2. Edit your workflow file and look for errors in the linter built into the browser.
  3. Look for the workflow trigger and ensure you are performing an action that triggers that workflow.

If you need to make changes to your code, remove the main branch protection and merge your changes into the main branch.


I'll respond in this issue after your workflow runs!

Comment and triage with GitHub Script

Great job @kirillperesh

Now that your updates have been merged and we've triggered the workflow we should see our workflow begin helping us automate the triage of new issues.

Workflow not running? Click here for some troubleshooting.

Try the following troubleshooting steps:

  1. Click on the Actions tab to see the status of your workflow run. See Managing a workflow run on GitHub Help for more information.
  2. Edit your workflow file and look for errors in the linter built into the browser.
  3. Look for the workflow trigger and ensure you are performing an action that triggers that workflow.

If you need to make changes to your code, remove the main branch protection and merge your changes into the main branch.


I'll respond once your workflow has completed!

It's alive!

Great Job so far!

Like before, now we have to wait for the workflow to run so that we can see the results.

Workflow not running? Click here for some troubleshooting.

Try the following troubleshooting steps:

  1. Click on the Actions tab to see the status of your workflow run. See Managing a workflow run on GitHub Help for more information.
  2. Edit your workflow file and look for errors in the linter built into the browser.
  3. Look for the workflow trigger and ensure you are performing an action that triggers that workflow.

If you need to make changes to your code, remove the main branch protection and merge your changes into the main branch.


I'll respond here once it has completed!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.