Skip to content

Enable workflows: Ensure no leading/trailing whitespace is included in specified repo(s) #233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 24, 2025

Conversation

TimidRobot
Copy link
Member

Description

  • Enable workflows: Ensure no leading/trailing whitespace is included in specified repo(s)

Technical details

Fixes error during GitHub Actions run:

2025-04-23 14:44:40,734 │ INFO     │ setup_github_rest_client: Setting up GitHub Rest API client
2025-04-23 14:44:40,734 │ INFO     │ get_cc_organization: Getting CC's GitHub organization...
2025-04-23 14:44:40,894 │ SUCCESS  │ get_cc_organization: done.
2025-04-23 14:44:40,894 │ INFO     │ get_select_repos: Get select GitHub repositories
2025-04-23 14:44:42,799 │ ERROR    │ <module>: Unhandled exception: Traceback (most recent call last):
  File "/home/runner/work/ccos-scripts/ccos-scripts/./enable_workflows.py", line 86, in <module>
    main()
  File "/home/runner/work/ccos-scripts/ccos-scripts/./enable_workflows.py", line 79, in main
    repos = gh_utils.get_select_repos(args, gh_org_cc)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/ccos-scripts/ccos-scripts/ccos/gh_utils.py", line 144, in get_select_repos
    raise Exception(
Exception: Specified repositories do not include any valid repositories: [' ccos_scripts']

Error: Process completed with exit code 1.

Checklist

  • My pull request has a descriptive title (not a vague title like Update index.md).
  • My pull request targets the default branch of the repository (main or master).
  • My commit messages follow best practices.
  • My code follows the established code style of the repository.
  • I added or updated tests for the changes I made (if applicable).
  • I added or updated documentation (if applicable).
  • I tried running the project locally and verified that there are no
    visible errors.

Developer Certificate of Origin

For the purposes of this DCO, "license" is equivalent to "license or public domain dedication," and "open source license" is equivalent to "open content license or public domain dedication."

Developer Certificate of Origin
Developer Certificate of Origin
Version 1.1

Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
1 Letterman Drive
Suite D4700
San Francisco, CA, 94129

Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.


Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.

@TimidRobot TimidRobot self-assigned this Apr 24, 2025
@TimidRobot TimidRobot requested a review from a team as a code owner April 24, 2025 05:20
@github-project-automation github-project-automation bot moved this to Triage in TimidRobot Apr 24, 2025
@TimidRobot TimidRobot merged commit 71d8663 into main Apr 24, 2025
@TimidRobot TimidRobot deleted the enable-strip-whitespace branch April 24, 2025 15:31
@github-project-automation github-project-automation bot moved this from Triage to Done in TimidRobot Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants