You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/services/github.md
+14-11Lines changed: 14 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,21 +4,21 @@
4
4
5
5
The GitHub notification service changes commit status using [GitHub Apps](https://docs.github.com/en/developers/apps) and requires specifying the following settings:
6
6
7
-
*`appID` - the app id
8
-
*`installationID` - the app installation id
9
-
*`privateKey` - the app private key
10
-
*`enterpriseBaseURL` - optional URL, e.g. https://git.example.com/
7
+
-`appID` - the app id
8
+
-`installationID` - the app installation id
9
+
-`privateKey` - the app private key
10
+
-`enterpriseBaseURL` - optional URL, e.g. https://git.example.com/
11
11
12
12
## Configuration
13
13
14
14
1. Create a GitHub Apps using https://github.com/settings/apps/new
1. Store privateKey in `argocd-notifications-secret` Secret and configure GitHub integration
21
+
in `argocd-notifications-cm` ConfigMap
22
22
23
23
```yaml
24
24
apiVersion: v1
@@ -77,16 +77,19 @@ template.app-deployed: |
77
77
requiredContexts: []
78
78
autoMerge: true
79
79
transientEnvironment: false
80
+
reference: v1.0.0
80
81
pullRequestComment:
81
82
content: |
82
83
Application {{.app.metadata.name}} is now running new version of deployments manifests.
83
84
See more here: {{.context.argocdUrl}}/applications/{{.app.metadata.name}}?operation=true
84
85
```
85
86
86
87
**Notes**:
88
+
87
89
- If the message is set to 140 characters or more, it will be truncated.
88
90
- If `github.repoURLPath` and `github.revisionPath` are same as above, they can be omitted.
89
91
- Automerge is optional and `true` by default for github deployments to ensure the requested ref is up to date with the default branch.
90
92
Setting this option to `false` is required if you would like to deploy older refs in your default branch.
91
93
For more information see the [GitHub Deployment API Docs](https://docs.github.com/en/rest/deployments/deployments?apiVersion=2022-11-28#create-a-deployment).
92
94
- If `github.pullRequestComment.content` is set to 65536 characters or more, it will be truncated.
95
+
- Reference is optional. When set, it will be used as the ref to deploy. If not set, the revision will be used as the ref to deploy.
0 commit comments