new deploy: 2023-09-19T00:14:15+00:00

This commit is contained in:
Aravinth Manivannan 2023-09-19 00:14:15 +00:00 committed by realaravinth
parent c8e7c93417
commit 03c2b00008
7 changed files with 134 additions and 148 deletions

View file

@ -95,7 +95,7 @@
<section class="tsd-panel tsd-member"><a id="findMentionsInIssue" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>find<wbr/>Mentions<wbr/>In<wbr/>Issue</span><a href="#findMentionsInIssue" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
<li class="tsd-signature tsd-anchor-link" id="findMentionsInIssue.findMentionsInIssue-1"><span class="tsd-kind-call-signature">find<wbr/>Mentions<wbr/>In<wbr/>Issue</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">owner</span>, <span class="tsd-kind-parameter">repo</span>, <span class="tsd-kind-parameter">id</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span><a href="#findMentionsInIssue.findMentionsInIssue-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-signature tsd-anchor-link" id="findMentionsInIssue.findMentionsInIssue-1"><span class="tsd-kind-call-signature">find<wbr/>Mentions<wbr/>In<wbr/>Issue</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">issue</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span><a href="#findMentionsInIssue.findMentionsInIssue-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Check if logged in user is mentioned in the issue</p>
</div>
@ -103,11 +103,7 @@
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5><span class="tsd-kind-parameter">owner</span>: <span class="tsd-signature-type">string</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">repo</span>: <span class="tsd-signature-type">string</span></h5></li>
<li>
<h5><span class="tsd-kind-parameter">id</span>: <span class="tsd-signature-type">number</span></h5></li></ul></div>
<h5><span class="tsd-kind-parameter">issue</span>: <span class="tsd-signature-type ">Issue</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
@ -127,7 +123,7 @@
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type ">Issue</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in index.ts:215</li></ul></aside></li></ul></section>
<li>Defined in index.ts:213</li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="getIssue" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>get<wbr/>Issue</span><a href="#getIssue" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
@ -156,7 +152,7 @@
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type ">Issue</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in index.ts:184</li></ul></aside></li></ul></section>
<li>Defined in index.ts:182</li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="getNotificationThread" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>get<wbr/>Notification<wbr/>Thread</span><a href="#getNotificationThread" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
@ -268,7 +264,7 @@
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in index.ts:163</li></ul></aside></li></ul></section>
<li>Defined in index.ts:161</li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="markNotificationReadForRepo" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>mark<wbr/>Notification<wbr/>Read<wbr/>For<wbr/>Repo</span><a href="#markNotificationReadForRepo" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
@ -292,7 +288,7 @@
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources">
<ul>
<li>Defined in index.ts:173</li></ul></aside></li></ul></section>
<li>Defined in index.ts:171</li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="setTokenAuth" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>set<wbr/>Token<wbr/>Auth</span><a href="#setTokenAuth" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1695081220007" clover="3.2.0">
<project timestamp="1695081220008" name="All files">
<metrics statements="80" coveredstatements="69" conditionals="15" coveredconditionals="10" methods="20" coveredmethods="18" elements="115" coveredelements="97" complexity="0" loc="80" ncloc="80" packages="1" files="2" classes="2"/>
<coverage generated="1695082449641" clover="3.2.0">
<project timestamp="1695082449641" name="All files">
<metrics statements="78" coveredstatements="67" conditionals="15" coveredconditionals="10" methods="20" coveredmethods="18" elements="113" coveredelements="95" complexity="0" loc="78" ncloc="78" packages="1" files="2" classes="2"/>
<file name="auth.ts" path="/woodpecker/src/git.batsense.net/realaravinth/forgejo-notifications-core/src/auth.ts">
<metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
<line num="8" count="1" type="stmt"/>
@ -9,7 +9,7 @@
<line num="16" count="1" type="stmt"/>
</file>
<file name="index.ts" path="/woodpecker/src/git.batsense.net/realaravinth/forgejo-notifications-core/src/index.ts">
<metrics statements="77" coveredstatements="66" conditionals="15" coveredconditionals="10" methods="18" coveredmethods="16"/>
<metrics statements="75" coveredstatements="64" conditionals="15" coveredconditionals="10" methods="18" coveredmethods="16"/>
<line num="5" count="1" type="stmt"/>
<line num="22" count="1" type="stmt"/>
<line num="30" count="1" type="stmt"/>
@ -36,57 +36,55 @@
<line num="107" count="1" type="stmt"/>
<line num="114" count="5" type="stmt"/>
<line num="121" count="5" type="stmt"/>
<line num="122" count="5" type="stmt"/>
<line num="123" count="5" type="stmt"/>
<line num="125" count="5" type="stmt"/>
<line num="126" count="12" type="stmt"/>
<line num="129" count="5" type="stmt"/>
<line num="131" count="5" type="cond" truecount="1" falsecount="0"/>
<line num="132" count="5" type="stmt"/>
<line num="133" count="5" type="stmt"/>
<line num="136" count="5" type="stmt"/>
<line num="137" count="2" type="cond" truecount="1" falsecount="0"/>
<line num="138" count="2" type="stmt"/>
<line num="139" count="2" type="stmt"/>
<line num="141" count="0" type="cond" truecount="0" falsecount="1"/>
<line num="142" count="0" type="cond" truecount="0" falsecount="1"/>
<line num="143" count="0" type="stmt"/>
<line num="144" count="0" type="stmt"/>
<line num="149" count="5" type="stmt"/>
<line num="124" count="12" type="stmt"/>
<line num="127" count="5" type="stmt"/>
<line num="129" count="5" type="cond" truecount="1" falsecount="0"/>
<line num="130" count="5" type="stmt"/>
<line num="131" count="5" type="stmt"/>
<line num="134" count="5" type="stmt"/>
<line num="135" count="2" type="cond" truecount="1" falsecount="0"/>
<line num="136" count="2" type="stmt"/>
<line num="137" count="2" type="stmt"/>
<line num="139" count="0" type="cond" truecount="0" falsecount="1"/>
<line num="140" count="0" type="cond" truecount="0" falsecount="1"/>
<line num="141" count="0" type="stmt"/>
<line num="142" count="0" type="stmt"/>
<line num="147" count="5" type="stmt"/>
<line num="148" count="5" type="stmt"/>
<line num="149" count="12" type="cond" truecount="1" falsecount="0"/>
<line num="150" count="5" type="stmt"/>
<line num="151" count="12" type="cond" truecount="1" falsecount="0"/>
<line num="152" count="5" type="stmt"/>
<line num="153" count="5" type="stmt"/>
<line num="156" count="5" type="stmt"/>
<line num="164" count="0" type="stmt"/>
<line num="165" count="0" type="stmt"/>
<line num="174" count="0" type="stmt"/>
<line num="175" count="0" type="stmt"/>
<line num="185" count="7" type="stmt"/>
<line num="186" count="7" type="stmt"/>
<line num="191" count="7" type="stmt"/>
<line num="193" count="7" type="cond" truecount="1" falsecount="0"/>
<line num="194" count="7" type="stmt"/>
<line num="197" count="7" type="cond" truecount="1" falsecount="0"/>
<line num="198" count="7" type="cond" truecount="1" falsecount="0"/>
<line num="199" count="7" type="stmt"/>
<line num="203" count="7" type="cond" truecount="0" falsecount="1"/>
<line num="204" count="0" type="cond" truecount="0" falsecount="1"/>
<line num="205" count="0" type="stmt"/>
<line num="209" count="7" type="stmt"/>
<line num="218" count="6" type="stmt"/>
<line num="219" count="6" type="stmt"/>
<line num="151" count="5" type="stmt"/>
<line num="154" count="5" type="stmt"/>
<line num="162" count="0" type="stmt"/>
<line num="163" count="0" type="stmt"/>
<line num="172" count="0" type="stmt"/>
<line num="173" count="0" type="stmt"/>
<line num="183" count="7" type="stmt"/>
<line num="184" count="7" type="stmt"/>
<line num="189" count="7" type="stmt"/>
<line num="191" count="7" type="cond" truecount="1" falsecount="0"/>
<line num="192" count="7" type="stmt"/>
<line num="195" count="7" type="cond" truecount="1" falsecount="0"/>
<line num="196" count="7" type="cond" truecount="1" falsecount="0"/>
<line num="197" count="7" type="stmt"/>
<line num="201" count="7" type="cond" truecount="0" falsecount="1"/>
<line num="202" count="0" type="cond" truecount="0" falsecount="1"/>
<line num="203" count="0" type="stmt"/>
<line num="207" count="7" type="stmt"/>
<line num="216" count="6" type="stmt"/>
<line num="217" count="6" type="stmt"/>
<line num="222" count="6" type="stmt"/>
<line num="224" count="6" type="stmt"/>
<line num="226" count="6" type="stmt"/>
<line num="227" count="4" type="cond" truecount="1" falsecount="0"/>
<line num="228" count="4" type="stmt"/>
<line num="231" count="4" type="cond" truecount="1" falsecount="0"/>
<line num="232" count="4" type="cond" truecount="1" falsecount="0"/>
<line num="233" count="4" type="stmt"/>
<line num="236" count="4" type="stmt"/>
<line num="225" count="4" type="cond" truecount="1" falsecount="0"/>
<line num="226" count="4" type="stmt"/>
<line num="229" count="4" type="cond" truecount="1" falsecount="0"/>
<line num="230" count="4" type="cond" truecount="1" falsecount="0"/>
<line num="231" count="4" type="stmt"/>
<line num="234" count="4" type="stmt"/>
<line num="237" count="6" type="stmt"/>
<line num="239" count="6" type="stmt"/>
<line num="241" count="6" type="stmt"/>
<line num="245" count="1" type="stmt"/>
<line num="243" count="1" type="stmt"/>
</file>
</project>
</coverage>

File diff suppressed because one or more lines are too long

View file

@ -118,7 +118,7 @@ export default Auth;
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-09-18T23:53:40.000Z
at 2023-09-19T00:14:09.634Z
</div>
<script src="prettify.js"></script>
<script>

View file

@ -23,9 +23,9 @@
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">86.58% </span>
<span class="strong">86.25% </span>
<span class="quiet">Statements</span>
<span class='fraction'>71/82</span>
<span class='fraction'>69/80</span>
</div>
@ -44,9 +44,9 @@
<div class='fl pad1y space-right2'>
<span class="strong">86.25% </span>
<span class="strong">85.89% </span>
<span class="quiet">Lines</span>
<span class='fraction'>69/80</span>
<span class='fraction'>67/78</span>
</div>
@ -95,17 +95,17 @@
<tr>
<td class="file high" data-value="index.ts"><a href="index.ts.html">index.ts</a></td>
<td data-value="85.89" class="pic high">
<td data-value="85.52" class="pic high">
<div class="chart"><div class="cover-fill" style="width: 85%"></div><div class="cover-empty" style="width: 15%"></div></div>
</td>
<td data-value="85.89" class="pct high">85.89%</td>
<td data-value="78" class="abs high">67/78</td>
<td data-value="85.52" class="pct high">85.52%</td>
<td data-value="76" class="abs high">65/76</td>
<td data-value="66.66" class="pct medium">66.66%</td>
<td data-value="15" class="abs medium">10/15</td>
<td data-value="88.88" class="pct high">88.88%</td>
<td data-value="18" class="abs high">16/18</td>
<td data-value="85.71" class="pct high">85.71%</td>
<td data-value="77" class="abs high">66/77</td>
<td data-value="85.33" class="pct high">85.33%</td>
<td data-value="75" class="abs high">64/75</td>
</tr>
</tbody>
@ -116,7 +116,7 @@
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-09-18T23:53:40.000Z
at 2023-09-19T00:14:09.634Z
</div>
<script src="prettify.js"></script>
<script>

View file

@ -23,9 +23,9 @@
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">85.89% </span>
<span class="strong">85.52% </span>
<span class="quiet">Statements</span>
<span class='fraction'>67/78</span>
<span class='fraction'>65/76</span>
</div>
@ -44,9 +44,9 @@
<div class='fl pad1y space-right2'>
<span class="strong">85.71% </span>
<span class="strong">85.33% </span>
<span class="quiet">Lines</span>
<span class='fraction'>66/77</span>
<span class='fraction'>64/75</span>
</div>
@ -307,9 +307,7 @@
<a name='L242'></a><a href='#L242'>242</a>
<a name='L243'></a><a href='#L243'>243</a>
<a name='L244'></a><a href='#L244'>244</a>
<a name='L245'></a><a href='#L245'>245</a>
<a name='L246'></a><a href='#L246'>246</a>
<a name='L247'></a><a href='#L247'>247</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<a name='L245'></a><a href='#L245'>245</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
@ -430,8 +428,6 @@
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">5x</span>
<span class="cline-any cline-yes">5x</span>
<span class="cline-any cline-yes">5x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">5x</span>
<span class="cline-any cline-yes">12x</span>
@ -674,9 +670,7 @@ class Forgejo {
/**
* Check if logged in user is mentioned in the issue
*/
async findMentionsInIssue(owner: string, repo: string, id: number) {
let issue = await this.getIssue(owner, repo, id);
issue = await this.getCommentsForIssue(issue);
async findMentionsInIssue(issue: Issue) {
let unreadTime = this.lastReadTime(issue);
&nbsp;
const mentionUtil = (str: string): boolean =&gt; {
@ -808,7 +802,7 @@ export default Forgejo;
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
at 2023-09-18T23:53:40.000Z
at 2023-09-19T00:14:09.634Z
</div>
<script src="prettify.js"></script>
<script>

View file

@ -26,14 +26,14 @@ FN:84,(anonymous_8)
FN:100,(anonymous_9)
FN:113,(anonymous_10)
FN:120,(anonymous_11)
FN:125,(anonymous_12)
FN:136,(anonymous_13)
FN:150,(anonymous_14)
FN:163,(anonymous_15)
FN:173,(anonymous_16)
FN:184,(anonymous_17)
FN:215,(anonymous_18)
FN:226,(anonymous_19)
FN:123,(anonymous_12)
FN:134,(anonymous_13)
FN:148,(anonymous_14)
FN:161,(anonymous_15)
FN:171,(anonymous_16)
FN:182,(anonymous_17)
FN:213,(anonymous_18)
FN:224,(anonymous_19)
FNF:18
FNH:16
FNDA:1,(anonymous_2)
@ -80,74 +80,72 @@ DA:102,1
DA:107,1
DA:114,5
DA:121,5
DA:122,5
DA:123,5
DA:125,5
DA:126,12
DA:124,12
DA:127,5
DA:129,5
DA:130,5
DA:131,5
DA:132,5
DA:133,5
DA:136,5
DA:134,5
DA:135,2
DA:136,2
DA:137,2
DA:138,2
DA:139,2
DA:139,0
DA:140,0
DA:141,0
DA:142,0
DA:143,0
DA:144,0
DA:149,5
DA:147,5
DA:148,5
DA:149,12
DA:150,5
DA:151,12
DA:152,5
DA:153,5
DA:156,5
DA:164,0
DA:165,0
DA:174,0
DA:175,0
DA:185,7
DA:186,7
DA:151,5
DA:154,5
DA:162,0
DA:163,0
DA:172,0
DA:173,0
DA:183,7
DA:184,7
DA:189,7
DA:191,7
DA:193,7
DA:194,7
DA:192,7
DA:195,7
DA:196,7
DA:197,7
DA:198,7
DA:199,7
DA:203,7
DA:204,0
DA:205,0
DA:209,7
DA:218,6
DA:219,6
DA:201,7
DA:202,0
DA:203,0
DA:207,7
DA:216,6
DA:217,6
DA:222,6
DA:224,6
DA:226,6
DA:227,4
DA:228,4
DA:225,4
DA:226,4
DA:229,4
DA:230,4
DA:231,4
DA:232,4
DA:233,4
DA:236,4
DA:234,4
DA:237,6
DA:239,6
DA:241,6
DA:245,1
LF:77
LH:66
DA:243,1
LF:75
LH:64
BRDA:39,0,0,22
BRDA:39,0,1,0
BRDA:131,1,0,5
BRDA:137,2,0,2
BRDA:141,3,0,0
BRDA:142,4,0,0
BRDA:151,5,0,5
BRDA:193,6,0,7
BRDA:197,7,0,7
BRDA:198,8,0,7
BRDA:203,9,0,0
BRDA:204,10,0,0
BRDA:227,11,0,4
BRDA:231,12,0,4
BRDA:232,13,0,4
BRDA:129,1,0,5
BRDA:135,2,0,2
BRDA:139,3,0,0
BRDA:140,4,0,0
BRDA:149,5,0,5
BRDA:191,6,0,7
BRDA:195,7,0,7
BRDA:196,8,0,7
BRDA:201,9,0,0
BRDA:202,10,0,0
BRDA:225,11,0,4
BRDA:229,12,0,4
BRDA:230,13,0,4
BRF:15
BRH:10
end_of_record