Logo
Explore Help
Sign In
honeymoose/angular-cn
1
0
Fork 0
You've already forked angular-cn
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
angular-cn/aio/aio-builds-setup/dockerbuild/scripts-js/lib/common/constants.ts

4 lines
90 B
TypeScript
Raw Normal View History

fix(aio): clean up non-public previews The previous clean-up code for PR directories on the preview server assumed that all directories were named after the PR number. With the changes introduced in #17640 it is possible to have PR directories that do not follow that naming convention (e.g. "non-public" directories). This PR ensures that both public and non-public directories are removed when cleaning up.
2017-06-25 01:40:04 +03:00
// Constants
export const HIDDEN_DIR_PREFIX = 'hidden--';
feat(aio): use shorter URLs for previews Use the 7 first characters of the 40-chars long SHAs for shorter/cleaner URLs. The collision probability is extremely low (since all SHAs are further "namespaced" under the corresponding PR). In case of a collision, the second PR will not be deployed, in order to avoid overwriting the original build. (This is a design decision to keep the implementation simple. It can be changed later if necessary.)
2017-06-25 22:13:03 +03:00
export const SHORT_SHA_LEN = 7;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 170ms Template: 8ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API