github / github/lock

Case sensitivity for environment names

Ouverte
#70 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
JavaScript
Étoiles
58
Forks
11
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

## 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](https://github.com/user-attachments/assets/4874b713-f530-4d67-a572-a48c84dd39d9)

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](https://github.com/user-attachments/assets/d7e7460a-cb96-45bf-80c3-7ce9c336ed83)

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start by locating the environment-to-lock comparison in the JavaScript GitHub Action; the issue names no files or tests. Check whether mixed-case environment names are covered, then verify that equivalent casing matches the existing lock behavior without changing unrelated branch handling.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
github-actions, javascript
Domaine
ci-cd
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.