Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📝 Documentation: Github Workflow Documentation #198

Open
2 tasks done
seveibar opened this issue Jan 13, 2025 · 2 comments
Open
2 tasks done

📝 Documentation: Github Workflow Documentation #198

seveibar opened this issue Jan 13, 2025 · 2 comments
Labels
area: documentation Improvements or additions to docs 📝 status: accepting prs Please, send a pull request to resolve this! 🙏

Comments

@seveibar
Copy link
Collaborator

Bug Report Checklist

Overview

I think it'd be cool to show how to use a github workflow to automate this.

I'm not sure you can create fine-grained access tokens for notifications though, so this could be issue (having your whole team's PATs on a server is not good)

Here's an action I wrote to help myself:

name: Prune seveibar GitHub Notifications

on:
  schedule:
    - cron: '*/10 * * * *'  # Runs every 10 minutes
  workflow_dispatch:  # Allows manual triggering

jobs:
  prune-notifications:
    runs-on: ubuntu-latest
    
    steps:
      - name: Setup Bun Runtime
        uses: oven-sh/setup-bun@v1
        with:
          bun-version: latest

      - name: Install Prune Notifications Tool
        run: bun install --global @seveibar/prune-github-notifications

      - name: Prune Bot Notifications
        env:
          GH_TOKEN: ${{ secrets.SEVEIBAR_GH_TOKEN }}
        run: prune-github-notifications --botAuthors --title ".*" --reason any

      - name: Prune Dependency Update Notifications
        env:
          GH_TOKEN: ${{ secrets.SEVEIBAR_GH_TOKEN }}
        run: prune-github-notifications --reason any --title ".*update dependency.*"

image

Additional Info

No response

@seveibar seveibar added the area: documentation Improvements or additions to docs 📝 label Jan 13, 2025
Copy link

Uh oh! @seveibar, the image you shared is missing helpful alt text. Check your issue body.

Alt text is an invisible description that helps screen readers describe images to blind or low-vision users. If you are using markdown to display images, add your alt text inside the brackets of the markdown image.

Learn more about alt text at Basic writing and formatting syntax: images on GitHub Docs.

🤖 Beep boop! This comment was added automatically by github/accessibility-alt-text-bot.

@JoshuaKGoldberg
Copy link
Owner

Ooh I hadn't thought of this - but it's a really nifty idea!

Personally, I just keep a shell/terminal tab open on my desktop at all times just running this. Which means whenever my computer restarts itself (😡) I start getting notifications again. Irksome.

Anyway, +1, I think it's be great to have some kind of "Recipes" / "Suggested Usage" section including:

@JoshuaKGoldberg JoshuaKGoldberg added the status: accepting prs Please, send a pull request to resolve this! 🙏 label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: documentation Improvements or additions to docs 📝 status: accepting prs Please, send a pull request to resolve this! 🙏
Projects
None yet
Development

No branches or pull requests

2 participants