mathieudutour / mathieudutour/github-tag-action
[feature request] Add support for using input to override the default repository url
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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