mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-27 22:21:18 +02:00
.github: run PR review stats only for side branches
This commit is contained in:
15
.github/workflows/stats.yml
vendored
15
.github/workflows/stats.yml
vendored
@@ -4,12 +4,21 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
types: [opened]
|
types: [opened]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
# Required to post stats as comments.
|
||||||
|
actions: write
|
||||||
|
# Default permission for checking out code.
|
||||||
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
stats:
|
stats:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
contents: read
|
# Check if the PR is from the base repo (not a fork). Only the
|
||||||
pull-requests: write
|
# collaborators have the permission to create a side branch from the base
|
||||||
|
# repo, so this implicitly restricts who can run this job.
|
||||||
|
if: github.event.pull_request.head.repo.fork == false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Run pull request stats
|
- name: Run pull request stats
|
||||||
uses: flowwer-dev/pull-request-stats@v2.11.0
|
uses: flowwer-dev/pull-request-stats@v2.11.0
|
||||||
|
Reference in New Issue
Block a user