-
Notifications
You must be signed in to change notification settings - Fork 13
Submitting using GitHub Command line
New forecast data has to be submitted using pull requests from a forked version of this repository. This will trigger all the validation checks to ensure a successful acquisition of the forecasts. Using the command line requires some technical expertise and some knowledge of the git framework. If you are not confident, you should submit using GitHub Website.
-
Install the GitHub cli.
-
Authenticate your user using the GitHub cli:
gh auth login
To do so, you need first to create a Personal access token (info here) with at least the repo, workflow, and admin:org scopes enabled. You might be asked by the GitHub cli to authenticate again after some time.
-
Fork and clone the
Influcast
repository using the GitHub cli:gh repo fork Predizioni-Epidemiologiche-Italia/Influcast --clone=true
-
Set the default remote repository to use when querying the GitHub API for the locally cloned repository to
Influcast
:gh repo set-default Predizioni-Epidemiologiche-Italia/Influcast
-
Be sure your local fork is up to date with the original repo, syncing it:
git checkout main gh repo sync <your_github_handle>/Influcast -b main git pull
-
Create a new branch for the submission and switch to it:
git checkout -b <submit_branch>
(The name of the branch should be new, for example "submit_branch_YYYYMMDD").
-
Copy your forecasts file to your forecasts folder:
previsioni/<team>-<model>/
. -
Commit your changes via the standard git commands:
git add --all git commit -m "Commit comment"
-
Submit a pull request to the main branch of the
Influcast
repository. Please use your team name, model name, and submission date as the title of the pull request:gh pr create --title "<team>-<model>-YYYYMMDD" --body "Weekly submission"
-
Wait for validation and merge.
If you encounter any problems at any stage, or have any questions, please get in touch:
- Send us an email
- Come posso partecipare ad Influcast?
- Cosa si intende con previsione?
- Struttura del repository
- Target di previsione e dati di sorveglianza
- Formato richiesto per l'invio dei dati delle previsioni
- Procedura di Invio delle Previsioni a Influcast