• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

githubuniverseworkshops/checks-api: Getting started with the GitHub Checks API

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

githubuniverseworkshops/checks-api

开源软件地址:

https://github.com/githubuniverseworkshops/checks-api

开源编程语言:


开源软件介绍:

Getting started with the GitHub Checks API

Workshop Pre-requisitesUseful linksWorkshop stepsExtend your app further

Remix With Glitch


Workshop Pre-requisites

  • A GitHub.com account
  • A Glitch.com account

Useful links throughout the workshop

Follow along live: https://glitch.com/edit/#!/accessible-emu

Workshop steps

  1. Fork the universeworkshops/license-checker-demo repo to your personal account
  2. Create your Glitch app by following this link: https://glitch.com/edit/#!/remix/license-checker-start
  3. Wait for Glitch to load and for it to install all the dependencies. You can see progress by clicking on "Status" in the top left corner
  4. Click the "Show Live" button at the top of the page. A new tab should open and the page should have a "Register GitHub App" button
  5. Click the "Register GitHub App" button and choose a name for your GitHub App. A GitHub app will be created for you in the background. Once it is complete you will see a new page that asks you where you want to install your new app.
  6. On this page, select the "Only select repositories" and in the dropdown choose the "license-checker-demo" repository that you forked in step 1.
  7. In your current tab, go to the license-checker-demo repository. It should be at github.com/your-username/license-checker-demo
  8. Then head back to Glitch, it's time to write some code!

Extend and improve your app further

  • Create a check saying “No new dependencies found” if the package.json file was not modified in the PR or commit
  • Customise warning/notices
  • Create a pull request review mentioning a specific team whenever there is a dependency change
  • Add an action button to "approve the dependency changes"
  • Modify the check “conclusion” based on the changed dependencies
  • Experiment further with the Checks API and build something completely different



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap