Add missing properties in activity plugin mocks

This commit is contained in:
lowlighter
2021-01-09 20:11:14 +01:00
parent ea245b232e
commit c3bcce3b08
2 changed files with 6 additions and 1 deletions

View File

@@ -127,7 +127,7 @@ But there's more with [plugins](https://github.com/lowlighter/metrics/tree/maste
</tr> </tr>
<tr> <tr>
<th><a href="https://github.com/lowlighter/metrics#-habits">💡 Coding Habits plugin</a></th> <th><a href="https://github.com/lowlighter/metrics#-habits">💡 Coding Habits plugin</a></th>
<th><a href="https://github.com/lowlighter/metrics#-activity">📰 Activity plugin</a></th> <th><a href="https://github.com/lowlighter/metrics#-activity">📰 Activity plugin (`🚧 @master`)</a></th>
</tr> </tr>
<tr> <tr>
<td> <td>
@@ -285,7 +285,9 @@ name: Metrics
on: on:
# Schedule updates # Schedule updates
schedule: [{cron: "0 * * * *"}] schedule: [{cron: "0 * * * *"}]
# Lines below let you run workflow manually and on each commit
push: {branches: ["master", "main"]} push: {branches: ["master", "main"]}
workflow_dispatch:
jobs: jobs:
github-metrics: github-metrics:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@@ -705,6 +705,9 @@
action:"opened", action:"opened",
number:5, number:5,
pull_request:{ pull_request:{
user:{
login:"lowlighter",
},
state:"open", state:"open",
title:"Pull request example", title:"Pull request example",
additions:210, additions:210,