Skip to content

Commit

Permalink
[MIM-2006] Improve branch deploy comment on PR (#3031)
Browse files Browse the repository at this point in the history
* Add test commit for PR

* Improved developer experience by adding more visible links

* Maybe this is the right syntax?

* Added more formatting to description
  • Loading branch information
Glenruben authored Nov 15, 2024
1 parent ceaf2ca commit 4255ef6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/deploy_nais.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,12 @@ jobs:
VAR: image=${{ env.REGISTRY }}/${{env.IMAGE}}:${{ env.TAG }},branch=${{ env.ISSUE_NUMBER }}
DEPLOY_SERVER: deploy.ssb.cloud.nais.io:443
- name: Add comment to PR
uses: actions/github-script@v7
uses: the-wright-jamie/update-pr-info-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.createComment({
owner: context.repo.owner,
issue_number: context.issue.number,
repo: context.repo.repo,
body: `URL to deployed Mimir app on NAIS, visit:
https://ssbno-${{ env.ISSUE_NUMBER }}.intern.test.ssb.no`
})
repo-token: "${{ secrets.GITHUB_TOKEN }}"
head-branch-regex: 'mim-\d{2,4}'
body-template: |
### Branch Deployment to NAIS!
[🗄️ Link to branch admin interface!](https://ssbno-${{ env.ISSUE_NUMBER }}.intern.test.ssb.no/admin)
[📰 Front page can be found here!](https://ssbno-${{ env.ISSUE_NUMBER }}.intern.test.ssb.no/)
body-update-action: "suffix"
3 changes: 2 additions & 1 deletion .github/workflows/jira_issue_title.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "Update Pull Request title with JIRA issue"
on:
on:
pull_request:
types: [opened]

Expand All @@ -18,5 +18,6 @@ jobs:
head-branch-regex: 'mim-\d{2,4}'
title-template: "[%headbranch%]"
body-template: |
### Jira Issues!
[Link to ticket: %headbranch%](https://statistics-norway.atlassian.net/browse/%headbranch%)
body-update-action: "suffix"

0 comments on commit 4255ef6

Please sign in to comment.