priyankarpal / projectshut

Projectshut is an open source web app that enables users to freely publish their projects and create user profiles within the platform ✨🚀
https://www.projectshut.tech
MIT License
397 stars 492 forks source link

feat: Add broken links checker, #2506

Closed JuanPabloDiaz closed 2 months ago

JuanPabloDiaz commented 2 months ago

Related Issue

fixes #2505

Description

Add a github action to check for broken links

I would like to implement the second part which it supposed to open an issue if it finds broken links. I want able to do it in my repo due to permission issue. here is the code for this action:

      - name: Create Issue From File
        if: env.lychee_exit_code != 0
        uses: peter-evans/create-issue-from-file@v5.0.0
        with:
          title: Link Checker Report
          content-filepath: ./lychee/out.md
          labels: Broken Link

Screenshots

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
projectshut ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 9, 2024 8:08pm