This project is to learn how to use github apis and to familiarise myself with github actions .
This project scans a pull request for numbers and post the result as a comment on github .
The numbers are parse into a fibbonacci calculator and then post the result of the fibbonacci calculator to this gh repo as a comment
I used some rust libaries like octocrab to get the content of a pull request
I used regex pattern matching to extract the the numbers from the pull request that has being parsed to a string
To parse the string i called some specail methods on the the content of the pull request. This project is very fun
steps:
- name: Compute Fibbot
uses: @Jagoum/fibbot@v1
with:
enable_fib: true
users_input: 12
# users input should be less than maximum threshold
max_threshold: 105
pr_number: ${{ github.event.pull_request.number }}To contribute to this project do
git clone https://github.com/jagoum/fibbot.git
Or you can simply fork this repo and do your changes and then create a pull request
I Love this chanlenge
let files = files.unwrap().items.first().unwrap().patch.clone().unwrap();