jstivenpg / write-github-script

https://lab.github.com/githubtraining/github-actions:-using-github-script
MIT License
0 stars 0 forks source link

Create an issue comment with GitHub Script #3

Open github-learning-lab[bot] opened 3 years ago

github-learning-lab[bot] commented 3 years ago

Look 👀 at you!

Super awesome job so far!

Do you remember what our workflow trigger was?

on:
  issues:
    types: [opened]

This means that every time an issue gets opened in this repository the GitHub Script you wrote will execute.

You should expect to see the result right here in this issue!

Workflow not running? Click here for some troubleshooting. Try the following troubleshooting steps: 1. Click on the [Actions tab](https://github.com/jstivenpg/write-github-script/actions) to see the status of your workflow run. See [Managing a workflow run](https://help.github.com/en/actions/configuring-and-managing-workflows/managing-a-workflow-run) on GitHub Help for more information. 1. Edit your [workflow file]( https://github.com/jstivenpg/write-github-script/edit/main/.github/workflows/my-workflow.yml) and look for errors in the linter built into the browser. 1. Look for the [workflow trigger](https://help.github.com/en/actions/reference/events-that-trigger-workflows) and ensure you are performing an action that triggers that workflow. If you need to make changes to your code, remove the [main branch protection](https://github.com/jstivenpg/write-github-script/settings/branches) and merge your changes into the `main` branch.

I'll respond in this issue after your workflow runs!

github-learning-lab[bot] commented 3 years ago

{"action":"created","issue":{"url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/2","repository_url":"https://api.github.com/repos/jstivenpg/write-github-script","labels_url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/2/comments","events_url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/2/events","html_url":"https://github.com/jstivenpg/write-github-script/pull/2","id":871465243,"node_id":"MDExOlB1bGxSZXF1ZXN0NjI2NDg5MjM4","number":2,"title":"Create my-workflow.yml","user":{"login":"jstivenpg","id":43974110,"node_id":"MDQ6VXNlcjQzOTc0MTEw","avatar_url":"https://avatars.githubusercontent.com/u/43974110?v=4","gravatar_id":"","url":"https://api.github.com/users/jstivenpg","html_url":"https://github.com/jstivenpg","followers_url":"https://api.github.com/users/jstivenpg/followers","following_url":"https://api.github.com/users/jstivenpg/following{/other_user}","gists_url":"https://api.github.com/users/jstivenpg/gists{/gist_id}","starred_url":"https://api.github.com/users/jstivenpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstivenpg/subscriptions","organizations_url":"https://api.github.com/users/jstivenpg/orgs","repos_url":"https://api.github.com/users/jstivenpg/repos","events_url":"https://api.github.com/users/jstivenpg/events{/privacy}","received_events_url":"https://api.github.com/users/jstivenpg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2021-04-29T20:13:45Z","updated_at":"2021-04-29T20:19:04Z","closed_at":"2021-04-29T20:14:55Z","author_association":"OWNER","active_lock_reason":null,"pull_request":{"url":"https://api.github.com/repos/jstivenpg/write-github-script/pulls/2","html_url":"https://github.com/jstivenpg/write-github-script/pull/2","diff_url":"https://github.com/jstivenpg/write-github-script/pull/2.diff","patch_url":"https://github.com/jstivenpg/write-github-script/pull/2.patch"},"body":"name : Aprendizaje de secuencia de comandos de GitHub\r\n\r\nsobre :\r\n cuestiones :\r\n tipos : [abierto]\r\n\r\ntrabajos :\r\n comentario : se\r\n ejecuta en : ubuntu-últimos \r\n pasos :\r\n - utiliza : actions/github-script@0.8.0 \r\n con :\r\n github-token : $ {{secrets.GITHUB_TOKEN}} \r\n script : | \r\n github.issues.createComment ({ \r\n issue_number: context.issue.number, \r\n owner: context.repo.owner, \r\n repo: context.repo.repo, \r\n body: \"🎉 ¡¡¡Ha creado este comentario de problema usando GitHub Script !!! \" \r\n })","performed_via_github_app":null},"comment":{"url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/comments/829568032","html_url":"https://github.com/jstivenpg/write-github-script/pull/2#issuecomment-829568032","issue_url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/2","id":829568032,"node_id":"MDEyOklzc3VlQ29tbWVudDgyOTU2ODAzMg==","user":{"login":"jstivenpg","id":43974110,"node_id":"MDQ6VXNlcjQzOTc0MTEw","avatar_url":"https://avatars.githubusercontent.com/u/43974110?v=4","gravatar_id":"","url":"https://api.github.com/users/jstivenpg","html_url":"https://github.com/jstivenpg","followers_url":"https://api.github.com/users/jstivenpg/followers","following_url":"https://api.github.com/users/jstivenpg/following{/other_user}","gists_url":"https://api.github.com/users/jstivenpg/gists{/gist_id}","starred_url":"https://api.github.com/users/jstivenpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstivenpg/subscriptions","organizations_url":"https://api.github.com/users/jstivenpg/orgs","repos_url":"https://api.github.com/users/jstivenpg/repos","events_url":"https://api.github.com/users/jstivenpg/events{/privacy}","received_events_url":"https://api.github.com/users/jstivenpg/received_events","type":"User","site_admin":false},"created_at":"2021-04-29T20:19:04Z","updated_at":"2021-04-29T20:19:04Z","author_association":"OWNER","body":"Se eliminar rama fusionada","performed_via_github_app":null},"repository":{"id":362931407,"node_id":"MDEwOlJlcG9zaXRvcnkzNjI5MzE0MDc=","name":"write-github-script","full_name":"jstivenpg/write-github-script","private":false,"owner":{"login":"jstivenpg","id":43974110,"node_id":"MDQ6VXNlcjQzOTc0MTEw","avatar_url":"https://avatars.githubusercontent.com/u/43974110?v=4","gravatar_id":"","url":"https://api.github.com/users/jstivenpg","html_url":"https://github.com/jstivenpg","followers_url":"https://api.github.com/users/jstivenpg/followers","following_url":"https://api.github.com/users/jstivenpg/following{/other_user}","gists_url":"https://api.github.com/users/jstivenpg/gists{/gist_id}","starred_url":"https://api.github.com/users/jstivenpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstivenpg/subscriptions","organizations_url":"https://api.github.com/users/jstivenpg/orgs","repos_url":"https://api.github.com/users/jstivenpg/repos","events_url":"https://api.github.com/users/jstivenpg/events{/privacy}","received_events_url":"https://api.github.com/users/jstivenpg/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jstivenpg/write-github-script","description":null,"fork":false,"url":"https://api.github.com/repos/jstivenpg/write-github-script","forks_url":"https://api.github.com/repos/jstivenpg/write-github-script/forks","keys_url":"https://api.github.com/repos/jstivenpg/write-github-script/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jstivenpg/write-github-script/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jstivenpg/write-github-script/teams","hooks_url":"https://api.github.com/repos/jstivenpg/write-github-script/hooks","issue_events_url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/events{/number}","events_url":"https://api.github.com/repos/jstivenpg/write-github-script/events","assignees_url":"https://api.github.com/repos/jstivenpg/write-github-script/assignees{/user}","branches_url":"https://api.github.com/repos/jstivenpg/write-github-script/branches{/branch}","tags_url":"https://api.github.com/repos/jstivenpg/write-github-script/tags","blobs_url":"https://api.github.com/repos/jstivenpg/write-github-script/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jstivenpg/write-github-script/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jstivenpg/write-github-script/git/refs{/sha}","trees_url":"https://api.github.com/repos/jstivenpg/write-github-script/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jstivenpg/write-github-script/statuses/{sha}","languages_url":"https://api.github.com/repos/jstivenpg/write-github-script/languages","stargazers_url":"https://api.github.com/repos/jstivenpg/write-github-script/stargazers","contributors_url":"https://api.github.com/repos/jstivenpg/write-github-script/contributors","subscribers_url":"https://api.github.com/repos/jstivenpg/write-github-script/subscribers","subscription_url":"https://api.github.com/repos/jstivenpg/write-github-script/subscription","commits_url":"https://api.github.com/repos/jstivenpg/write-github-script/commits{/sha}","git_commits_url":"https://api.github.com/repos/jstivenpg/write-github-script/git/commits{/sha}","comments_url":"https://api.github.com/repos/jstivenpg/write-github-script/comments{/number}","issue_comment_url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/comments{/number}","contents_url":"https://api.github.com/repos/jstivenpg/write-github-script/contents/{+path}","compare_url":"https://api.github.com/repos/jstivenpg/write-github-script/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jstivenpg/write-github-script/merges","archive_url":"https://api.github.com/repos/jstivenpg/write-github-script/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jstivenpg/write-github-script/downloads","issues_url":"https://api.github.com/repos/jstivenpg/write-github-script/issues{/number}","pulls_url":"https://api.github.com/repos/jstivenpg/write-github-script/pulls{/number}","milestones_url":"https://api.github.com/repos/jstivenpg/write-github-script/milestones{/number}","notifications_url":"https://api.github.com/repos/jstivenpg/write-github-script/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jstivenpg/write-github-script/labels{/name}","releases_url":"https://api.github.com/repos/jstivenpg/write-github-script/releases{/id}","deployments_url":"https://api.github.com/repos/jstivenpg/write-github-script/deployments","created_at":"2021-04-29T19:53:28Z","updated_at":"2021-04-29T20:14:58Z","pushed_at":"2021-04-29T20:16:26Z","git_url":"git://github.com/jstivenpg/write-github-script.git","ssh_url":"git@github.com:jstivenpg/write-github-script.git","clone_url":"https://github.com/jstivenpg/write-github-script.git","svn_url":"https://github.com/jstivenpg/write-github-script","homepage":"https://lab.github.com/githubtraining/github-actions:-using-github-script","size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"main"},"sender":{"login":"jstivenpg","id":43974110,"node_id":"MDQ6VXNlcjQzOTc0MTEw","avatar_url":"https://avatars.githubusercontent.com/u/43974110?v=4","gravatar_id":"","url":"https://api.github.com/users/jstivenpg","html_url":"https://github.com/jstivenpg","followers_url":"https://api.github.com/users/jstivenpg/followers","following_url":"https://api.github.com/users/jstivenpg/following{/other_user}","gists_url":"https://api.github.com/users/jstivenpg/gists{/gist_id}","starred_url":"https://api.github.com/users/jstivenpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstivenpg/subscriptions","organizations_url":"https://api.github.com/users/jstivenpg/orgs","repos_url":"https://api.github.com/users/jstivenpg/repos","events_url":"https://api.github.com/users/jstivenpg/events{/privacy}","received_events_url":"https://api.github.com/users/jstivenpg/received_events","type":"User","site_admin":false},"installation":{"id":8843106,"node_id":"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uODg0MzEwNg=="}}

github-learning-lab[bot] commented 3 years ago

{"action":"created","issue":{"url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/2","repository_url":"https://api.github.com/repos/jstivenpg/write-github-script","labels_url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/2/comments","events_url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/2/events","html_url":"https://github.com/jstivenpg/write-github-script/pull/2","id":871465243,"node_id":"MDExOlB1bGxSZXF1ZXN0NjI2NDg5MjM4","number":2,"title":"Create my-workflow.yml","user":{"login":"jstivenpg","id":43974110,"node_id":"MDQ6VXNlcjQzOTc0MTEw","avatar_url":"https://avatars.githubusercontent.com/u/43974110?v=4","gravatar_id":"","url":"https://api.github.com/users/jstivenpg","html_url":"https://github.com/jstivenpg","followers_url":"https://api.github.com/users/jstivenpg/followers","following_url":"https://api.github.com/users/jstivenpg/following{/other_user}","gists_url":"https://api.github.com/users/jstivenpg/gists{/gist_id}","starred_url":"https://api.github.com/users/jstivenpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstivenpg/subscriptions","organizations_url":"https://api.github.com/users/jstivenpg/orgs","repos_url":"https://api.github.com/users/jstivenpg/repos","events_url":"https://api.github.com/users/jstivenpg/events{/privacy}","received_events_url":"https://api.github.com/users/jstivenpg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2021-04-29T20:13:45Z","updated_at":"2021-04-29T21:55:15Z","closed_at":"2021-04-29T20:14:55Z","author_association":"OWNER","active_lock_reason":null,"pull_request":{"url":"https://api.github.com/repos/jstivenpg/write-github-script/pulls/2","html_url":"https://github.com/jstivenpg/write-github-script/pull/2","diff_url":"https://github.com/jstivenpg/write-github-script/pull/2.diff","patch_url":"https://github.com/jstivenpg/write-github-script/pull/2.patch"},"body":"name : Aprendizaje de secuencia de comandos de GitHub\r\n\r\nsobre :\r\n cuestiones :\r\n tipos : [abierto]\r\n\r\ntrabajos :\r\n comentario : se\r\n ejecuta en : ubuntu-últimos \r\n pasos :\r\n - utiliza : actions/github-script@0.8.0 \r\n con :\r\n github-token : $ {{secrets.GITHUB_TOKEN}} \r\n script : | \r\n github.issues.createComment ({ \r\n issue_number: context.issue.number, \r\n owner: context.repo.owner, \r\n repo: context.repo.repo, \r\n body: \"🎉 ¡¡¡Ha creado este comentario de problema usando GitHub Script !!! \" \r\n })","performed_via_github_app":null},"comment":{"url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/comments/829621162","html_url":"https://github.com/jstivenpg/write-github-script/pull/2#issuecomment-829621162","issue_url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/2","id":829621162,"node_id":"MDEyOklzc3VlQ29tbWVudDgyOTYyMTE2Mg==","user":{"login":"jstivenpg","id":43974110,"node_id":"MDQ6VXNlcjQzOTc0MTEw","avatar_url":"https://avatars.githubusercontent.com/u/43974110?v=4","gravatar_id":"","url":"https://api.github.com/users/jstivenpg","html_url":"https://github.com/jstivenpg","followers_url":"https://api.github.com/users/jstivenpg/followers","following_url":"https://api.github.com/users/jstivenpg/following{/other_user}","gists_url":"https://api.github.com/users/jstivenpg/gists{/gist_id}","starred_url":"https://api.github.com/users/jstivenpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstivenpg/subscriptions","organizations_url":"https://api.github.com/users/jstivenpg/orgs","repos_url":"https://api.github.com/users/jstivenpg/repos","events_url":"https://api.github.com/users/jstivenpg/events{/privacy}","received_events_url":"https://api.github.com/users/jstivenpg/received_events","type":"User","site_admin":false},"created_at":"2021-04-29T21:55:15Z","updated_at":"2021-04-29T21:55:15Z","author_association":"OWNER","body":"Se ha eliminado rama de forma segura","performed_via_github_app":null},"repository":{"id":362931407,"node_id":"MDEwOlJlcG9zaXRvcnkzNjI5MzE0MDc=","name":"write-github-script","full_name":"jstivenpg/write-github-script","private":false,"owner":{"login":"jstivenpg","id":43974110,"node_id":"MDQ6VXNlcjQzOTc0MTEw","avatar_url":"https://avatars.githubusercontent.com/u/43974110?v=4","gravatar_id":"","url":"https://api.github.com/users/jstivenpg","html_url":"https://github.com/jstivenpg","followers_url":"https://api.github.com/users/jstivenpg/followers","following_url":"https://api.github.com/users/jstivenpg/following{/other_user}","gists_url":"https://api.github.com/users/jstivenpg/gists{/gist_id}","starred_url":"https://api.github.com/users/jstivenpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstivenpg/subscriptions","organizations_url":"https://api.github.com/users/jstivenpg/orgs","repos_url":"https://api.github.com/users/jstivenpg/repos","events_url":"https://api.github.com/users/jstivenpg/events{/privacy}","received_events_url":"https://api.github.com/users/jstivenpg/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jstivenpg/write-github-script","description":null,"fork":false,"url":"https://api.github.com/repos/jstivenpg/write-github-script","forks_url":"https://api.github.com/repos/jstivenpg/write-github-script/forks","keys_url":"https://api.github.com/repos/jstivenpg/write-github-script/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jstivenpg/write-github-script/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jstivenpg/write-github-script/teams","hooks_url":"https://api.github.com/repos/jstivenpg/write-github-script/hooks","issue_events_url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/events{/number}","events_url":"https://api.github.com/repos/jstivenpg/write-github-script/events","assignees_url":"https://api.github.com/repos/jstivenpg/write-github-script/assignees{/user}","branches_url":"https://api.github.com/repos/jstivenpg/write-github-script/branches{/branch}","tags_url":"https://api.github.com/repos/jstivenpg/write-github-script/tags","blobs_url":"https://api.github.com/repos/jstivenpg/write-github-script/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jstivenpg/write-github-script/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jstivenpg/write-github-script/git/refs{/sha}","trees_url":"https://api.github.com/repos/jstivenpg/write-github-script/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jstivenpg/write-github-script/statuses/{sha}","languages_url":"https://api.github.com/repos/jstivenpg/write-github-script/languages","stargazers_url":"https://api.github.com/repos/jstivenpg/write-github-script/stargazers","contributors_url":"https://api.github.com/repos/jstivenpg/write-github-script/contributors","subscribers_url":"https://api.github.com/repos/jstivenpg/write-github-script/subscribers","subscription_url":"https://api.github.com/repos/jstivenpg/write-github-script/subscription","commits_url":"https://api.github.com/repos/jstivenpg/write-github-script/commits{/sha}","git_commits_url":"https://api.github.com/repos/jstivenpg/write-github-script/git/commits{/sha}","comments_url":"https://api.github.com/repos/jstivenpg/write-github-script/comments{/number}","issue_comment_url":"https://api.github.com/repos/jstivenpg/write-github-script/issues/comments{/number}","contents_url":"https://api.github.com/repos/jstivenpg/write-github-script/contents/{+path}","compare_url":"https://api.github.com/repos/jstivenpg/write-github-script/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jstivenpg/write-github-script/merges","archive_url":"https://api.github.com/repos/jstivenpg/write-github-script/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jstivenpg/write-github-script/downloads","issues_url":"https://api.github.com/repos/jstivenpg/write-github-script/issues{/number}","pulls_url":"https://api.github.com/repos/jstivenpg/write-github-script/pulls{/number}","milestones_url":"https://api.github.com/repos/jstivenpg/write-github-script/milestones{/number}","notifications_url":"https://api.github.com/repos/jstivenpg/write-github-script/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jstivenpg/write-github-script/labels{/name}","releases_url":"https://api.github.com/repos/jstivenpg/write-github-script/releases{/id}","deployments_url":"https://api.github.com/repos/jstivenpg/write-github-script/deployments","created_at":"2021-04-29T19:53:28Z","updated_at":"2021-04-29T20:14:58Z","pushed_at":"2021-04-29T21:54:59Z","git_url":"git://github.com/jstivenpg/write-github-script.git","ssh_url":"git@github.com:jstivenpg/write-github-script.git","clone_url":"https://github.com/jstivenpg/write-github-script.git","svn_url":"https://github.com/jstivenpg/write-github-script","homepage":"https://lab.github.com/githubtraining/github-actions:-using-github-script","size":7,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"main"},"sender":{"login":"jstivenpg","id":43974110,"node_id":"MDQ6VXNlcjQzOTc0MTEw","avatar_url":"https://avatars.githubusercontent.com/u/43974110?v=4","gravatar_id":"","url":"https://api.github.com/users/jstivenpg","html_url":"https://github.com/jstivenpg","followers_url":"https://api.github.com/users/jstivenpg/followers","following_url":"https://api.github.com/users/jstivenpg/following{/other_user}","gists_url":"https://api.github.com/users/jstivenpg/gists{/gist_id}","starred_url":"https://api.github.com/users/jstivenpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jstivenpg/subscriptions","organizations_url":"https://api.github.com/users/jstivenpg/orgs","repos_url":"https://api.github.com/users/jstivenpg/repos","events_url":"https://api.github.com/users/jstivenpg/events{/privacy}","received_events_url":"https://api.github.com/users/jstivenpg/received_events","type":"User","site_admin":false},"installation":{"id":8843106,"node_id":"MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uODg0MzEwNg=="}}