Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
victoralfaro-dotcms committed Sep 6, 2024
1 parent 8ad4912 commit a0e3b51
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/cicd_scheduled_notify-seated-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,23 @@ jobs:
retry-exempt-status-codes: 400,401
github-token: ${{ secrets.CI_MACHINE_TOKEN }}
script: |
const fetch = require('fetch')
consta headers = {
'Accept': 'application/vnd.github+json'
'Authorization': 'Bearer ${{ secrets.GITHUB_TOKEN }}'
'X-GitHub-Api-Version': '2022-11-28'
};
async function fetchOpenPrs() {
const response = fetch(
'https://api.github.com/repos/${{ github.repository_owner }}/${{ env.REPO }}/pulls?per_page=100',
{
headers,
});
}
async function fetchOpenPrs2() {
const opts = github.rest.pulls.get.endpoint.merge({
...{
baseUrl: 'https://api.github.com/repos/${{ github.repository_owner }}/${{ env.REPO }}/pulls',
Expand Down

0 comments on commit a0e3b51

Please sign in to comment.