mirror of
https://github.com/codecov/codecov-action.git
synced 2026-03-29 01:15:09 +00:00
Compare commits
7 Commits
release/wr
...
th/do-not-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc5663ec8d | ||
|
|
7f49fedfd5 | ||
|
|
038c89eb32 | ||
|
|
3717491f16 | ||
|
|
78f3eea7c7 | ||
|
|
5cc3f56186 | ||
|
|
08502218f2 |
15
CHANGELOG.md
15
CHANGELOG.md
@@ -1,16 +1,3 @@
|
|||||||
## v5.0.3
|
|
||||||
### What's Changed
|
|
||||||
* fix: update OIDC audience by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1675
|
|
||||||
* fix: use double-quotes for OIDC by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1669
|
|
||||||
* fix: prevent always setting tokenless to be true by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1673
|
|
||||||
* fix: update CHANGELOG and automate by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1674
|
|
||||||
* fix: bump to v5 and update README by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1655
|
|
||||||
* build(deps): bump github/codeql-action from 3.27.0 to 3.27.4 by @app/dependabot in https://github.com/codecov/codecov-action/pull/1665
|
|
||||||
* fix: typo in `inputs.disable_safe_directory` by @mkroening in https://github.com/codecov/codecov-action/pull/1666
|
|
||||||
|
|
||||||
|
|
||||||
**Full Changelog**: https://github.com/codecov/codecov-action/compare/v5.0.2..v5.0.3
|
|
||||||
|
|
||||||
## v5.0.2
|
## v5.0.2
|
||||||
### What's Changed
|
### What's Changed
|
||||||
* fix: override commit and pr values for PR cases by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1657
|
* fix: override commit and pr values for PR cases by @thomasrockhu-codecov in https://github.com/codecov/codecov-action/pull/1657
|
||||||
@@ -948,4 +935,4 @@ for the full list.
|
|||||||
### Dependencies and Misc
|
### Dependencies and Misc
|
||||||
- #166 Bump requestretry from 4.1.1 to 4.1.2
|
- #166 Bump requestretry from 4.1.1 to 4.1.2
|
||||||
- #169 Bump typescript from 4.0.5 to 4.1.2
|
- #169 Bump typescript from 4.0.5 to 4.1.2
|
||||||
- #178 Bump @types/jest from 26.0.15 to 26.0.19
|
- #178 Bump @types/jest from 26.0.15 to 26.0.19
|
||||||
|
|||||||
@@ -154,11 +154,6 @@ branding:
|
|||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
- name: Action version
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
CC_ACTION_VERSION=$(cat ${GITHUB_ACTION_PATH}/src/version | grep 'CODECOV_ACTION_VERSION=' | cut -d\" -f2)
|
|
||||||
echo -e "\033[0;32m==>\033[0m Running Action version $CC_ACTION_VERSION"
|
|
||||||
- name: Set safe directory
|
- name: Set safe directory
|
||||||
if: ${{ inputs.disable_safe_directory != 'true' }}
|
if: ${{ inputs.disable_safe_directory != 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -176,7 +171,7 @@ runs:
|
|||||||
else
|
else
|
||||||
if [ -n ${{ inputs.token }} ];
|
if [ -n ${{ inputs.token }} ];
|
||||||
then
|
then
|
||||||
CC_TOKEN=$(echo ${{ inputs.token }} | tr -d '\n')
|
CC_TOKEN=${{ inputs.token }}
|
||||||
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
|
echo "CC_TOKEN=$CC_TOKEN" >> "$GITHUB_ENV"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
19
changelog.py
19
changelog.py
@@ -15,14 +15,14 @@ def update_changelog():
|
|||||||
if previous == version:
|
if previous == version:
|
||||||
print(f"No changes to version {version}")
|
print(f"No changes to version {version}")
|
||||||
return
|
return
|
||||||
print(f"Adding logs from {previous}..v{version}")
|
print(f"Adding logs from {previous}..{version}")
|
||||||
|
|
||||||
raw_current_branch = subprocess.run([
|
raw_current_branch = subprocess.run([
|
||||||
"git",
|
"git",
|
||||||
"branch",
|
"branch",
|
||||||
"--show-current",
|
"--show-current",
|
||||||
], capture_output=True)
|
], capture_output=True)
|
||||||
current_branch = raw_current_branch.stdout.decode('utf-8').strip()
|
current_branch = raw_current_branch.stdout.decode('utf-8')
|
||||||
|
|
||||||
raw_commits = subprocess.run([
|
raw_commits = subprocess.run([
|
||||||
"git",
|
"git",
|
||||||
@@ -31,12 +31,9 @@ def update_changelog():
|
|||||||
"--oneline",
|
"--oneline",
|
||||||
], capture_output=True)
|
], capture_output=True)
|
||||||
commits = [line[:7] for line in raw_commits.stdout.decode('utf-8').split('\n')]
|
commits = [line[:7] for line in raw_commits.stdout.decode('utf-8').split('\n')]
|
||||||
print(commits)
|
|
||||||
|
|
||||||
prs = set()
|
prs = set()
|
||||||
for commit in commits:
|
for commit in commits:
|
||||||
if not commit:
|
|
||||||
continue
|
|
||||||
commit_output = subprocess.run([
|
commit_output = subprocess.run([
|
||||||
'gh',
|
'gh',
|
||||||
'pr',
|
'pr',
|
||||||
@@ -45,16 +42,8 @@ def update_changelog():
|
|||||||
'author,number,title,url',
|
'author,number,title,url',
|
||||||
'--search',
|
'--search',
|
||||||
f'"{commit}"',
|
f'"{commit}"',
|
||||||
'--state',
|
|
||||||
'merged',
|
|
||||||
], capture_output=True)
|
], capture_output=True)
|
||||||
|
commit_details = json.loads(commit_output.stdout.decode('utf-8'))[0]
|
||||||
commit_details = commit_output.stdout.decode('utf-8')
|
|
||||||
if not commit_details or not json.loads(commit_details):
|
|
||||||
continue
|
|
||||||
commit_details = json.loads(commit_details)[0]
|
|
||||||
|
|
||||||
|
|
||||||
if not commit_details['number']:
|
if not commit_details['number']:
|
||||||
continue
|
continue
|
||||||
if commit_details['number'] in prs:
|
if commit_details['number'] in prs:
|
||||||
@@ -63,7 +52,7 @@ def update_changelog():
|
|||||||
changelog.append(f"* {commit_details['title']} by @{commit_details['author']['login']} in {commit_details['url']}")
|
changelog.append(f"* {commit_details['title']} by @{commit_details['author']['login']} in {commit_details['url']}")
|
||||||
|
|
||||||
changelog.append('\n')
|
changelog.append('\n')
|
||||||
changelog.append(f"**Full Changelog**: https://github.com/codecov/codecov-action/compare/{previous}..v{version}\n")
|
changelog.append(f"**Full Changelog**: https://github.com/codecov/codecov-action/compare/{previous}..{version}\n")
|
||||||
|
|
||||||
with open('CHANGELOG.md', 'r') as f:
|
with open('CHANGELOG.md', 'r') as f:
|
||||||
for line in f:
|
for line in f:
|
||||||
|
|||||||
@@ -9,5 +9,3 @@ git diff --cached --name-only | if grep --quiet "src/version"
|
|||||||
then
|
then
|
||||||
python changelog.py
|
python changelog.py
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git add CHANGELOG.md
|
|
||||||
|
|||||||
Submodule src/scripts updated: 21e5116d8e...25f50b4c5b
@@ -1 +1 @@
|
|||||||
CODECOV_ACTION_VERSION="5.0.3"
|
CODECOV_ACTION_VERSION="5.0.2"
|
||||||
|
|||||||
Reference in New Issue
Block a user