Skip to content

trim whitespaces from elements of repository list #75

Description

@SebastianOpriel

If a white space is accidentally added to a repository name in a repository config list, this repository is not synced and also no error is shown. As URLs do not end with white spaces, these could be trimmed automatically to avoid mistakes. In belows case, REPO2 would not be synced cause of the white space at its end.

jobs:
  sync_labels:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: micnncim/action-label-syncer@v1.3.0
        with:
          manifest: .github/sync_labels.yml
          prune: false
          repository: |
            ORG/REPO1
            ORG/REPO2 
            ORG/REPO3
          token: ${{ secrets.PAT}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions