Skip to content

Commit

Permalink
Merge branch 'main' into anonymous-newsletter
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo authored Apr 20, 2023
2 parents d947477 + 4860b43 commit 55b2b66
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ updates:
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "build(deps): "
prefix-development: "build(dev-deps): "
20 changes: 20 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
if: github.repository == 'mdn/rumba'
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
with:
release-type: rust
package-name: release-please-action
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rumba"
version = "0.0.1"
version = "1.0.0"
edition = "2021"

[lib]
Expand Down Expand Up @@ -72,4 +72,4 @@ basket = "0.0.5"
[dev-dependencies]
stubr = "0.5"
stubr-attributes = "0.5"
assert-json-diff = "2"
assert-json-diff = "2"
9 changes: 2 additions & 7 deletions src/api/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,15 @@ struct Document {
highlight: elastic::ResponseHighlight,
}

#[derive(Deserialize)]
#[derive(Deserialize, Default)]
#[serde(rename_all = "lowercase")]
enum Sort {
#[default]
Best,
Relevance,
Popularity,
}

impl Default for Sort {
fn default() -> Self {
Sort::Best
}
}

#[derive(Deserialize)]
struct Params {
q: String,
Expand Down

0 comments on commit 55b2b66

Please sign in to comment.