GithubHelp home page GithubHelp logo

gitsync's Issues

Cannot read properties of undefined (reading 'node_id')

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

GitSync corrupting code blocks in issues

@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:

image

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:

image

And how it resulted in the following code being re-written into the issue:

image

Error with TF401444

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!

Issues fail to sync (new or updates) on v1.2.1

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

image

Link to workflow run https://github.com/Azure/ALZ-Bicep/actions/runs/3376390222/jobs/5604055209

PRs are syncing into ADO

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 ๐Ÿ‘

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.