Skip to content

Build repo: Move all .sh scripts from root folder to scripts/ folder. #2495

Open
@prudhvigodithi

Description

@prudhvigodithi

Is your feature request related to a problem? Please describe

There are multiple bash scripts that are part of the root folder, there is an already exists scripts/ folder. It would be clean to move the .sh files from the root to folder and store them under scripts/.

Describe the solution you'd like

  • Move all the .sh scripts that involve the workflows to scripts/ folder.

  • Once migrated call the .sh file from the script folder.
    Example for release_notes.sh:
    Instead of ./release_notes.sh check manifests/2.2.0/opensearch-2.2.0.yml --date 2022-07-26
    Run: ./scripts/release_notes.sh check manifests/2.2.0/opensearch-2.2.0.yml --date 2022-07-26

  • To achieve this move run.sh, Pipfile Pipfile.lock to scripts/ folder.

  • Modify the .sh scripts as follows
    Example release_notes.sh

#!/bin/bash

# SPDX-License-Identifier: Apache-2.0
#
# The OpenSearch Contributors require contributions made to
# this file be licensed under the Apache-2.0 license or a
# compatible open source license.

set -e

DIR="$(dirname "$0")"
"$DIR/run.sh" "$DIR/../src/run_releasenotes_check.py" $@

Describe alternatives you've considered

No response

Additional context

No response

Acceptance Criteria

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions