Skip to content

Case sensitivity for environment names #70

Open
@houserx-jmcc

Description

@houserx-jmcc

Problem

I've come across an issue in my use of github/lock to lock and unlock environments.

In our workflows, we occasionally used mixed cases when specifying environments (STAGING and staging - work in progress to standardize these). GitHub itself is case insensitive when using the environments natively, and won't let you create an upper-case version of an existing environment because its a duplicate:

Image

However, this action appears to be case sensitive (probably due to branches themselves being case sensitive?).

Ask

It would be really nice if the action compared the input environment with the lock environment without caring about the case of either, matching how environments work otherwise. So I could input STAGING and if my lock branch is staging-branch-deploy-lock, it will come back as locked. The current behavior does not see the lock:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions