Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Automatically configure the GitHub server URL

Abierto
#32 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
github-actions, python
Área
devops

Línea de trabajo

Empieza localizando los metadatos de GitHub Action y el código que lee la configuración actual de la URL de GitHub. Comprueba cómo se comporta la action en GitHub.com, GitHub Enterprise Server y al usarla en un contenedor independiente; después, verifica que la URL se infiere para las ejecuciones de Actions, mientras que la configuración explícita sigue siendo compatible.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement keep ready-for-work

GitHub Actions provides information about the URLs associated with the GitHub instance running the action, whether that is GitHub.com or GitHub Enterprise Server via the following properties of the github context:

  • api_url
  • graphql_url
  • server_url

Accordingly, when run as a GitHub Action (not as a standalone container), the action could self-configure itself for the current environment, only requiring the URL to be specified if it does not match the execution environment. This would make the action "just work™️" in GitHub Enterprise Server without having to explicitly configure the action.

For example:

---
name: 'Evergreen action'
author: 'github'
description: 'A GitHub Action to request dependabot enablement on eligible repositories in an organization.'
runs:
  using: 'docker'
  image: 'docker://ghcr.io/github/evergreen:v1'
+ env:
+   GH_ENTERPRISE_URL: ${{ github.server_url }}
branding:
  icon: 'file-plus'
  color: 'green'

In this scenario, renaming the variable to GH_URL would probably make the most sense, but it could be still be optional when using the container directly as it is today.

Lenguaje dominante
Python
Estrellas
226
Forks
25
Merge medio
3 h 46 min
PR fusionados (30 d)
8

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github-community-projects/evergreen

Todos los issues de github-community-projects/evergreen

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.