Skip to content

Commit f68c449

Browse files
Updating submit path and preparing for 0.3.0 release
1 parent 9875e36 commit f68c449

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "doc-previewer"
3-
version = "0.2.0"
3+
version = "0.3.0"
44
edition = "2021"
55
description = "Web service that publishes a preview of a GitHub project documentation."
66
license = "3bsd"

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ Currently only packages for Debian are provided. The package can be installed
6161
using the next command:
6262
6363
```
64-
curl -sLO https://github.com/pandas-dev/github-doc-previewer/releases/download/v0.2.0/doc-previewer_0.2.0-1_amd64.deb \
65-
&& sudo dpkg -i doc-previewer_0.2.0-1_amd64.deb \
66-
&& rm doc-previewer_0.2.0-1_amd64.deb
64+
curl -sLO https://github.com/pandas-dev/github-doc-previewer/releases/download/v0.3.0/doc-previewer_0.3.0-1_amd64.deb \
65+
&& sudo dpkg -i doc-previewer_0.3.0-1_amd64.deb \
66+
&& rm doc-previewer_0.3.0-1_amd64.deb
6767
```
6868

6969
To start the service:

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
id: call-previewer
1515
shell: bash
1616
env:
17-
PREVIEWER_URL: "${{ inputs.previewer-server }}/preview/${{ github.repository }}/${{ github.event.issue.number }}/"
17+
PREVIEWER_URL: "${{ inputs.previewer-server }}/submit/${{ github.repository }}/${{ github.event.issue.number }}/"
1818
ARTIFACT_JOB: ${{ inputs.artifact-job }}
1919
run: |
2020
PREVIEWER_RESPONSE=$(curl -X POST -f "${PREVIEWER_URL}?job=${ARTIFACT_JOB// /%20}")

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct PreviewParams {
2020
///
2121
/// This gets the parameters from the url and adds a job to the queue
2222
/// to be processed by the worker.
23-
#[post("/preview/{github_owner}/{github_repo}/{pull_request_number}/")]
23+
#[post("/submit/{github_owner}/{github_repo}/{pull_request_number}/")]
2424
async fn preview_handler(params: web::Path<(String, String, u64)>,
2525
query_params: web::Query<PreviewParams>,
2626
client: web::Data<Client>,

0 commit comments

Comments
 (0)