Skip to content

Commit d6d80aa

Browse files
mesh-2816: revert pr-lint
1 parent 2e554a7 commit d6d80aa

1 file changed

Lines changed: 3 additions & 28 deletions

File tree

.github/workflows/pr-lint.yaml

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -26,31 +26,6 @@ jobs:
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828
with:
29-
script: |
30-
const owner = context.repo.owner;
31-
const repo = context.repo.repo;
32-
const issue_number = context.payload.pull_request.number;
33-
const ticket = process.env.TICKET_NAME;
34-
const message = `This branch is work on a ticket in the NHS Digital AMB JIRA Project. Here's a handy link to the ticket:\n# [${ticket}](https://jira.digital.nhs.uk/browse/${ticket})`;
35-
36-
const { data: comments } = await github.rest.issues.listComments({
37-
owner,
38-
repo,
39-
issue_number,
40-
per_page: 100,
41-
});
42-
43-
const existing = comments.find((comment) =>
44-
comment.body && comment.body.includes(`https://jira.digital.nhs.uk/browse/${ticket}`)
45-
);
46-
47-
if (!existing) {
48-
await github.rest.issues.createComment({
49-
owner,
50-
repo,
51-
issue_number,
52-
body: message,
53-
});
54-
}
55-
env:
56-
TICKET_NAME: ${{ env.TICKET_NAME }}
29+
msg: |
30+
This branch is work on a ticket in the NHS Digital AMB JIRA Project. Here's a handy link to the ticket:
31+
# [${{ env.TICKET_NAME }}](https://jira.digital.nhs.uk/browse/${{ env.TICKET_NAME}})

0 commit comments

Comments
 (0)