diff --git a/.gitignore b/.gitignore index ab951f8..620f8f6 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,8 @@ Cargo.lock # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ + + +# Added by cargo + +/target diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..b7c9d31 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "forgejo-todo-checker" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8e16ba9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM docker.io/rust:1.81.0-bookworm + +WORKDIR /app +COPY Cargo.toml ./ +COPY src/ ./src/ +RUN cargo build --release && mv target/release/forgejo-todo-checker . + +ENTRYPOINT [ "/app/forgejo-todo-checker" ] diff --git a/action.yml b/action.yml deleted file mode 100644 index 36a59e9..0000000 --- a/action.yml +++ /dev/null @@ -1,25 +0,0 @@ -# SPDX-License-Identifier: MIT -name: "Forgejo TODO Checker" -author: "Paul Campbell" -description: | - Checks the source files to TODO and FIXME comments (configurable) that don't have an associated OPEN issue. - -# input: - # none yet - # tags_regex: (TODO|FIXME) - # issue_regex: ( |)(\(|\(#)(?P\d+)(\)) - # token_key: '' - for private repos - # debug: false - -runs: - using: "composite" - steps: - - run: echo "Forgejo TODO Checker" - shell: bash - - uses: actions/checkout@v3 - - id: check - shell: bash - run: | - echo "job runs here" - ls -la - set diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}