@@ -4,10 +4,35 @@ This directory contains root cause analysis and remediation recommendations for
44
55## How to Post Remediation Comments to GitHub Issues
66
7- ### Option 1: Using GitHub CLI (Recommended )
7+ ### Option 1: Using the Helper Script (Easiest )
88
99``` bash
10- # Authenticate with GitHub
10+ # From the repository root
11+ bash Act-3/remediation/post-comment.sh
12+ ```
13+
14+ This interactive script will:
15+ - Check if GitHub CLI is installed and authenticated
16+ - Confirm before posting
17+ - Post the comment to issue #12
18+ - Show you the URL to view the comment
19+
20+ ### Option 2: Using GitHub CLI Directly
21+
22+ ``` bash
23+ # Authenticate with GitHub (if not already)
24+ gh auth login
25+
26+ # Post the comment
27+ gh issue comment 12 \
28+ --repo DevExpGbb/agentic-platform-engineering \
29+ --body-file Act-3/remediation/issue-12-argocd-deployment-failure.md
30+ ```
31+
32+ ### Option 2: Using GitHub CLI Directly
33+
34+ ``` bash
35+ # Authenticate with GitHub (if not already)
1136gh auth login
1237
1338# Post the comment
@@ -16,7 +41,19 @@ gh issue comment 12 \
1641 --body-file Act-3/remediation/issue-12-argocd-deployment-failure.md
1742```
1843
19- ### Option 2: Using GitHub Actions Workflow
44+ ### Option 3: Using GitHub Actions Workflow
45+
46+ A workflow has been created at ` .github/workflows/post-issue-comment.yml ` that can be manually triggered:
47+
48+ 1 . Go to Actions tab in GitHub
49+ 2 . Select "Post Issue Comment" workflow
50+ 3 . Click "Run workflow"
51+ 4 . Enter:
52+ - Issue number: ` 12 `
53+ - Comment file: ` Act-3/remediation/issue-12-argocd-deployment-failure.md `
54+ 5 . Click "Run workflow"
55+
56+ ### Option 3: Using GitHub Actions Workflow
2057
2158A workflow has been created at ` .github/workflows/post-issue-comment.yml ` that can be manually triggered:
2259
@@ -28,7 +65,22 @@ A workflow has been created at `.github/workflows/post-issue-comment.yml` that c
2865 - Comment file: ` Act-3/remediation/issue-12-argocd-deployment-failure.md `
29665 . Click "Run workflow"
3067
31- ### Option 3: Using GitHub API directly
68+ ### Option 4: Using GitHub API directly
69+
70+ ``` bash
71+ # Set your GitHub token
72+ export GITHUB_TOKEN=" your_token_here"
73+
74+ # Post the comment
75+ curl -X POST \
76+ -H " Authorization: Bearer $GITHUB_TOKEN " \
77+ -H " Accept: application/vnd.github+json" \
78+ -H " X-GitHub-Api-Version: 2022-11-28" \
79+ https://api.github.com/repos/DevExpGbb/agentic-platform-engineering/issues/12/comments \
80+ -d @<( jq -Rs ' {"body": .}' < Act-3/remediation/issue-12-argocd-deployment-failure.md)
81+ ```
82+
83+ ### Option 4: Using GitHub API directly
3284
3385``` bash
3486# Set your GitHub token
@@ -43,7 +95,7 @@ curl -X POST \
4395 -d @<( jq -Rs ' {"body": .}' < Act-3/remediation/issue-12-argocd-deployment-failure.md)
4496```
4597
46- ### Option 4 : Manual Copy-Paste
98+ ### Option 5 : Manual Copy-Paste
4799
481001 . Open the file: ` Act-3/remediation/issue-12-argocd-deployment-failure.md `
491012 . Copy the entire contents
@@ -54,4 +106,5 @@ curl -X POST \
54106## Files in This Directory
55107
56108- ` issue-12-argocd-deployment-failure.md ` - Comprehensive root cause analysis and remediation recommendations for the ` 2-broken-apps ` ArgoCD deployment failure
109+ - ` post-comment.sh ` - Interactive helper script to post the comment (requires gh CLI)
57110- ` README.md ` - This file, with instructions on how to post the remediation comments
0 commit comments