Skip to content

Awungia112/fibbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FibBot GitHub Action

Summary

FibBot is a GitHub Action written in Rust that scans pull request content for numbers, calculates their Fibonacci numbers, and posts a comment with the results. The action supports two parameters: a flag to enable Fibonacci calculation and a threshold limit.

Features

  • Scans pull request content for numbers.
  • Calculates Fibonacci value for the extracted numbers.
  • Posts a comment with the Fibonacci results.
  • Supports configuration parameters for enabling/disabling calculation and setting a threshold.

Usage

  1. Clone the Repository
    git clone https://github.com/Awungia112/fibbot.git
    cd fibbot
  2. Build Rust Project
    cargo build --release
  3. In your Github repo add this to your workflow file
     - name: Run FibBot
       uses: Awungia112/fibbot@master
       with:
           pr_number: ${{ github.event.pull_request.number }}
           enable_fib: "true"
           max_threshold: "100"
           github_token: ${{ secrets.GITHUB_TOKEN }}
    

N.B

In your repository make sure your workflow has read and write permissions.

Make sure your Github Personal Access Token is set.

create a second branch and open a pull request.

Monitor your logs to be sure that the comment is posted succesfully and the fibonacci calculated.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors