-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare for 1.3.0 release: * Changelog * Update deps: * Update & pin GHA, point jira sync at common workflows * Go version * Go mod * Docker base image * CSI driver version in tests * CI tool and k8s testing versions * Run `make promote-staging-manifest` Also fixed a small bug in the staging manifest's role permissions, and added one extra debug log line that helped me while testing out the latest changes. Co-authored-by: Theron Voran <[email protected]>
- Loading branch information
Showing
14 changed files
with
407 additions
and
867 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,17 @@ | ||
name: Jira Sync | ||
on: | ||
issues: | ||
types: [opened, closed, deleted, reopened] | ||
pull_request_target: | ||
types: [opened, closed, reopened] | ||
issue_comment: # Also triggers when commenting on a PR from the conversation view | ||
types: [created] | ||
|
||
name: Jira Sync | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
name: Jira sync | ||
steps: | ||
- name: Login | ||
uses: atlassian/[email protected] | ||
env: | ||
JIRA_BASE_URL: ${{ secrets.JIRA_SYNC_BASE_URL }} | ||
JIRA_USER_EMAIL: ${{ secrets.JIRA_SYNC_USER_EMAIL }} | ||
JIRA_API_TOKEN: ${{ secrets.JIRA_SYNC_API_TOKEN }} | ||
|
||
- name: Preprocess | ||
if: github.event.action == 'opened' || github.event.action == 'created' | ||
id: preprocess | ||
run: | | ||
if [[ "${{ github.event_name }}" == "pull_request_target" ]]; then | ||
echo "type=PR" >> $GITHUB_OUTPUT | ||
else | ||
echo "type=ISS" >> $GITHUB_OUTPUT | ||
fi | ||
- name: Create ticket | ||
if: github.event.action == 'opened' | ||
uses: tomhjp/[email protected] | ||
with: | ||
project: VAULT | ||
issuetype: "GH Issue" | ||
summary: "${{ github.event.repository.name }} [${{ steps.preprocess.outputs.type }} #${{ github.event.issue.number || github.event.pull_request.number }}]: ${{ github.event.issue.title || github.event.pull_request.title }}" | ||
description: "${{ github.event.issue.body || github.event.pull_request.body }}\n\n_Created from GitHub Action for ${{ github.event.issue.html_url || github.event.pull_request.html_url }} from ${{ github.actor }}_" | ||
# customfield_10089 is Issue Link custom field | ||
# customfield_10091 is team custom field | ||
extraFields: '{"fixVersions": [{"name": "TBD"}], "customfield_10091": ["ecosystem", "foundations"], "customfield_10089": "${{ github.event.issue.html_url || github.event.pull_request.html_url }}"}' | ||
|
||
- name: Search | ||
if: github.event.action != 'opened' | ||
id: search | ||
uses: tomhjp/[email protected] | ||
with: | ||
# cf[10089] is Issue Link custom field | ||
jql: 'project = "VAULT" and cf[10089]="${{ github.event.issue.html_url || github.event.pull_request.html_url }}"' | ||
|
||
- name: Sync comment | ||
if: github.event.action == 'created' && steps.search.outputs.issue | ||
uses: tomhjp/[email protected] | ||
with: | ||
issue: ${{ steps.search.outputs.issue }} | ||
comment: "${{ github.actor }} ${{ github.event.review.state || 'commented' }}:\n\n${{ github.event.comment.body || github.event.review.body }}\n\n${{ github.event.comment.html_url || github.event.review.html_url }}" | ||
|
||
- name: Close ticket | ||
if: (github.event.action == 'closed' || github.event.action == 'deleted') && steps.search.outputs.issue | ||
uses: atlassian/[email protected] | ||
with: | ||
issue: ${{ steps.search.outputs.issue }} | ||
transition: Closed | ||
|
||
- name: Reopen ticket | ||
if: github.event.action == 'reopened' && steps.search.outputs.issue | ||
uses: atlassian/[email protected] | ||
with: | ||
issue: ${{ steps.search.outputs.issue }} | ||
transition: "Pending Triage" | ||
uses: hashicorp/vault-workflows-common/.github/workflows/jira.yaml@main | ||
secrets: | ||
JIRA_SYNC_BASE_URL: ${{ secrets.JIRA_SYNC_BASE_URL }} | ||
JIRA_SYNC_USER_EMAIL: ${{ secrets.JIRA_SYNC_USER_EMAIL }} | ||
JIRA_SYNC_API_TOKEN: ${{ secrets.JIRA_SYNC_API_TOKEN }} | ||
with: | ||
teams-array: '["ecosystem", "foundations"]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.19.3 | ||
1.20.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.