Skip to content

Commit 1453c51

Browse files
committed
Example ref to #1311
1 parent 7deb860 commit 1453c51

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

.github/workflows/dotnet.yml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -68,44 +68,6 @@ jobs:
6868
Write-Host "$(pwsh --version) is installed at $PSHOME"
6969
psql --version
7070
Write-Host "Using .NET SDK: $(dotnet --version)"
71-
#
72-
73-
74-
75-
- uses: actions/github-script@v6
76-
id: get_issue_number
77-
with:
78-
result-encoding: string
79-
script: |
80-
if (context.issue.number) {
81-
// Return issue number if present
82-
echo "Found issue number"
83-
return context.issue.number;
84-
} else {
85-
// Otherwise return issue number from commit
86-
echo "Fetching..."
87-
88-
$temp = (
89-
await github.rest.repos.listPullRequestsAssociatedWithCommit({
90-
commit_sha: context.sha,
91-
owner: context.repo.owner,
92-
repo: context.repo.repo,
93-
})
94-
);
95-
echo $temp
96-
97-
return (
98-
await github.rest.repos.listPullRequestsAssociatedWithCommit({
99-
commit_sha: context.sha,
100-
owner: context.repo.owner,
101-
repo: context.repo.repo,
102-
})
103-
).data[0].number;
104-
}
105-
- name: Print PR/Issue number
106-
run: echo '${{steps.get_issue_number.outputs.result}}'
107-
108-
10971
- name: Print messages
11072
shell: pwsh
11173
env:

0 commit comments

Comments
 (0)