Add a release-notes entry for -Wincomplete-record-selectors
[ghc.git] / .gitlab / README.md
blob086c0436a1a2b7c6b1bb5c8f99c7b315a850899d
1 # Where the GitLab happens
4 ## Updating PERF_NOTES_PUSH_CREDENTIALS
6 This CI variable is used by test-metrics.sh to push performance data as a git
7 note to https://gitlab.haskell.org/ghc/ghc-performance-notes.
9 The current token will expire on 2025-07-02.
11 ### STEPS
13 Set and fetch the updated token:
15 ```
16 GITLAB_WRITE=<Your Gitlab API token>
18 one_year_later="$(date --date='1 year' --iso-8601)"
19 curl -X POST --header "PRIVATE-TOKEN: $GITLAB_WRITE" -H "Content-Type: application/json" \
20     --data '{"name":"test-metrics.sh", "scopes":["write_repository"], "expires_at":"$one_year_later"}' \
21     https://gitlab.haskell.org/api/v4/projects/117/access_tokens \
22     | jq .token
23 ```
25 Update the variable:
27 ```
28 GITLAB_WRITE=<Your Gitlab API token>
30 NEW_VALUE=<Output from the above>
32 curl --fail-with-body --request PUT --header "PRIVATE-TOKEN: $GITLAB_WRITE" \
33     "https://gitlab.haskell.org/api/v4/projects/1/variables/PERF_NOTES_PUSH_CREDENTIALS" \
34     --form "value=$NEW_VALUE"
36 ```