Skip to content

To keep pull requests free of flooded comments, automatically resolve or remove `outdated` comments on pull requests from a specified GitHub user bot.

Notifications You must be signed in to change notification settings

Ardiannn08/resolve-outdated-comment

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resolve Outdated Comment

To keep pull requests free of flooded comments, automatically resolve or remove outdated comments on pull requests from a specified GitHub user bot.

This feature will be useful when we have bots to review. Maybe there are a lot of comments from bot review, and after the requestor has fixed the comments, everything that is 'out of date' is still there, and it will make comments from other reviewers pile up or even make other reviewers not aware which parts are completely resolved and which are not.

Notes:

This flow is far from perfect, 
but it aims to produce the most frictionless experience possible considering technological limitations.

Parameter

  • token: GitHub Personal Access Token.
  • [Optional] filter-user: Specify the checked bot user. Leaving it empty means all user will be applied. (Support multiple user separated by ,)
  • mode: delete / resolve
    • delete: remove an oudated comment completely.
    • resolve: resolve the conversation of outdated comment.

Example Workflow

name: "Auto Resolve Comment"
on: push
jobs:
  required_label:
    name: "Auto Resolve Comment"
    runs-on: ubuntu-latest
    steps:
      - uses: Ardiannn08/resolve-outdated-comment@v1.1
        with:
          token: ${{ secrets.GH_TOKEN }}
          filter-user: "your-bot-name"
          mode: "delete"

Contribution

For now I don't think there will be any contributors, if you have problems or ideas for improvement, feel free to open an issue. I would ❤️ contributions to improve this action.

About

To keep pull requests free of flooded comments, automatically resolve or remove `outdated` comments on pull requests from a specified GitHub user bot.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published