a11smiles / gitsync Goto Github PK
View Code? Open in Web Editor NEWA workflow action that syncs GitHub and Azure DevOps activities.
License: MIT License
A workflow action that syncs GitHub and Azure DevOps activities.
License: MIT License
ALZ ADO:
ESLZ GH:
Hi,
I forked the repository because my organization doesn't allow external repositories in our actions.
But I'm getting the error node_id is undefined.
TypeError: Cannot read properties of undefined (reading 'node_id')
at GitSync.run (/home/runner/work/_actions/myorg/GitSync/main/gitsync.js:28:30)
at Object.<anonymous> (/home/runner/work/_actions/myorg/GitSync/main/index.js:4:6)
at Module._compile (node:internal/modules/cjs/loader:1198:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
at Module.load (node:internal/modules/cjs/loader:1076:32)
at Function.Module._load (node:internal/modules/cjs/loader:911:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:22:47
@a11smiles ... we have noticed that each time GitSync runs against an issue, it appears to modify the original issue.
With the fact that GitSync performs all actions under a PAT token this makes it look like the owner of the PAT has made changes:
This would seem harmless (although I don't believe this should be necessary) except we have noticed that these changes are actually causing code snippets provided in the request and other formatting to become corrupted.
For example, see the following code snippet which was originally valid HCL:
And how it resulted in the following code being re-written into the issue:
Example can be seen here a11smiles/alz-sync-bicep#3
Hi,
I'm trying to setup an action, mostly correct but I have some errors:
Error: TF401444: Please sign-in at least once as fdfed7bd-xxxx-xxxx-xxxx-6e39c468c150\fdfed7bd-xxxx-xxxx-xxxx-6e39c468c150\c60ee717-yyyy-yyyy-yyyy-3d307dfe44ec in a web browser to enable access to the service.
Here the issue is I believe, the tenant id repeated twice because I used azure/login
action, and getting the access token using az account get-access-token
command. Can you check why this happens?
Many thanks!
Action Example from ALZ-Bicep Repo
name: Sync Issues to Azure DevOps Work Items
on:
issues:
types: [opened, closed, deleted, reopened, edited, labeled, unlabeled, assigned, unassigned]
issue_comment:
types: [created]
jobs:
alert:
runs-on: ubuntu-latest
name: Sync workflow
if: github.repository == 'Azure/ALZ-Bicep'
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: GitHub/ADO Sync
uses: a11smiles/[email protected]
env:
ado_token: '${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }}'
config_file: './.github/actions-config/gh-ado-sync-config.json'
with:
ado: ${{ secrets.ADO_MAPPINGS_HANDLES }}
Issue
Link to workflow run https://github.com/Azure/ALZ-Bicep/actions/runs/3376390222/jobs/5604055209
PRs are syncing into ADO, which is fine, but they are being tagged as Issues ๐
Can we get them at least tagged as PRs instead of issues so we can filter them out.
I have examples of this i can share over teams ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.