Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Use strict version tags for the download urls#76

Merged
PaulRBerg merged 8 commits intostagingfrom
strictRefUrl
Oct 18, 2020
Merged

Use strict version tags for the download urls#76
PaulRBerg merged 8 commits intostagingfrom
strictRefUrl

Conversation

@PaulRBerg
Copy link
Copy Markdown
Contributor

@PaulRBerg PaulRBerg commented Oct 17, 2020

Implementing your suggestions in #70 was easier than I suspected. GitHub uses refs to generate tarball archives, so I simply ditched the branch constant from the download url and replaced it with the package.json "version" field.

  • Use strict version tags for download urls.
  • Check for the value of the CEA_ENV environment variable and, if it's "development", use the branch name in the download url. The branch name is either GITHUB_REF (stripped of "refs/heads/") in CI or a custom CEA_GITHUB_REF in local development. An error is thrown if none of the latter can be found, but CEA_ENV is set to "development".

@PaulRBerg PaulRBerg added the enhancement Improvement for an existing feature or system label Oct 17, 2020
refactor: rename vars and add comments in helpers/templates.ts

fix #70
refactor: move download functions in new file github.ts
refactor: rename template files constants
refactor: turn 'isFolderEmpty.ts' into 'files.ts'
@PaulRBerg
Copy link
Copy Markdown
Contributor Author

This fixes #70.

@TomAFrench
Copy link
Copy Markdown
Contributor

Looks good to me!

Copy link
Copy Markdown
Contributor

@TomAFrench TomAFrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only these to get sorted out first.

Comment thread src/helpers/github.ts Outdated
Comment thread src/helpers/github.ts Outdated
@PaulRBerg PaulRBerg changed the title [WIP] Use strict version tags for the download urls Use strict version tags for the download urls Oct 18, 2020
@PaulRBerg PaulRBerg merged commit ff8fc19 into staging Oct 18, 2020
@PaulRBerg PaulRBerg deleted the strictRefUrl branch October 18, 2020 16:49
pbbhopp pushed a commit to veloxoft/space-swap-front that referenced this pull request Mar 29, 2021
* fix: Restored missing code

* fix: Restored pool ordering

* fix: Syrup pool ordering

* feat: Updated pool card finished state
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement Improvement for an existing feature or system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants