Skip to content

Commit

Permalink
Updating submit path and preparing for 0.3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
datapythonista committed Jan 28, 2024
1 parent 9875e36 commit f68c449
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
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.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "doc-previewer"
version = "0.2.0"
version = "0.3.0"
edition = "2021"
description = "Web service that publishes a preview of a GitHub project documentation."
license = "3bsd"
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ Currently only packages for Debian are provided. The package can be installed
using the next command:

```
curl -sLO https://github.com/pandas-dev/github-doc-previewer/releases/download/v0.2.0/doc-previewer_0.2.0-1_amd64.deb \
&& sudo dpkg -i doc-previewer_0.2.0-1_amd64.deb \
&& rm doc-previewer_0.2.0-1_amd64.deb
curl -sLO https://github.com/pandas-dev/github-doc-previewer/releases/download/v0.3.0/doc-previewer_0.3.0-1_amd64.deb \
&& sudo dpkg -i doc-previewer_0.3.0-1_amd64.deb \
&& rm doc-previewer_0.3.0-1_amd64.deb
```

To start the service:
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
id: call-previewer
shell: bash
env:
PREVIEWER_URL: "${{ inputs.previewer-server }}/preview/${{ github.repository }}/${{ github.event.issue.number }}/"
PREVIEWER_URL: "${{ inputs.previewer-server }}/submit/${{ github.repository }}/${{ github.event.issue.number }}/"
ARTIFACT_JOB: ${{ inputs.artifact-job }}
run: |
PREVIEWER_RESPONSE=$(curl -X POST -f "${PREVIEWER_URL}?job=${ARTIFACT_JOB// /%20}")
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ struct PreviewParams {
///
/// This gets the parameters from the url and adds a job to the queue
/// to be processed by the worker.
#[post("/preview/{github_owner}/{github_repo}/{pull_request_number}/")]
#[post("/submit/{github_owner}/{github_repo}/{pull_request_number}/")]
async fn preview_handler(params: web::Path<(String, String, u64)>,
query_params: web::Query<PreviewParams>,
client: web::Data<Client>,
Expand Down

0 comments on commit f68c449

Please sign in to comment.