Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automation/6808-chanel-create-system-for-updating-names-on-release-tickets #10044

Merged
Merged
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
7c90ab1
create release ticket with assignee members
IsraelleHub Oct 25, 2024
6fdf95f
testing
IsraelleHub Oct 25, 2024
0bd60cc
testing with qa group
IsraelleHub Oct 25, 2024
1f8c6af
check user permission
IsraelleHub Oct 28, 2024
870da1b
use personal access token
IsraelleHub Oct 28, 2024
cc94c01
fect group members
IsraelleHub Oct 28, 2024
731fff6
clone release isssue template
IsraelleHub Oct 29, 2024
978a1a3
change md file
IsraelleHub Oct 29, 2024
7e9ad1a
assignees formatting
IsraelleHub Oct 29, 2024
51e5797
fix formatting
IsraelleHub Oct 29, 2024
0dd42b8
roolback
IsraelleHub Oct 29, 2024
f5a6083
fetch team member into md
IsraelleHub Oct 29, 2024
25d792a
fix issue title
IsraelleHub Oct 29, 2024
749067b
format fix
IsraelleHub Oct 30, 2024
66aae7f
wrap username in backet
IsraelleHub Oct 30, 2024
fb35aec
roll back
IsraelleHub Oct 30, 2024
7e2c2c1
formatted assignees
IsraelleHub Oct 30, 2024
1787939
remove line 34
IsraelleHub Oct 30, 2024
55e8d84
update name of md
IsraelleHub Nov 1, 2024
cce3b9d
fix formatremoved sed
IsraelleHub Nov 1, 2024
5c19575
Pass ASSIGNEES to the create-an-issue Action
IsraelleHub Nov 1, 2024
1203f26
update assignees on markdown
IsraelleHub Nov 1, 2024
12fde75
fix format
IsraelleHub Nov 1, 2024
6e97c20
shell
IsraelleHub Nov 1, 2024
757d028
remove bracket
IsraelleHub Nov 1, 2024
7090838
assignee format in markdown
IsraelleHub Nov 1, 2024
ed6fbc7
push assignee to md
IsraelleHub Nov 1, 2024
0a72daf
Update assignees in release issue template
actions-user Nov 1, 2024
67dc48b
no bracket
IsraelleHub Nov 1, 2024
805d6a0
Merge branch 'chanel-6808-create-system-for-updating-names-on-release…
IsraelleHub Nov 1, 2024
0c08e90
update md with fetched assignee
IsraelleHub Nov 1, 2024
e5d946b
push changed to md
IsraelleHub Nov 1, 2024
cd9d00a
fix md format
IsraelleHub Nov 1, 2024
15c698e
Update assignees in release issue template
actions-user Nov 1, 2024
ae0d6f8
test check
IsraelleHub Nov 1, 2024
4eb2c05
if nothing to commit
IsraelleHub Nov 1, 2024
12d52de
test1
IsraelleHub Nov 4, 2024
e76cc8d
Merge branch 'develop' into chanel-6808-create-system-for-updating-na…
timwright12 Nov 4, 2024
73fc87d
ready for review
IsraelleHub Nov 4, 2024
bcd7967
ready
IsraelleHub Nov 4, 2024
6a33830
removed debug line
IsraelleHub Nov 5, 2024
ef59775
code update
IsraelleHub Nov 6, 2024
10fd96b
test1
IsraelleHub Nov 6, 2024
a29e90e
parse assignee to ticket
IsraelleHub Nov 6, 2024
599dbbe
add assignee to release ticket
IsraelleHub Nov 7, 2024
fac6349
fix typo
IsraelleHub Nov 7, 2024
9b1dec7
test1
IsraelleHub Nov 7, 2024
c87c553
assign teams
IsraelleHub Nov 7, 2024
1ca358d
no json
IsraelleHub Nov 7, 2024
470b4b5
test2
IsraelleHub Nov 7, 2024
201e701
TEST3
IsraelleHub Nov 7, 2024
de9ee0a
USE FOR LOOP
IsraelleHub Nov 7, 2024
2ff6f67
use personal access token
IsraelleHub Nov 7, 2024
204128a
debug assignee
IsraelleHub Nov 12, 2024
e0f8f88
test new logic
lexicalninja Nov 12, 2024
6cee4ce
Merge branch 'chanel-6808-create-system-for-updating-names-on-release…
lexicalninja Nov 12, 2024
1de8886
no quotes
lexicalninja Nov 12, 2024
d7bead2
remove double code
lexicalninja Nov 12, 2024
ff6aa6f
updated release branch issue workflow
IsraelleHub Nov 12, 2024
4d0d209
delete clone release issue template
IsraelleHub Nov 12, 2024
1406d9d
delete test workflow
IsraelleHub Nov 12, 2024
d7c3ae9
remove debug code line
IsraelleHub Nov 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/release_branch_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- run: echo "VA_DUE_DATE=$(date -d "+6 days" '+%A %b %d, %Y')" >> $GITHUB_ENV
- run: echo "RELEASE_DATE=$(date -d "+13 days" '+%A %b %d, %Y')" >> $GITHUB_ENV
- uses: actions/checkout@v3
- run: echo "${{ secrets.GITHUB_TOKEN }}" >> token.txt
- run: echo "${{ secrets.GH_ACTIONS_PAT }}" > token.txt
timwright12 marked this conversation as resolved.
Show resolved Hide resolved
- run: gh auth login --with-token < token.txt
- run: |
sev1=$(gh issue list -l "sev-1" --jq 'map("|#\(.number)|\(.title)|") | join("\n") ' --json number,title)
Expand All @@ -32,7 +32,8 @@ jobs:
echo 'TABLE<<EOF' >> $GITHUB_ENV
echo "${table}" >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- uses: JasonEtco/create-an-issue@v2
- name: Create Release Ticket
uses: JasonEtco/create-an-issue@v2
with:
filename: .github/ISSUE_TEMPLATE/release_ticket.md
env:
Expand All @@ -43,7 +44,17 @@ jobs:
releaseDate: ${{ env.RELEASE_DATE }}
issues: ${{ env.TABLE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
id: create-issue
id: create_issue
- name: Assign Users to Release Ticket
if: ${{ success() }}
run: |
# Fetch GitHub Group Members
TEAM_MEMBERS=$(gh api orgs/department-of-veterans-affairs/teams/flagship-mobile-release-approvers/members --jq 'map(.login) | join(",")')
ASSIGNEES=$(echo $TEAM_MEMBERS | paste -sd "," -)
ISSUE_NUMBER=${{ steps.create_issue.outputs.number }}
gh issue edit $ISSUE_NUMBER --add-assignee $ASSIGNEES
env:
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_PAT }}
create_testrail_milestone:
uses: department-of-veterans-affairs/va-mobile-app/.github/workflows/create_testrail_milestone.yml@develop
needs: release_ticket
Expand Down Expand Up @@ -148,4 +159,4 @@ jobs:
-H 'Authorization: Bearer '"$SLACK_API_TOKEN" \
-H 'Content-type: application/json' \
-d @- \
https://slack.com/api/chat.postMessage
https://slack.com/api/chat.postMessage
Loading