From a7140f671b403937a6d51939b608f3518968d928 Mon Sep 17 00:00:00 2001 From: Charlie Ozinga Date: Thu, 17 Sep 2020 02:14:30 -0600 Subject: [PATCH] fix: add info cmd and premerge compat Add the 'info' subcommand, better PR handling for premerge checks, and make some minor github workflow changes. --- .github/snippets/matrix.yml | 2 - .github/workflows/pr.yml | 2 - .github/workflows/release.yml | 2 - docs/contributing.md | 24 ++++++++++ src/cli.rs | 56 +++++++++++++++++++++++ src/commands.rs | 39 +++++++++++++++- src/config.rs | 2 - src/git.rs | 85 ++++++++++++++++++++++++----------- src/github.rs | 29 ++++++++---- src/mono.rs | 26 +++++++---- src/output.rs | 57 ++++++++++++++++++----- 11 files changed, 262 insertions(+), 62 deletions(-) diff --git a/.github/snippets/matrix.yml b/.github/snippets/matrix.yml index e882805..093f1c8 100644 --- a/.github/snippets/matrix.yml +++ b/.github/snippets/matrix.yml @@ -5,8 +5,6 @@ value: - name: Find cargo matrix id: find-cargo-matrix run: 'echo "::set-output name=matrix::{\"include\": $(versio -l none info -i 0 -R -N)}"' - - name: debug - run: 'echo "::debug::{\"include\": $(versio -l none info -i 0 -R -N)}"' - name: Find all matrix id: find-all-matrix run: 'echo "::set-output name=matrix::{\"include\": $(versio -l none info -a -R -N)}"' diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b1ba723..f45d9aa 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -21,8 +21,6 @@ jobs: - name: Find cargo matrix id: find-cargo-matrix run: "echo \"::set-output name=matrix::{\\\"include\\\": $(versio -l none info -i 0 -R -N)}\"" - - name: debug - run: "echo \"::debug::{\\\"include\\\": $(versio -l none info -i 0 -R -N)}\"" - name: Find all matrix id: find-all-matrix run: "echo \"::set-output name=matrix::{\\\"include\\\": $(versio -l none info -a -R -N)}\"" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5717a86..ad3c315 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,8 +21,6 @@ jobs: - name: Find cargo matrix id: find-cargo-matrix run: "echo \"::set-output name=matrix::{\\\"include\\\": $(versio -l none info -i 0 -R -N)}\"" - - name: debug - run: "echo \"::debug::{\\\"include\\\": $(versio -l none info -i 0 -R -N)}\"" - name: Find all matrix id: find-all-matrix run: "echo \"::set-output name=matrix::{\\\"include\\\": $(versio -l none info -a -R -N)}\"" diff --git a/docs/contributing.md b/docs/contributing.md index 22b7910..ea6fae2 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -25,6 +25,8 @@ versio │  └─ ... . . . . . . . . src and unit tests ├─ tests │ └─ ... . . . . . . . . integration tests +└─ .github + └─ ... . . . . . . . . GitHub Actions ```