mathieudutour / mathieudutour/github-tag-action

[feature request] Add support for using input to override the default repository url

Open
#127 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
733
Forks
227
PR merge metrics
No merged PRs in 30d

Description

Description
This github action leverages the process.env.GITHUB_SERVER_URL and process.env.GITHUB_REPOSITORY environment variables to define the repository url. From everything that I have seen, these cannot easily be overwritten within Github actions. This prevents this GitHub Action from being able to create tags on other repositories outside of the one that kicked off the worfklow.

Proposal
I would like to suggest that we add support for optional repo_url and repo inputs. This addition would require the creation of two new inputs for the GitHub Action, and it would require the repository url be altered to use these inputs while defaulting to the environment variables when the inputs do not exist.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in src/action.ts around line 203 and inspect how the repository URL is assembled from GITHUB_SERVER_URL and GITHUB_REPOSITORY. Trace how GitHub Action inputs are defined, then confirm that optional repo_url and repo values override those environment variables while the existing defaults remain unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, github-actions, typescript
Domain
ci-cd, release
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.