Skip to content

Commit 602ae3f

Browse files
feat: make a new issue (#596)
* feat: make a new issue * fix: add the GH_TOKNE * fix: cant sort * fix: give it a name * fix: add the branch * fix: give it permissions * fix: use a different token * fix: release token * fix: cleanup
1 parent 15d869d commit 602ae3f

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
# yamllint disable rule:line-length
3+
4+
name: Broadcast API changes
5+
6+
on:
7+
push:
8+
branches: ['main']
9+
paths: ['codecovcli_commands']
10+
11+
jobs:
12+
run:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
issues: write
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Install GitHub CLI
22+
uses: dev-hanz-ops/[email protected]
23+
24+
- name: Open issue on wrapper
25+
run: |
26+
gh issue create -R codecov/wrapper -t 'New change on CLI' -b "$(gh pr diff $BRANCH)"
27+
env:
28+
BRANCH: ${{ github.head_ref }}
29+
GH_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }}

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Run command_dump
4141
run: |
4242
python command_dump.py
43-
- name: Detect changes
43+
- name: Detect changes on commit
4444
run: |
4545
if [ -n "$(git diff codecovcli_commands)" ]; then
4646
echo "Please run `python command_dump.py` before submitting, or install the hooks"

0 commit comments

Comments
 (0)