flowwer-dev / pull-request-stats

Github action to print relevant stats about Pull Request reviewers
MIT License
366 stars 79 forks source link

Feature: Allow Posting it as Comment #24

Closed rowi1de closed 2 years ago

rowi1de commented 2 years ago

Please add a feature that allows switching from Description to Comment.


name: Pull Request Stats

on: 
  pull_request:
    types: [opened]

jobs:
  stats:
    runs-on: ubuntu-latest
    steps:
      - name: Run pull request stats
        uses: flowwer-dev/pull-request-stats@master
        with:
          comment: true # set trigger accordingly, default is opened, synchronize, and reopened
rowi1de commented 2 years ago

Same as https://github.com/flowwer-dev/pull-request-stats/issues/14

manuelmhtr commented 2 years ago

Hi @rowi1de. You are right, commenting works when configuring the trigger correctly. I'll include this option in the next version. Let me find some time to work on that.

DaniAkash commented 2 years ago

@manuelmhtr when the PR body is edited - the unfurling of pr links prints the users as preview image. This makes the PR previews when shared on slack awkward

manuelmhtr commented 2 years ago

Hi @DaniAkash, I see. I make posting as comment makes ever more sense. Let me do some time this week to launch this feature.

manuelmhtr commented 2 years ago

Hi @rowi1de @DaniAkash, publishing as comment is now available in v2.4.0. It's now the default behavior and configurable with the publish-as option.