Skip to content

Commit a441da1

Browse files
authored
Merge branch 'main' into memgraph-2-21
2 parents 5e6272c + 2a27813 commit a441da1

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Create Issue on Release PR Merge
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
jobs:
8+
create_issue:
9+
if: github.event.pull_request.merged == true && contains(github.event.pull_request.base.ref, 'main') # Only when merged to main
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Check for Specific Label
14+
id: label_check
15+
run: |
16+
LABEL_FOUND=$(echo "${{ github.event.pull_request.labels[*].name }}" | grep -c "release-pr")
17+
echo "label_found=$LABEL_FOUND" >> $GITHUB_ENV
18+
19+
- name: Create GitHub Issue
20+
if: env.label_found == '1'
21+
uses: actions/github-script@v6
22+
with:
23+
script: |
24+
const { data: issue } = await github.issues.create({
25+
owner: context.repo.owner,
26+
repo: context.repo.repo,
27+
title: `Update hardcoded Memgraph versions under Getting Started`,
28+
body: `This issue was automatically created after PR #${{ github.event.pull_request.number }}. https://www.notion.so/memgraph/WIP-Documentation-branching-and-release-strategy-814417bb95ae45848071f535013d3d83?pvs=4#10b6b158b981801c9f0cc43f9f122462`
29+
assignees: ["katarinasupe"]
30+
});
31+
console.log(`Created issue: ${issue.html_url}`);

0 commit comments

Comments
 (0)