File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ** Is your feature request related to a problem?**
2+ A new feature has been added.
3+
4+ ** What solution would you like?**
5+ Document the usage of the new feature.
6+
7+ ** What alternatives have you considered?**
8+ N/A
9+
10+ ** Do you have any additional context?**
11+ See please
Original file line number Diff line number Diff line change 1+ name : Create Documentation Issue
2+ on :
3+ pull_request :
4+ types :
5+ - labeled
6+ env :
7+ PR_NUMBER : ${{ github.event.number }}
8+
9+ jobs :
10+ create-issue :
11+ if : ${{ github.event.label.name == 'needs-documentation' }}
12+ runs-on : ubuntu-latest
13+ name : Create Documentation Issue
14+ steps :
15+ - name : GitHub App token
16+ id : github_app_token
17+ uses : tibdex/github-app-token@v1.5.0
18+ with :
19+ app_id : ${{ secrets.APP_ID }}
20+ private_key : ${{ secrets.APP_PRIVATE_KEY }}
21+ installation_id : 22958780
22+
23+ - name : Checkout code
24+ uses : actions/checkout@v2
25+
26+ - name : Edit the issue template
27+ run : |
28+ echo "https://github.com/opensearch-project/dashboards-reports/pull/${{ env.PR_NUMBER }}." >> ./.github/ISSUE_TEMPLATE/documentation-issue.md
29+
30+ - name : Create Issue From File
31+ id : create-issue
32+ uses : peter-evans/create-issue-from-file@v4
33+ with :
34+ title : Add documentation related to new feature
35+ content-filepath : ./.github/ISSUE_TEMPLATE/documentation-issue.md
36+ labels : documentation
37+ repository : opensearch-project/documentation-website
38+ token : ${{ steps.github_app_token.outputs.token }}
39+
40+ - name : Print Issue
41+ run : echo Created related documentation issue ${{ steps.create-issue.outputs.issue-number }}
You can’t perform that action at this time.
0 commit comments