This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$organization = "AZURE_DEVOPS_ORGANIZATION" | |
$personalAccessToken = "AZURE_DEVOPS_PAT" | |
$base64AuthInfo = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes(":$($personalAccessToken)")) | |
$headers = @{Authorization=("Basic {0}" -f $base64AuthInfo)} | |
Write-Host "Cloning all repositories from organization: " $organization | |
$projectsUrl = "https://dev.azure.com/" + [uri]::EscapeDataString($organization) + "/_apis/projects?api-version=7.0" | |
$result = Invoke-RestMethod -Uri $projectsUrl -Method Get -Headers $headers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- '*' | |
- '*/*' | |
- '**' | |
- '!main' | |
paths-ignore: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: | |
- '*' | |
- '*/*' | |
- '**' | |
- '!main' | |
workflow_dispatch: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
updates: | |
- package-ecosystem: "docker" | |
directory: "/" | |
schedule: | |
interval: weekly | |
open-pull-requests-limit: 50 | |
assignees: | |
- "guibranco" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ORG_NAME="<<ORG>>" | |
ACCESS_TOKEN="<<GH_PAT>>" | |
TOTAL_PAGES=10; | |
eval `ssh-agent -s` | |
ssh-add ~/.ssh/*_rsa | |
for((PAGE=1;PAGE<=TOTAL_PAGES;PAGE++)); do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Request the user/org repositories, and add this script to tests tab of the request | |
//Repositories of a specific user: https://api.github.com/users/{{username}}/repos | |
//Repositories of a specific org: https://api.github.com/orgs/{{org}}/repos | |
const ghToken = pm.globals.get("GH_PAT"); | |
const authorizationHeader = `Authorization: Bearer ${ghToken}`; | |
const issueTitle = "Issue title"; | |
const issueBody = "Issue body"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ghToken = pm.globals.get("GH_PAT"); | |
const organization = pm.collectionVariables.get("org"); | |
const repository = pm.collectionVariables.get("repository"); | |
const headerAuthorization = `Authorization: Bearer ${ghToken}`; | |
const repositoryUrl = `https://api.github.com/repos/${organization}/${repository}`; | |
pm.sendRequest({ | |
url: repositoryUrl, | |
method: 'GET', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ghToken = pm.globals.get("GH_PAT"); // environment variable with GitHub PAT (Personal Access Token) with repo:write. | |
const organization = pm.collectionVariables.get("org"); // environment variable with GitHub username/organization name. | |
const repository = pm.collectionVariables.get("repository"); // environment variable with GitHub repository name. | |
// ⬆️💡 The variables above you can paste directly in the script, if you don't want to use environment variables in Postman | |
// No need to change below this line ⬇️⛔ | |
const authorizationHeader = `Authorization: Bearer ${ghToken}`; |