Git Product home page Git Product logo

actions-pull-request-json's Introduction

pull-request-json

プルリクエストの情報を収集するためのWorkflow

sample

プルリクエストのClose時にデータをJson形式で受け取る

name: Closed

on:
  pull_request:
    types: [ closed ]

jobs:
  PullRequestClosed:
    runs-on: ubuntu-latest
    steps:
      - name: Get PullRequest number
        id: pr-number
        uses: actions/github-script@v6
        with:
          script: return context.issue.number;
      - name: Run
        id: set-result
        uses: iwata-n/actions-pull-request-json@main
        with:
          pullRequestNumber: ${{steps.pr-number.outputs.result}}
      - name: Get result steps
        run: echo ${{steps.set-result.outputs.result}}

結果のJsonサンプル

{
    "owner":"iwata-n",
    "repo":"actions-pull-request-json",
    "pull_number":"3",
    "title":"Create test",
    "user":"iwata-n",
    "created_at":"2022-11-21T09:40:08Z",
    "merged_at":null,
    "first_ready_for_review_at":"2022-11-21T09:40:16Z",
    "last_ready_for_review_at":"2022-11-21T09:40:16Z",
    "head":"test",
    "base":"main",
    "commits":1,
    "additions":1,
    "deletions":0,
    "changed_files":1
}

actions-pull-request-json's People

Contributors

iwata-n avatar

Watchers

 avatar

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.