DEV Community

loading...
Cover image for Working on Github Actions - Update 1 (The Idea)

Working on Github Actions - Update 1 (The Idea)

pika1998 profile image Prafulla Raichurkar ・1 min read

After checking out the Github Actions Hackathon, I started exploring more about GitHub actions and was amazed by learning the amount of power they possess.

In this post, I would like to share the idea on which I am working for this hackathon (This is not a submission)

The Idea

The Idea

Current Progress

Right now, the action scans the backend javascript file for express API Calls and just console logs them on each push to the repository

Current Progress

Description

I plan to scan the backend server file for API calls and also scan the router routes for categorized API calls and then use the keywords get, post, etc to fetch the API call type.

The backend file path, app variable name used can be given a custom input.

GitHub logo Pika1998 / express-autodocs

A GitHub action which automatically generates documentation for your express APIs.



Contributions

💡 Introduction

This action automatically scans for express APIs in your codebase and generates a documentation website


How to add to your workflow

To add this action to your workflow simply modify your workflows main.yml file.

# This is a basic workflow to help you get started with Express AutoDocs Action
name: Express AutoDocs.
# This specifies when the action should occur
on
  push
    branches: [master]

jobs:
  generate_docs_job:
    runs-on: ubuntu-latest
    name: Generating Docs
    steps:
      # this step checks out the master branch of your repo using checkout action.
      - name: Checks out the repository
        id: checksout-repository
        uses: actions/checkout@v2
        with:
          repository: ""
      # this step generates the docs
      - name: Generating Docs.
        id: reading-file
        uses: Pika1998/express-autodocs@v0.0.1
      # Use the output from the `hello` step
      - name: Get the output time
        run

Suggestions and ideas are most welcome 👨‍💻💖

Discussion

pic
Editor guide
Collapse
singhshivani profile image
Collapse
pika1998 profile image