Jason Song
f114a9c80a
fix: ctx for NewCommitStatus
2023-01-09 14:01:09 +08:00
Jason Song
f414fd6141
Merge branch 'main' into feature/bots
2023-01-09 12:17:08 +08:00
Jason Song
7adc2de464
Use context parameter in models/git ( #22367 )
...
After #22362 , we can feel free to use transactions without
`db.DefaultContext`.
And there are still lots of models using `db.DefaultContext`, I think we
should refactor them carefully and one by one.
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-01-09 11:50:54 +08:00
Jason Song
5e9d4f7b9c
Merge branch 'main' into feature/bots
2023-01-09 10:42:38 +08:00
delvh
b878155b87
Replace can not
with cannot
( #22372 )
...
Fixes #22371 .
2023-01-08 18:25:28 +00:00
Lunny Xiao
dfd2db5695
Fix set system setting failure once it cached ( #22333 )
...
Unfortunately, #22295 introduced a bug that when set a cached system
setting, it will not affect.
This PR make sure to remove the cache key when updating a system
setting.
Fix #22332
2023-01-08 21:22:41 +08:00
dependabot[bot]
bdf8c80f41
Bump json5 from 1.0.1 to 1.0.2 ( #22365 )
...
Bumps [json5](https://github.com/json5/json5 ) from 1.0.1 to 1.0.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/json5/json5/releases ">json5's
releases</a>.</em></p>
<blockquote>
<h2>v1.0.2</h2>
<ul>
<li>Fix: Properties with the name <code>__proto__</code> are added to
objects and arrays. (<a
href="https://github-redirect.dependabot.com/json5/json5/issues/199 ">#199</a>)
This also fixes a prototype pollution vulnerability reported by Jonathan
Gregson! (<a
href="https://github-redirect.dependabot.com/json5/json5/issues/295 ">#295</a>).
This has been backported to v1. (<a
href="https://github-redirect.dependabot.com/json5/json5/issues/298 ">#298</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/json5/json5/blob/main/CHANGELOG.md ">json5's
changelog</a>.</em></p>
<blockquote>
<h3>Unreleased [<a
href="https://github.com/json5/json5/tree/main ">code</a>, <a
href="https://github.com/json5/json5/compare/v2.2.3...HEAD ">diff</a>]</h3>
<h3>v2.2.3 [<a
href="https://github.com/json5/json5/tree/v2.2.3 ">code</a>, <a
href="https://github.com/json5/json5/compare/v2.2.2...v2.2.3 ">diff</a>]</h3>
<ul>
<li>Fix: json5@2.2.3 is now the 'latest' release according to npm
instead of
v1.0.2. (<a
href="https://github-redirect.dependabot.com/json5/json5/issues/299 ">#299</a>)</li>
</ul>
<h3>v2.2.2 [<a
href="https://github.com/json5/json5/tree/v2.2.2 ">code</a>, <a
href="https://github.com/json5/json5/compare/v2.2.1...v2.2.2 ">diff</a>]</h3>
<ul>
<li>Fix: Properties with the name <code>__proto__</code> are added to
objects and arrays.
(<a
href="https://github-redirect.dependabot.com/json5/json5/issues/199 ">#199</a>)
This also fixes a prototype pollution vulnerability reported by
Jonathan Gregson! (<a
href="https://github-redirect.dependabot.com/json5/json5/issues/295 ">#295</a>).</li>
</ul>
<h3>v2.2.1 [<a
href="https://github.com/json5/json5/tree/v2.2.1 ">code</a>, <a
href="https://github.com/json5/json5/compare/v2.2.0...v2.2.1 ">diff</a>]</h3>
<ul>
<li>Fix: Removed dependence on minimist to patch CVE-2021-44906. (<a
href="https://github-redirect.dependabot.com/json5/json5/issues/266 ">#266</a>)</li>
</ul>
<h3>v2.2.0 [<a
href="https://github.com/json5/json5/tree/v2.2.0 ">code</a>, <a
href="https://github.com/json5/json5/compare/v2.1.3...v2.2.0 ">diff</a>]</h3>
<ul>
<li>New: Accurate and documented TypeScript declarations are now
included. There
is no need to install <code>@types/json5</code>. (<a
href="https://github-redirect.dependabot.com/json5/json5/issues/236 ">#236</a>,
<a
href="https://github-redirect.dependabot.com/json5/json5/issues/244 ">#244</a>)</li>
</ul>
<h3>v2.1.3 [<a
href="https://github.com/json5/json5/tree/v2.1.3 ">code</a>, <a
href="https://github.com/json5/json5/compare/v2.1.2...v2.1.3 ">diff</a>]</h3>
<ul>
<li>Fix: An out of memory bug when parsing numbers has been fixed. (<a
href="https://github-redirect.dependabot.com/json5/json5/issues/228 ">#228</a>,
<a
href="https://github-redirect.dependabot.com/json5/json5/issues/229 ">#229</a>)</li>
</ul>
<h3>v2.1.2 [<a
href="https://github.com/json5/json5/tree/v2.1.2 ">code</a>, <a
href="https://github.com/json5/json5/compare/v2.1.1...v2.1.2 ">diff</a>]</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="a62db1e51e
"><code>a62db1e</code></a>
1.0.2</li>
<li><a
href="e0c23fe458
"><code>e0c23fe</code></a>
docs: update CHANGELOG for v1.0.2</li>
<li><a
href="62a6540840
"><code>62a6540</code></a>
fix: add <strong>proto</strong> to objects and arrays</li>
<li>See full diff in <a
href="https://github.com/json5/json5/compare/v1.0.1...v1.0.2 ">compare
view</a></li>
</ul>
</details>
<br />
[](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores )
Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
<details>
<summary>Dependabot commands and options</summary>
<br />
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the
default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as
the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as
the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the
default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/go-gitea/gitea/network/alerts ).
</details>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-08 19:48:00 +08:00
Jason Song
6135359a04
Always reuse transaction ( #22362 )
2023-01-08 09:34:58 +08:00
Jason Song
4b2bf7a512
Merge branch 'main' into feature/bots
2023-01-06 20:47:41 +08:00
Jason Song
21db670907
fix: use webhook_module
2023-01-06 20:46:36 +08:00
crystal
d42b52fcfa
make /{username}.png redirect to user/org avatar ( #22356 )
...
fix #22355
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-01-06 13:44:02 +01:00
Jason Song
4c65c1d8b0
Merge branch 'main' into feature/bots
2023-01-06 20:32:23 +08:00
Jason Song
3dbd2d942b
Remove old HookEventType ( #22358 )
...
Supplement to #22256 .
2023-01-06 19:49:14 +08:00
Jason Song
4ebd096b86
fix: remove spaces between labels
2023-01-06 18:13:56 +08:00
Jason Song
e249b39224
chore: rename to actions.runners.last_online
2023-01-06 18:08:43 +08:00
Jason Song
748fd3d085
chore: add init.go to actions
2023-01-06 18:06:12 +08:00
Jason Song
4b1d3c75d5
fix: ignore events caused by actions for actions notifier only
2023-01-06 17:21:07 +08:00
Jason Song
fc1d24368e
chore: remove fetchMockData
2023-01-06 16:32:57 +08:00
Jason Song
aba1c03fee
feat: improve listing runs
2023-01-06 16:29:10 +08:00
Jason Song
6f6bfc5d51
feat: more translations
2023-01-06 15:55:47 +08:00
Jason Song
e61d655929
feat: show no runners available
2023-01-06 15:33:02 +08:00
Jason Song
7a4d4f0edf
chore: use new dropdown icon
2023-01-06 15:15:30 +08:00
Jason Song
243b769754
feat: locale status for runner
2023-01-06 15:07:44 +08:00
Jason Song
91dfef0425
feat: LocaleString for status
2023-01-06 15:02:03 +08:00
Jason Song
a6f8f10670
fix: add docs link for runner
2023-01-06 14:41:07 +08:00
Jason Song
4bc6d73b1d
fix: split and trim labels
2023-01-06 14:28:16 +08:00
Jason Song
05c08ec246
chore: format runner id
2023-01-06 14:12:14 +08:00
Jason Song
326ae5d442
fix: keep original commit message
2023-01-06 13:51:40 +08:00
Jason Song
ff75cbd81d
chore: fix log
2023-01-06 13:47:45 +08:00
Jason Song
9bd3ea49f4
fix: map to DEFAULT_ACTIONS_URL
2023-01-06 10:50:01 +08:00
Jason Song
d7aa501ba1
fix: NumClosedActionRuns
2023-01-06 09:57:36 +08:00
Jason Song
a4df058d75
Merge branch 'main' into feature/bots
2023-01-06 09:37:44 +08:00
KN4CK3R
f74293f9c2
Fix unstable emoji sort ( #22346 )
...
Without the second sort every generate run produces a different result.
2023-01-05 13:58:51 +02:00
Jason Song
49e307b968
fix: show never when LastOnline is 0
2023-01-05 18:24:16 +08:00
Jason Song
2ac8410bab
fix: translation keys
2023-01-05 18:24:16 +08:00
Jason Song
63e82382fc
Update models/actions/task_step.go
...
Co-authored-by: ChristopherHX <christopher.homberger@web.de>
2023-01-05 18:05:07 +08:00
Jason Song
22496aa57e
Update models/actions/task.go
...
Co-authored-by: ChristopherHX <christopher.homberger@web.de>
2023-01-05 18:04:23 +08:00
Jason Song
730af9be50
fix: add missing translations
2023-01-05 17:59:21 +08:00
Jason Song
92b117f930
test: fix import cycle in dbfs test
2023-01-05 17:23:13 +08:00
Jason Song
b1013a4770
refactor: shard runner templates
2023-01-05 16:40:20 +08:00
Jason Song
a4b2cf2426
feat: calculate duration
2023-01-05 16:19:08 +08:00
Jason Song
c510fdbcf1
chore: simplify IsActions
2023-01-05 16:03:21 +08:00
Jason Song
eee662442a
fix: simplify deleting
2023-01-05 15:40:19 +08:00
Jason Song
c3d7f15513
chore: remove CreateRunnerForm
2023-01-05 15:20:02 +08:00
Jason Song
08383bdcbc
chore: simplify truncateContent
2023-01-05 15:16:14 +08:00
Jason Song
4bb8604180
chore: add comments
2023-01-05 14:58:49 +08:00
Jason Song
e8dbe827cb
fix: use %w
2023-01-05 14:45:40 +08:00
Jason Song
bb3eb5efdc
fix: use ctx
2023-01-05 14:44:09 +08:00
Jason Song
ede9a5f2fa
chore: add comments
2023-01-05 14:43:07 +08:00
Jason Song
60173297aa
chore: lint codes
2023-01-05 12:14:56 +08:00