Skip to content

Commit a89d73d

Browse files
authored
Dep/ctfd 3.7.7 (#150)
* chore(deps): update to CTFd 3.7.7 * feat(hints): optional title * feat(hints): add support for domain blacklist in config
1 parent 6466d86 commit a89d73d

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
services:
1616
ctfd:
17-
image: ctfd/ctfd:3.7.6@sha256:8b424090fae7c143768be19454c707ee2f3754d421fef8122dbe42031efee7aa
17+
image: ctfd/ctfd:3.7.7@sha256:9847758cdafc5ab86bdc121353dcf5a27a29ce313587270ee90a71bfbda2b910
1818
ports:
1919
- 8000:8000
2020
steps:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313

1414
Golang client for interacting with [CTFd](https://ctfd.io/).
1515

16-
Last version tested on: [3.7.6](https://github.com/CTFd/CTFd/releases/tag/3.7.6).
16+
Last version tested on: [3.7.7](https://github.com/CTFd/CTFd/releases/tag/3.7.7).

api/configs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type PatchConfigsParams struct {
3535
// Accounts
3636

3737
DomainWhitelist *string `json:"domain_whitelist,omitempty"`
38+
DomainBlacklist *string `json:"domaine_blacklist,omitempty"`
3839
IncorrectSubmissionsPerMin *int `json:"incorrect_submissions_per_min,omitempty"`
3940
NameChanges *bool `json:"name_changes,omitempty"`
4041
NumTeams *int `json:"num_teams,omitempty"`

api/hints.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ func (client *Client) GetHints(params *GetHintsParams, opts ...Option) ([]*Hint,
1919

2020
type PostHintsParams struct {
2121
ChallengeID int `json:"challenge_id"`
22+
Title *string `json:"title,omitempty"`
2223
Content string `json:"content"`
2324
Cost int `json:"cost"`
2425
Requirements Requirements `json:"requirements"`
@@ -42,6 +43,7 @@ func (client *Client) GetHint(id string, opts ...Option) (*Hint, error) {
4243

4344
type PatchHintsParams struct {
4445
ChallengeID int `json:"challenge_id"`
46+
Title *string `json:"title,omitempty"`
4547
Content string `json:"content"`
4648
Cost int `json:"cost"`
4749
Requirements Requirements `json:"requirements"`

api/model.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ type (
6363
Hint struct {
6464
ID int `json:"id"`
6565
HTML *string `json:"html,omitempty"`
66+
Title *string `json:"title,omitempty"`
6667
Content *string `json:"content,omitempty"`
6768
Cost int `json:"cost"`
6869
Type string `json:"type"`

0 commit comments

Comments
 (0)