From e226f5426029316e2dcba59934b795cf7f9b8a38 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 16 Jan 2025 17:48:04 -0300 Subject: [PATCH] feat: make a new issue --- .github/workflows/broadcast_api_changes.yml | 21 +++++++++++++++++++++ .github/workflows/ci.yml | 2 +- codecovcli_commands | 1 + 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/broadcast_api_changes.yml diff --git a/.github/workflows/broadcast_api_changes.yml b/.github/workflows/broadcast_api_changes.yml new file mode 100644 index 00000000..7dd65210 --- /dev/null +++ b/.github/workflows/broadcast_api_changes.yml @@ -0,0 +1,21 @@ +--- +# yamllint disable rule:line-length + +on: + push: + branches: ['main'] + paths: ['codecovcli_commands'] + pull_request: + paths: ['codecovcli_commands'] + +jobs: + run: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install GitHub CLI + uses: dev-hanz-ops/install-gh-cli-action@v0.1.0 + - name: Open issue on wrapper + run: | + gh issue create -R codecov/wrapper -t 'New change on CLI' -b $(gh pr diff codecovcli_commands) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1cecc2e..07587502 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,7 +40,7 @@ jobs: - name: Run command_dump run: | python command_dump.py - - name: Detect changes + - name: Detect changes on commit run: | if [ -n "$(git diff codecovcli_commands)" ]; then echo "Please run `python command_dump.py` before submitting, or install the hooks" diff --git a/codecovcli_commands b/codecovcli_commands index 932cc742..4856a8e3 100644 --- a/codecovcli_commands +++ b/codecovcli_commands @@ -1,3 +1,4 @@ +TEST Usage: codecovcli [OPTIONS] COMMAND [ARGS]... Options: