Jason Song
0bd9553219
chore: golang lint
2022-11-26 20:14:03 +08:00
silverwind
5f38acd9a0
Fix markdown anchor re-clicking ( #21931 )
...
The hashchange event did not fire on re-click of a active anchor.
Instead, use the click event which always fires.
Fixes: https://github.com/go-gitea/gitea/issues/21680
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
2022-11-26 19:15:44 +08:00
zeripath
d7f12af805
Prevent NPE if trying to restore an already restored deleted branch ( #21940 )
...
If a deleted-branch has already been restored, a request to restore it
again will cause a NPE. This PR adds detection for this case, but also
disables buttons when they're clicked in order to help prevent
accidental repeat requests.
Fix #21930
Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-11-25 20:58:20 +00:00
Meisam
abecf632d2
add rel="me" to org.website link ( #21941 )
...
This lets organizations verify their link on 3rd party websites.
2022-11-25 09:33:37 -06:00
Jason Song
3b119f3d78
chore: npm install --package-lock-only
2022-11-25 22:27:34 +08:00
Jason Song
6af809d0bd
chore: lint front
2022-11-25 22:27:34 +08:00
Jason Song
02fac6b5f0
Merge branch 'main' into feature/bots
2022-11-25 18:20:31 +08:00
Jason Song
378e1f8d01
chore: fix problems caused by rebase
2022-11-25 17:58:34 +08:00
KN4CK3R
7a4f7b35e3
Fix typo in sidebar ( #21934 )
...
Same as #21922
I used the npm file as template which was a bad idea to spot these
casing errors...
2022-11-25 17:52:23 +08:00
Jason Song
295a7f68c8
feat: update job info
2022-11-25 17:48:48 +08:00
Jason Song
1886156329
chore: remove outdated todos
2022-11-25 17:48:48 +08:00
Jason Song
4814a6ad1b
fix: fill more contexts
2022-11-25 17:48:48 +08:00
Lunny Xiao
324d6711da
permission check
2022-11-25 17:48:48 +08:00
Jason Song
fdd3c0434e
feat: add IsForkPullRequest
2022-11-25 17:48:48 +08:00
Jason Song
6ad8bddabf
feat: GetRunningTaskByToken
2022-11-25 17:48:48 +08:00
Jason Song
e346581344
chore: update grpc router path
2022-11-25 17:48:48 +08:00
Jason Song
48f5c152b9
chore: mod tidy
2022-11-25 17:48:48 +08:00
Jason Song
96d9b729ee
chore: upgrade act
2022-11-25 17:48:48 +08:00
Lunny Xiao
3e8de17db3
permission
2022-11-25 17:48:48 +08:00
Jason Song
d17a0b13f1
chore: use bots-proto-go v0.1.0
2022-11-25 17:48:48 +08:00
Jason Song
ea1bc1b662
chore: replace with code.gitea.io/bots-proto-go
2022-11-25 17:48:48 +08:00
Lunny Xiao
52b32c37ad
Use a new name for bots
2022-11-25 17:48:48 +08:00
Lunny Xiao
45afa0ee9f
Support most github's sdk
2022-11-25 17:48:48 +08:00
Lunny Xiao
2ecb59c092
rename builds -> bots
2022-11-25 17:48:48 +08:00
Lunny Xiao
c61ac24c1c
Fix bug
2022-11-25 17:48:48 +08:00
Bo-Yi.Wu
5d849cea33
chore(runner): remove update runner status
...
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:48 +08:00
Lunny Xiao
88b0ab89d0
Gitea bot will not fire the events otherwise it may causes a forever loop
2022-11-25 17:48:48 +08:00
Jason Song
736275f0b1
feat: support cancel button
2022-11-25 17:48:48 +08:00
Jason Song
f3a9a25682
fix: remove build view header
2022-11-25 17:48:47 +08:00
Jason Song
5230c7a364
fix: remove debug log
2022-11-25 17:48:47 +08:00
Bo-Yi Wu
797cdfbdb8
chore(runner): return task state.
2022-11-25 17:48:47 +08:00
Jason Song
0f5aab0c1a
chore: remove Result from task and step
2022-11-25 17:48:47 +08:00
Jason Song
dd417a3270
chore: move job emitter to service
2022-11-25 17:48:47 +08:00
Lunny Xiao
f57e6999a2
Remove unused file
2022-11-25 17:48:47 +08:00
Lunny Xiao
f4bbd534b9
Allow gitea bot as trigger user
2022-11-25 17:48:47 +08:00
Lunny Xiao
110072a8d4
Fix log
2022-11-25 17:48:47 +08:00
Lunny Xiao
9a45572ce2
Support bot site
2022-11-25 17:48:47 +08:00
Jason Song
7059cd7265
feat: update runner status
2022-11-25 17:48:47 +08:00
Jason Song
745be45e1b
chore: rename to Init
2022-11-25 17:48:47 +08:00
Jason Song
9b021500b0
feat: ignore bots events of repo with disabled builds
2022-11-25 17:48:47 +08:00
Jason Song
717344007a
chore: remove GetRunnerByToken
2022-11-25 17:48:47 +08:00
Jason Song
0682f0fcc5
chore: reduse log noise
2022-11-25 17:48:47 +08:00
Jason Song
7b2f1f5a91
chore: fix token format
2022-11-25 17:48:47 +08:00
Jason Song
140d57aecb
feat: use runner token hash
2022-11-25 17:48:47 +08:00
Jason Song
94241daaaa
feat: check runner token
2022-11-25 17:48:47 +08:00
Jason Song
9c6476754d
chore: shouldn't import act_runner
2022-11-25 17:48:47 +08:00
Lunny Xiao
fc2c70033a
Add default bot url
2022-11-25 17:48:47 +08:00
Jason Song
1a55d39adc
fix: ignore ErrAlreadyInQueue
2022-11-25 17:48:47 +08:00
Jason Song
5d83ffa658
chore: log updating task
2022-11-25 17:48:47 +08:00
Jason Song
ce39e45cc2
chore: reduce log noise
2022-11-25 17:48:47 +08:00