docs icon indicating copy to clipboard operation
docs copied to clipboard

add section for creating projects using api

Open Priyankasaggu11929 opened this issue 3 years ago • 3 comments

Why:

Closes https://github.com/github/docs/issues/19096

What's being changed (if available, include any code snippets, screenshots, or gifs):

The PR add a sub-section with an example demonstrating "creating projects (using APIs), under the heading using the API to manage projects (beta), as there are mutation apis available for ProjectV2 for creating a new project, mutations#createprojectv2, and having an example for its usage would be helpful.

The output (obtained from staging preview) looks as follows:

GitHub CLI section

Screenshot 2022-07-19 at 10 38 29 AM

Curl section

Screenshot 2022-07-19 at 10 38 12 AM

Check off the following:

  • [X] I have reviewed my changes in staging (look for the "Automatically generated comment" and click the links in the "Preview" column to view your latest changes).
  • [X] For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

  • [ ] This pull request impacts the contribution experience
    • [ ] I have added the 'writer impact' label
    • [ ] I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

Priyankasaggu11929 avatar Jul 18 '22 10:07 Priyankasaggu11929

Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

welcome[bot] avatar Jul 18 '22 10:07 welcome[bot]

Automatically generated comment ℹ️

This comment is automatically generated and will be overwritten every time changes are committed to this branch.

The table contains an overview of files in the content directory that have been changed in this pull request. It's provided to make it easy to review your changes on the staging site. Please note that changes to the data directory will not show up in this table.


Content directory changes

You may find it useful to copy this table into the pull request summary. There you can edit it to share links to important articles or changes and to give a high-level overview of how the changes in your pull request support the overall goals of the pull request.

Source Preview Production What Changed
issues/planning-and-tracking-with-projects/automating-your-project/using-the-api-to-manage-projects.md fpt
ghec
fpt
ghec

fpt: Free, Pro, Team ghec: GitHub Enterprise Cloud ghes: GitHub Enterprise Server ghae: GitHub AE

github-actions[bot] avatar Jul 18 '22 10:07 github-actions[bot]

@Priyankasaggu11929 Thanks so much for opening a PR and linking it to your issue! ✨

I'll get this triaged for review :zap:

cmwilson21 avatar Jul 18 '22 18:07 cmwilson21

Hey @Priyankasaggu11929, thanks so much for adding information about creating projects! ✨

Can you enable the checkbox to allow maintainer edits? We've rearranged the category recently so there's a few conflicts to fix and things to tweak before I can get this merged. Thank you!

https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/allowing-changes-to-a-pull-request-branch-created-from-a-fork

guntrip avatar Sep 14 '22 11:09 guntrip

Hello @stevecat, apologies for the late response. I was traveling for past days. :)

I just verified that the checkbox for maintainers edit is already checked. Please point me if there's something I should do to help move the PR forward. Thank you!

Screenshot 2022-09-20 at 10 13 37 PM

Priyankasaggu11929 avatar Sep 20 '22 16:09 Priyankasaggu11929

Hey @Priyankasaggu11929, my apologies, you're absolutely correct! There was an unrelated issue on my end stopping me from pushing to your branch 😄

I've fixed the conflict by moving your changes to the article's new location (content/issues/planning-and-tracking-with-projects/automating-your-project/) and I've made a few tweaks. I've also moved your work into a new "Managing projects" section that we might expand upon and I've added some instructions for organization owners too; the /users endpoint will return the node ID for organizations and users so it was just a small change.

Thanks again for your contribution! I'll get this approved and merged in shortly ✨ :tada:

guntrip avatar Sep 21 '22 14:09 guntrip

Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues :zap:

github-actions[bot] avatar Sep 22 '22 07:09 github-actions[bot]