Repository navigation
Develop #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop #23
Changes from all commits
aa44556
d08831c
fa0d54d
88a65f0
f824022
a0fd5ad
be69e13
cd13d83
664b741
0d8a0e0
65728b5
1ee9224
44a703e
7f3bcc4
cb47afb
f969559
7ecdd43
1213177
23705f4
1502459
1d7b2e8
a632abc
097585d
5be7dfb
d91203a
b53c305
c0796aa
ab78098
278647d
ec287a5
e3dac42
fe9acaf
e1dd3d7
7b513eb
db3f7b3
80b43ca
2230b15
fe99808
6b2d669
40e0492
7d0d840
d826329
586e8aa
03b585a
5c44bb6
8354dbb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| ## Branch base | ||
|
|
||
| - **Contributori esterni:** imposta il branch base su **`develop`** (non `main`). Vedi [CONTRIBUTING.md](../CONTRIBUTING.md) alla root del repo. | ||
| - **Maintainer:** PR verso `main` solo per integrazione/release quando appropriato. | ||
|
|
||
| ## Descrizione | ||
|
|
||
| <!-- Cosa cambia e perché --> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # Le PR verso `main` sono riservate al maintainer (@lorentsob). | ||
| # Gli altri contributi devono usare `develop` come branch base. | ||
| name: PR base branch (main) | ||
|
|
||
| on: | ||
| pull_request_target: | ||
| types: [opened, reopened, edited] | ||
| branches: | ||
| - main | ||
|
|
||
| permissions: | ||
| pull-requests: write | ||
| issues: write | ||
|
|
||
| jobs: | ||
| enforce-develop-for-contributors: | ||
| if: github.event.pull_request.user.login != 'lorentsob' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/github-script@v7 | ||
| with: | ||
| script: | | ||
| const pr = context.payload.pull_request; | ||
| const body = [ | ||
| 'Questa PR punta a `main`, che in questo repo è riservato ai merge di release da parte del maintainer.', | ||
| '', | ||
| '**Apri una nuova pull request con base `develop`:**', | ||
| '- nella PR, usa il menu del branch base e seleziona `develop`, oppure', | ||
| '- chiudi questa PR e creane una nuova con base `develop`.', | ||
| '', | ||
| 'Vedi [CONTRIBUTING.md](https://github.com/' + context.repo.owner + '/' + context.repo.repo + '/blob/main/CONTRIBUTING.md) per i dettagli.' | ||
| ].join('\n'); | ||
|
|
||
| await github.rest.issues.createComment({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| issue_number: pr.number, | ||
| body | ||
| }); | ||
|
|
||
| await github.rest.pulls.update({ | ||
| owner: context.repo.owner, | ||
| repo: context.repo.repo, | ||
| pull_number: pr.number, | ||
| state: 'closed' | ||
| }); |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -86,7 +86,7 @@ enum KefirBatchState: String, CaseIterable, Codable, Identifiable { | |||||||||
| var title: String { | ||||||||||
| switch self { | ||||||||||
| case .active: "Attivo" | ||||||||||
| case .dueSoon: "Attenzione" | ||||||||||
| case .dueSoon: "Da rinfrescare a breve" | ||||||||||
| case .dueNow: "Da rinfrescare" | ||||||||||
|
Comment on lines
+89
to
90
|
||||||||||
| case .dueSoon: "Da rinfrescare a breve" | |
| case .dueNow: "Da rinfrescare" | |
| case .dueSoon: "Da rinnovare a breve" | |
| case .dueNow: "Da rinnovare" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Il link relativo
[CONTRIBUTING.md](../CONTRIBUTING.md)nel template PR molto probabilmente risulta rotto quando il markdown è renderizzato nella descrizione della PR (i link relativi in issue/PR non sono risolti rispetto al path del file). Usa un link assoluto (es.https://github.com/<owner>/<repo>/blob/main/CONTRIBUTING.md) o un link relativo che punti chiaramente al file in repo root in modo che funzioni anche nel contesto PR.