~sircmpwn/dispatch.sr.ht

ref: e4b9f89a68a4cda43fb2c239a8b0ebc5b8eee0c3 dispatch.sr.ht/dispatchsrht/templates/github/edit.html -rw-r--r-- 2.1 KiB View raw
e4b9f89a — √Čloi Rivard Define 'make' program via an environment variable 1 year, 10 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<form method="POST">
  {{csrf_token()}}
  <p>
    Submits build manifests from
    <a
        href="https://github.com/{{record.repo}}"
        target="_blank"
        rel="nofollow noopener"
    >{{icon("github")}} {{record.repo}}</a>
    for every
    {% if task._taskdef == "github_commit_to_build" %}
      commit.
    {% else %}
      pull request.
    {% endif %}
    If your repo has a <code>.build.yml</code> file, it will be used as the
    manifest. If your repo has a <code>.builds</code> directory with several
    manifests inside, they will all be submitted together.
  </p>
  <h3>Options</h3>
  {% if task._taskdef == "github_commit_to_build" %}
  <div class="form-group">
    <div class="form-check">
      <input
        name="secrets"
        id="secrets"
        class="form-check-input"
        type="checkbox"
        {{"checked" if record.secrets else ""}}
      />
      <label for="secrets" class="form-check-label">
        Include secrets in builds
      </label>
    </div>
  </div>
  {% else %}
  <div class="form-group">
    <div class="form-check">
      <input
        name="automerge"
        id="automerge"
        class="form-check-input"
        type="checkbox"
        {{"checked" if record.automerge else ""}}
      />
      <label class="form-check-label" for="automerge">
        Automatically merge PRs on build success
      </label>
      <small class="form-text text-muted">
        Configuring branch protection rules on GitHub is strongly recommended
        when using this feature.
        <a
          href="https://man.sr.ht/dispatch.sr.ht/github.md"
        >Read the guide here</a>.
      </small>
    </div>
  </div>
  <div class="form-group">
    <div class="form-check">
      <input class="form-check-input" type="checkbox" disabled />
      <label class="form-check-label">
        <s>Include secrets in builds</s>
      </label>
      <small class="form-text text-muted">
        Secrets are disabled for pull requests.
      </small>
    </div>
  </div>
  {% endif %}
  <button type="submit" class="btn btn-primary">
    Save changes
    {{icon("caret-right")}}
  </button>
</form>