6
mirror of https://github.com/AllSpiceIO/post-dr-comment.git synced 2025-04-07 05:45:09 +00:00

Compare commits

...

6 Commits
v0.1 ... main

Author SHA1 Message Date
Shrikanth Upadhayaya
51bd2c25d9
Merge pull request from AllSpiceIO/su/dr-no-error
Raise a clearer error if design review number is not set
2025-03-31 16:35:24 -04:00
Shrikanth Upadhayaya
4e95d8d6a4
Merge pull request from AllSpiceIO/dependabot/pip/ruff-0.9.9
Bump ruff from 0.9.4 to 0.9.9
2025-03-18 09:43:15 -04:00
Shrikanth Upadhayaya
5858a5d3ac
Merge pull request from AllSpiceIO/dependabot/pip/py-allspice-approx-eq-3.8.0
Update py-allspice requirement from ~=3.5.0 to ~=3.8.0
2025-03-18 09:38:31 -04:00
Shrikanth Upadhayaya
831bd5cb0f
Raise a clearer error if design review number is not set
If `post-dr-comment` is called in a run which is not on a design review,
the DR number is not set in the context. This previously led to an
incomprehensible error. This commit checks early to make sure the design
review number is set and errors with an explanation if it isn't.
2025-03-17 15:21:18 -04:00
dependabot[bot]
b133efd549
Update py-allspice requirement from ~=3.5.0 to ~=3.8.0
Updates the requirements on [py-allspice](https://github.com/AllSpiceIO/py-allspice) to permit the latest version.
- [Release notes](https://github.com/AllSpiceIO/py-allspice/releases)
- [Changelog](https://github.com/AllSpiceIO/py-allspice/blob/main/CHANGELOG.md)
- [Commits](https://github.com/AllSpiceIO/py-allspice/compare/v3.5.0...v3.8.0)

---
updated-dependencies:
- dependency-name: py-allspice
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-01 22:07:16 +00:00
dependabot[bot]
a338dddef8
Bump ruff from 0.9.4 to 0.9.9
Bumps [ruff](https://github.com/astral-sh/ruff) from 0.9.4 to 0.9.9.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.9.4...0.9.9)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-01 22:07:13 +00:00
3 changed files with 7 additions and 2 deletions

View File

@ -168,6 +168,11 @@ def main():
args = parser.parse_args()
if not args.design_review_number.isdigit():
raise ValueError(
"Design review number is either not set or not a number; this run may not be on a pull request event?"
)
logger.setLevel(args.log_level.upper())
client = AllSpice(
args.allspice_hub_url,

View File

@ -1 +1 @@
ruff==0.9.4
ruff==0.9.9

View File

@ -1,3 +1,3 @@
py-allspice~=3.5.0
py-allspice~=3.8.0
PyYAML~=6.0.2