Git Product home page Git Product logo

quarkus-pr-info's Introduction

GitHub API Project

This project is a Java application that interacts with the GitHub API to retrieve information about pull requests.

Building the Project

To build the project, make sure you have Maven installed. Then, run the following command:

mvn clean install

This will compile the code, run tests, and create an executable JAR file in the target directory.

Prerequisites

Before running the application, you need to obtain a GitHub token with the "read:org" permission. Follow the steps below to create a token:

  1. Login to GitHub

  2. Navigate to Settings: Click on your profile picture in the top right corner of GitHub and select "Settings" from the dropdown menu.

  3. Access Developer Settings: In the left sidebar, click on "Developer settings."

  4. Generate a New Token:

    • Click on "Personal access tokens" under "Access tokens."
    • Under "Select scopes," ensure that only the "read:org" permission is selected.
    • Click "Generate token."
  5. Copy the Token

Running the Application

After building the project, you can run the application using the generated JAR file. Use the following command:

java -jar target/quarkus-pr-info.jar <GitHub-token> [<startDate> <endDate>]

Arguments:

  • <GitHub-token>: Your GitHub personal access token.
  • <startDate>: Optional. Start date in the format dd-MM-yyyy (e.g., 25-02-2022).
  • <endDate>: Optional. End date in the format dd-MM-yyyy (e.g., 25-02-2022).

Examples:

  1. Get all pull requests:

    java -jar target/quarkus-pr-info.jar <GitHub-token>
  2. Get pull requests after a specific start date:

    java -jar target/quarkus-pr-info.jar <GitHub-token> 20-02-2022
  3. Get pull requests between a start and end date:

    java -jar target/quarkus-pr-info.jar <GitHub-token> 01-01-2022 01-01-2023

quarkus-pr-info's People

Contributors

xjusko 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.