Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

.clasp.json will be overwrited for people using clasp to upload GAS to their own projects

Aperta
#431 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@jpoehnelt ci sta già lavorando.

Dal 3/12/2023.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Summary

The .clasp.json files contain the GAS project IDs only accessible inside Google. (example)
However, people using clasp CLI to push to their GAS project ID will need to overwrite these files.

What I think it might be better in either way:

  1. add .clasp.json in .gitignore file but it will not work since this file is required for your Github Actions Workflow.
  2. rename the Google-only accessible .clasp.json to other filename instead of default .clasp.json, while rename them back to .clasp.json before executing clasp push -f(link) inside your Github Action Workflow

Expected Behavior

People not work at Google can clone/commit this repo without overwriting this .clasp.json file.

Actual Behavior

Everyone outside Google needs to overwrite this .clasp.json file to run the clasp push to their GAS project.

Steps to Reproduce the Problem

  1. login with personal gmail account
  2. create a new Google Sheet and retrieve the GAS project ID through Extensions > Apps Script menu
  3. Go to Project Settings to retrieve Script ID
  4. Overwrite the scriptID within solutions/automations/mail-merge/.clasp.google-only.json
  5. run clasp push under solutions/automations/mail-merge/ directory

But I have no idea how Googlers use these .clasp.json files, so feel free to provide any other idea, thanks!

Lingua principale
JavaScript
Stelle
5.2k
Fork
2k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di googleworkspace/apps-script-samples

Tutte le issue di googleworkspace/apps-script-samples

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.